/target/test-classes are not included in the jar by default.
-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Chris
Sent: Tuesday, March 11, 2008 3:30 PM
To: [email protected]
Subject: How to exclude all test classes from jar?
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]