maven test-jar, assembly and release plugins don't play well together
---------------------------------------------------------------------
Key: MNG-4160
URL: http://jira.codehaus.org/browse/MNG-4160
Project: Maven 2
Issue Type: Bug
Affects Versions: 2.1.0
Reporter: Sami Dalouche
Attachments: log
Problem: in some weird cases, maven assembly plugin seems to pick the -tests
dependency instead of the main one.
How to reproduce:
Consider the given project :
http://www.sirika.com/maven2/releases/com/sirika/pymager/pymager-java-client-assembly/0.9/pymager-java-client-assembly-0.9-all.zip
the source of the project, along with the maven POMs are in the src/ directory.
the .zip is the result of running the mvn -Prelease release:prepare
-DautoVersionSubmodules=true && mvn release:perform
Take a look at the file lib/pymager-java-client-0.9.jar in the archive.
Now, take the source and run
mvn -Prelease package
unzip assembly/target/assembly/target/out/pymager-java-client-0.9.zip
and take a look at lib/pymager-java-client-0.9.jar
the file is different from the one that was created using the release:perform
!!!
In the case of the release, it corresponds to the pymager-java-client:tests
artifact, instead of the main pymager-java-client artifact.
everything seems to run OK outside of a release..
ouch!
good luck....
Sami Dalouche
( I attached the log of running mvn -Pdev clean install, so that you get my OS
and JDK version)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira