maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Osipov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MNG-6521) remove deprecated main attributes from generated MANIFEST
Date Mon, 19 Nov 2018 16:49:00 GMT

    [ https://issues.apache.org/jira/browse/MNG-6521?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16691964#comment-16691964
] 

Michael Osipov commented on MNG-6521:
-------------------------------------

Interesting, but the attributes aren't read through code anymore. They are solely for humans,
aren't they? It does not hurt to have them by now, does it?

> remove deprecated main attributes from generated MANIFEST
> ---------------------------------------------------------
>
>                 Key: MNG-6521
>                 URL: https://issues.apache.org/jira/browse/MNG-6521
>             Project: Maven
>          Issue Type: Improvement
>          Components: Artifacts and Repositories
>    Affects Versions: 3.6.0
>            Reporter: Franz van Betteraey
>            Priority: Minor
>
> The MANIFEST implementation entries can be generated by using the 'addDefaultImplementationEntries'
of the Apache Maven Archiver configuration
> (http://maven.apache.org/shared/maven-archiver/index.html#class_manifest) like this:
>     <archive>
>         <manifest>
>             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
>         </manifest>
>     </archive>
>     
> This will add
>     Implementation-Title: ${project.name}
>     Implementation-Version: ${project.version}
>     Implementation-Vendor-Id: ${project.groupId}
>     Implementation-Vendor: ${project.organization.name}
>     Implementation-URL: ${project.url}
> to the MANIFEST.MF file. But
>     Implementation-Vendor-Id and
>     Implementation-URL
> are deprecated by now (at least since Java 8 as seen here): 
> https://docs.oracle.com/javase/8/docs/technotes/guides/jar/jar.html#Main_Attributes
> In the Java 11 jar Manifest Specification they are not mentioned anymore.
> https://docs.oracle.com/en/java/javase/11/docs/specs/jar/jar.html#manifest-specification
> Thus I guess they also should be removed while generating the main implementation entries
by the Maven Archiver.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message