Uploaded image for project: 'Maven Shared Components'
  1. Maven Shared Components
  2. MSHARED-777

Remove deprecated main attributes from generated manifest

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: maven-archiver-3.2.0
    • Fix Version/s: maven-archiver-3.4.0
    • Component/s: maven-archiver
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              michael-o Michael Osipov
              Reporter:
              frvabe Franz van Betteraey
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: