jira-importer commented on issue #227:
URL: 
https://github.com/apache/maven-jar-plugin/issues/227#issuecomment-2956683349

   **[Mike 
Perham](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=mperham)** 
commented
   
   Ok, I spent an hour looking at this.
   
   maven-archiver 2.1 is hosed AFAICT.  You cannot override manifest entries or 
merge Class-Path values with that version.  When I upgrade jar-plugin to use 
maven-archiver 2.2-SNAPSHOT, everything works as expected.  This is the 
configuration I played with.
   
   ```xml
   <build>
      <plugins>
        <plugin>
           <artifactId>maven-jar-plugin</artifactId>
           <configuration>
                <archive>
                     <index>true</index>
                     <manifest>
                              
<addDefaultSpecificationEntries>false</addDefaultSpecificationEntries>
                              
<addDefaultImplementationEntries>false</addDefaultImplementationEntries>
                              <mainClass>com.acme.Main</mainClass>
                              <addClasspath>true</addClasspath>
                     </manifest>
                     <manifestEntries>
                              <Class-Path>foo/bar</Class-Path>
                              <Specification-Title>Foo</Specification-Title>
                     </manifestEntries>
                </archive>
           </configuration>
        </plugin>
      </plugins>
   </build>
   ```
   
   It looks like we will need to release maven-archiver again.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to