I'd like to exclude all classes in the /test directory from the target jar file. The following does NOT work:

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <configuration>
          <excludes>
            <exclude>**/Test*.java</exclude>
          </excludes>
        </configuration>
      </plugin>

... because not all the classes in /test start with Test*. Basically, only the classes in the /target/classes should be included, and none of those in /target/test-classes.

How do I do it?


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to