[ 
https://issues.apache.org/jira/browse/MSHADE-218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Scholte closed MSHADE-218.
---------------------------------
    Resolution: Not A Problem
      Assignee: Robert Scholte

Closing as 'not a problem' assuming it now works, because the order does matter.

> MANIFEST entries copied from a custom execution-ed jar
> ------------------------------------------------------
>
>                 Key: MSHADE-218
>                 URL: https://issues.apache.org/jira/browse/MSHADE-218
>             Project: Maven Shade Plugin
>          Issue Type: Bug
>    Affects Versions: 2.4.2
>         Environment: $ mvn -version
> Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 
> 2015-11-11T01:41:47+09:00)
> Maven home: /usr/local/Cellar/maven/3.3.9/libexec
> Java version: 1.8.0_65, vendor: Oracle Corporation
> Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "mac os x", version: "10.11.2", arch: "x86_64", family: "mac"
>            Reporter: Jin Kwon
>            Assignee: Robert Scholte
>            Priority: Minor
>
> {{maven-shade-plugin}} copies a manifest entry from a custom {{jar:jar}}.
> When I add following execution which is not {{jar:default-jar}},
> {code:xml}
>           <plugin>
>             <groupId>org.apache.maven.plugins</groupId>
>             <artifactId>maven-jar-plugin</artifactId>
>             <executions>
>               <execution>
>                 <id>jar-cp</id>
>                 <goals>
>                   <goal>jar</goal>
>                 </goals>
>                 <phase>package</phase>
>                 <configuration>
>                   <archive>
>                     <manifest>
>                       <addClasspath>true</addClasspath>
>                       
> <classpathPrefix>${project.build.finalName}.cp.lib/</classpathPrefix>
>                       <mainClass>${mainClass}</mainClass>
>                     </manifest>
>                   </archive>
>                   <finalName>${project.build.finalName}.cp</finalName>
>                 </configuration>
>               </execution>
>             </executions>
>           </plugin>
> {code}
> {{maven-shade-plugin}} copies that {{Class-Path:}} entry.
> {code}
> Manifest-Version: 1.0
> Archiver-Version: Plexus Archiver
> ...
> Class-Path: [[this is not expected]]
> ...
> Build-Jdk: 1.8.0_65
> Main-Class: ...
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to