Hello,

What is the easiest way to prevent tests being packaged together with source
files in the resulting artifact package?

I would like the tests to execute, but be packaged in a seperate jar.
Currently I have configured the maven-jar-plugin as follows: 

<plugin>
 <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
            <executions>
                <execution>
                   <goals>
                        <goal>test-jar</goal>
                  </goals>
                </execution>
             </executions>
        </plugin>
So this creates the tests packaged on their own , however they are still
included in the generted package.

Is there some way I can exclude the test-classes directory from being
packaged? 

-- 
View this message in context: 
http://www.nabble.com/Exclude-tests-from-packaged-artifact-tf2574864s177.html#a7177951
Sent from the Maven - Users mailing list archive at Nabble.com.


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

Reply via email to