Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4
-
Fix Version/s: 2.0.5
-
Component/s: None
-
Labels:None
-
Environment:Maven 2.0.4, maven-jar-plugin 2.0 and 2.1-SNAPSHOT, JDK 1.5.0_06, Windows XP
-
Complexity:Intermediate
-
Number of attachments :
Description
When using addClasspath, e.g. in the maven-jar-plugin, it is not possible to add additional classpath entries using manifestEntries, as this generates an illegal manifest file (contains two Class-Path entries). Please see http://jira.codehaus.org/browse/MJAR-41
I have been looking through the code, and it seems this might need to be resolved in MavenArchiver? I've attached a simple fix that solves the problem for me, but a more thorough solution might be needed of course. ![]()
Anyone have any comments on this? Is it a good idea to allow people to futz with their Class-Path? And if so, is it a good idea to hardcode the check for Class-Path in maven-archiver as the patch does? I'm not sure how I feel about this one...