Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.8
-
Labels:None
-
Number of attachments :
Description
When running maven console on a JAR where the manifest classpath is set using maven.jar.manifest.classpath.add=true, the classpath string is not reset between runs. So, if running the jar goal multiple times, the Class-Path attribute will be getting longer and longer, containing multiple copies of the classpath.
This patch of plugin.jelly in maven-jar-plugin:
<j:set var="jarClasspath" value="$
"/>
+ <j:set var="maven.jar.classpath" value=""/>
<j:if test="$
">
fixes the problem but I'm unsure if it will affect something else.
Issue Links
- depends upon
-
MPJAR-37
maven.jar.manifest.classpath.add should work like ejb plugin
-