You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Avi Laviad <av...@gmail.com> on 2008/05/21 14:43:35 UTC
build test jar
hi,
i got a project which have src classes and test classes.
is there a way to install a .jar file for the src folder and another .jar
file for the test folder?
thanks in advance,
Avi.
Re: build test jar
Posted by Robert Winch <rw...@gmail.com>.
I believe you are looking for jar:test-jar
http://maven.apache.org/plugins/maven-jar-plugin/test-jar-mojo.html
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
...
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
...
</project>
On Wed, May 21, 2008 at 7:43 AM, Avi Laviad <av...@gmail.com> wrote:
> hi,
> i got a project which have src classes and test classes.
> is there a way to install a .jar file for the src folder and another .jar
> file for the test folder?
>
> thanks in advance,
> Avi.
>