Uploaded image for project: 'Maven JAR Plugin'
  1. Maven JAR Plugin
  2. MJAR-234

Class-Path: attribute in manifest shouldn't have broken names

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:

      Description

      I'd like to reopen https://issues.apache.org/jira/browse/MJAR-121: in MANIFEST.MF, when you spawn a list like this for Class-Path:

      Class-Path: commons-lang-2.4.jar plexus-utils-1.1.jar workflow-base-1.
      0.4-SNAPSHOT.jar commons-cli-1.2.jar

      (there is a space before 0.4, JIRA is not rendering it here)

      Java doesn't see the classes in workflow-base-1.0.4-SNAPSHOT.jar, which has a break in between. If I change it manually, to list one jar per line (with two spaces at the begin of the line), it works as expected. Also note I do put a blank line at the end in both cases.

      Generating that list the way you do might be compatible with the jar specifications, but Java 8 apparently isn't compatible with them and hence the end result is a failing JAR.

      The first fix coming in my mind is to list one jar per line, as I did.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              zakmck Marco Brandizi
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: