Uploaded image for project: 'Maven Archetype'
  1. Maven Archetype
  2. ARCHETYPE-489

Specify MANIFEST.MF for archetype project jar

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Do
    • 2.4
    • None
    • Archetypes
    • None
    • I don't think this request is specific to any particular environment.

    Description

      When I build a jar file with Maven, I like to augment the MANIFEST.MF with information such as the time that the artifact was built and the SCM revision and branch from which the artifact was built. This comes in really handy when I need to determine whether or not a particular change made it into a jar file that has been deployed to my Maven repository.

      For jar and war projects, I use the <archive> section of the maven-jar-plugin and maven-war-plugin to configure the information I want in the MANIFEST.MF. I was hoping to have similar information for the jar built from my maven-archetype project, but I see that the maven-archetype-plugin's jar goal does not generate a MANIFEST.MF file in the jar that it creates.

      http://maven.apache.org/archetype/maven-archetype-plugin/jar-mojo.html

      I request that an <archive> section be added to the archetype's jar goal that would offer the same manifest configuration capabilities as those in the apache-jar-plugin.

      https://maven.apache.org/plugins/maven-jar-plugin/jar-mojo.html#archive

      Thank you very much,

      Dave

      Attachments

        Activity

          People

            Unassigned Unassigned
            DavidWhitlock David Whitlock
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: