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
-
Activity
Brett Porter
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Key | MAVEN-1562 |
|
| Project | maven [ 10030 ] | maven-jar-plugin [ 10362 ] |
| Affects Version/s | 1.0.2 [ 11343 ] |
Lukas Theussl
made changes -
Lukas Theussl
made changes -
| Fix Version/s | 1.8 [ 11767 ] |
Lukas Theussl
made changes -
| Status | Open [ 1 ] | Closed [ 6 ] |
| Resolution | Fixed [ 1 ] | |
| Assignee | Lukas Theussl [ lukas ] |