Uploaded image for project: 'Maven Assembly Plugin'
  1. Maven Assembly Plugin
  2. MASSEMBLY-332

MANIFEST.MF is not used when specified in configuration for a WAR format assembly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2-beta-2
    • 2.2
    • None
    • None

    Description

      When you try to specify a manifestFile for an assembly with war format, the manifest file specified is not used.

      I have attached a zip archive which contains a maven project that reproduces the bug. The assembly generated during the package phase and named myArtifactId-1.0.0-source.war contains a manifest file, but not the one specified in the maven-assembly-plugin configuration in the pom.

      I tried different versions 2.1 and 2.2-beta-2 with jar and war assembly formats, here's the behavior description:
      maven-assembly 2.1 + war assembly format >>>>>>> good manifest file included
      maven-assembly 2.2-beta-2 +war assembly format >>>>>>> empty manifest file
      maven-assembly 2.1 + jar assembly format >>>>>>> good manifest file included
      maven-assembly 2.2-beta-2 + jar assembly format >>>>>>> good manifest file included

      The workaround is to use version 2.1 of the maven-assembly-plugin.

      Attachments

        1. maven_project.zip
          1 kB
          Julien Simon
        2. MASSEMBLY-332-maven-assembly-plugin.patch
          0.8 kB
          Edd Steel

        Activity

          People

            jdcasey John Dennis Casey
            juliensimon Julien Simon
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: