You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Roger Pack <ro...@gmail.com> on 2009/10/05 19:28:54 UTC
mvn test-compile doesn't create -tests jar
I have a project that compiles test jars, a la
...
<build>
<plugins>
<plugin>
<!-- bundle up the test jar -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
...
however the test jar isn't build and installed if I run
mvn test-compile
which is what I expected to have happen.
Is this expected (or a bug)?
Thanks!
-r
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: mvn test-compile doesn't create -tests jar
Posted by Wayne Fay <wa...@gmail.com>.
> however the test jar isn't build and installed if I run
> mvn test-compile
The test-compile phase occurs before package and before install, thus
it is only compiling, which is all you asked it to do.
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#Lifecycle_Reference
Wayne
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org