Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:maven - 2.0.8
-
Number of attachments :
Description
The release preparation goals fails when run with -DskipTests=true. The failure occurs because the jar plugin doesn't create the *.tests.jar. The jar plugin being used is 2.2.
When same goal is run with previous jar plugin version (2.1), everything works fine.
The comparison of outputs from these two run indicate this behaviour.
1. When run with jar plugin version 2.2, following information is printed on console
[INFO] [jar:jar]
[INFO] Building jar: D:\..\abc.jar
[INFO] [jar:jar
]
[INFO] [jar:test-jar
]
[INFO] Skipping packaging of the test-jar
2. While when run with jar plugin version 2.1, following information is printed on console
[INFO] [jar:jar]
[INFO] Building jar: D:\..\abc.jar
[INFO] [jar:jar
]
[INFO] [jar:test-jar
]
[INFO] Building jar: D:\..\abc-tests.jar
This issue is related: http://jira.codehaus.org/browse/MJAR-43
I think that if you can use the property described in this issue instead it will solve your problem: http://jira.codehaus.org/browse/SUREFIRE-129
-Dmaven.test.skip.exec