How to exclude class from project build in BPMS/BRMS 6.4 ?

Solution Unverified - Updated -

Issue

  • We have written few junit test cases to check the process execution in IDE. When we push same project into business-central and build, junit test class also packed with kjar. We tried to exclude this class from with the help of below tags but its not working.

1.

<build>
  . . . .
      <resources>
      <resource>
        <directory>src/test/java/</directory>
        <excludes>
          <exclude>**/PersonTest.java</exclude>
        </excludes>
      </resource>
    </resources>
     .. . .
</build>

2.

<plugin>
   <groupId>org.kie</groupId>
   <artifactId>kie-maven-plugin</artifactId>
   <version>6.5.0.Final-redhat-12</version>
   <extensions>true</extensions>
   <configuration>
    <excludes>
    <exclude>**/ProcessTest.java</exclude>
    </excludes>
   </configuration>
</plugin>

Environment

  • Red Hat JBoss BPM Suite
    • 6.4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.