Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-2284

Cannot specify additional classpath entries in manifest when using addClasspath

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4
    • 2.0.5
    • None
    • None
    • Maven 2.0.4, maven-jar-plugin 2.0 and 2.1-SNAPSHOT, JDK 1.5.0_06, Windows XP

    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.

      Attachments

        1. MNG-2284-fix-addClasspath-and-user-specified-classpath-2.patch
          4 kB
          Fredrik Vraalsen
        2. pom.xml
          1.0 kB
          Fredrik Vraalsen

        Activity

          People

            kenneyw kenneyw
            fredriv Fredrik Vraalsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: