Marco Brandizi created MJAR-234:
-----------------------------------

             Summary: Class-Path: attribute in manifest shouldn't have broken 
names
                 Key: MJAR-234
                 URL: https://issues.apache.org/jira/browse/MJAR-234
             Project: Maven JAR Plugin
          Issue Type: Bug
         Environment: 10:20:02 $ mvn --version
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 
2015-11-10T16:41:47+00:00)
Maven home: /Applications/local/dev/maven
Java version: 1.8.0_121, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre
Default locale: en_GB, platform encoding: UTF-8
OS name: "mac os x", version: "10.12.3", arch: "x86_64", family: "mac"
10:21:57 $

I've tried the 3.0.2 version of the jar plug-in

            Reporter: Marco Brandizi


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

Java doesn't see the classes in workflow-base-1.0.4-SNAPSHOT.jar, which has a 
break in between. If I change it 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 the files on separated lines.




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to