You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Radim Kolar <hs...@sendmail.cz> on 2009/10/20 02:05:43 UTC

how to disable building xxx-tests.jar

I found that maven 2.1 creates program-version-tests.jar even if no test
directory is configured in pom.xml. Is there way to disable it?

It seems that
http://maven.apache.org/plugins/maven-jar-plugin/test-jar-mojo.html
jar:test-jar is responsible for it and it is now executed by default. How
can i disable execution of jar:test-jar?

i added
<execution>
<phase>jar</phase>
<goal>jar</jar>
</execution>

to jar plugin but it didnt worked, -tests.jar is still created.
-- 
View this message in context: http://www.nabble.com/how-to-disable-building-xxx-tests.jar-tp25967788p25967788.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: how to disable building xxx-tests.jar

Posted by Brian Fox <br...@infinity.nu>.
Check your parent hierarchy, this plugin goal isn't executed by
default from Maven, more likely someone has inserted it in a parent
pom.

On Mon, Oct 19, 2009 at 8:05 PM, Radim Kolar <hs...@sendmail.cz> wrote:
>
> I found that maven 2.1 creates program-version-tests.jar even if no test
> directory is configured in pom.xml. Is there way to disable it?
>
> It seems that
> http://maven.apache.org/plugins/maven-jar-plugin/test-jar-mojo.html
> jar:test-jar is responsible for it and it is now executed by default. How
> can i disable execution of jar:test-jar?
>
> i added
> <execution>
> <phase>jar</phase>
> <goal>jar</jar>
> </execution>
>
> to jar plugin but it didnt worked, -tests.jar is still created.
> --
> View this message in context: http://www.nabble.com/how-to-disable-building-xxx-tests.jar-tp25967788p25967788.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org