not quite sure I understand, are you saying you have test files in your <build><sourceDirectory> that you want to exclude?
if so, then the convention is to exclude them in the <build><resources>.. section. classes in <build><testSourceDirectory> are by default excluded from the final jar. At 2:30 PM -0500 3/11/08, Chris wrote: >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]
