Plexus Components
  1. Plexus Components
  2. PLXCOMP-22

Plexus archiver overwrites custom MANIFEST.MFs

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: plexus-archiver
    • Labels:
      None
    • Number of attachments :
      0

      Description

      My WAR contains a custom MANIFEST.MF in order to reference EAR resources in its classpath but the war generated with maven2 will not work because plexus-archiver generates its own simple MANIFEST file which overwrites mine. Archiver should only create a manifest if one does not already exist.

        Issue Links

          Activity

          Hide
          Rémy Sanlaville added a comment -

          I still have the problem with the war plugin.

          My custom manifest
          Manifest-Version: 1.0
          Archiver-Version: Plexus Archiver
          Created-By: Apache Maven
          Built-By: USER000
          Build-Jdk: 1.5.0_07
          Extension-Name: war-common
          Implementation-Title: war-common
          Implementation-Version: 1.0-SNAPSHOT
          Class-Path: properties
          
          Manifest in the war archive
          Manifest-Version: 1.0
          Archiver-Version: Plexus Archiver
          Created-By: Apache Maven
          Built-By: USER000
          Build-Jdk: 1.5.0_07
          
          Show
          Rémy Sanlaville added a comment - I still have the problem with the war plugin. My custom manifest Manifest-Version: 1.0 Archiver-Version: Plexus Archiver Created-By: Apache Maven Built-By: USER000 Build-Jdk: 1.5.0_07 Extension-Name: war-common Implementation-Title: war-common Implementation-Version: 1.0-SNAPSHOT Class -Path: properties Manifest in the war archive Manifest-Version: 1.0 Archiver-Version: Plexus Archiver Created-By: Apache Maven Built-By: USER000 Build-Jdk: 1.5.0_07
          Hide
          Olivier Lamy added a comment -

          IMHO it's not a PLX issue but a MWAR issue because it's possible to use a custom manifest in the the jar plugin.

          Show
          Olivier Lamy added a comment - IMHO it's not a PLX issue but a MWAR issue because it's possible to use a custom manifest in the the jar plugin.
          Hide
          Rémy Sanlaville added a comment -

          Ok, I will look at the maven-war-plugin.

          Even if it is possible to generate a custom manifest has described in war-manifest-guide, it's not what I need in my case.

          In my context, I also use the overlays mechanism and I would like to keep the manifest from my common war. It seems that is not possible to combine both custom manifest and overlays because the maven-war-plugin can't take into account an existing manifest. It can just generate a new one with the corresponding configuration in the pom.

          I will look if I found a solution and if not I will open an improvement for the maven-war-plugin.

          Show
          Rémy Sanlaville added a comment - Ok, I will look at the maven-war-plugin. Even if it is possible to generate a custom manifest has described in war-manifest-guide , it's not what I need in my case. In my context, I also use the overlays mechanism and I would like to keep the manifest from my common war. It seems that is not possible to combine both custom manifest and overlays because the maven-war-plugin can't take into account an existing manifest. It can just generate a new one with the corresponding configuration in the pom. I will look if I found a solution and if not I will open an improvement for the maven-war-plugin.
          Hide
          Rémy Sanlaville added a comment -

          I have opened the following issue MWAR-142

          Show
          Rémy Sanlaville added a comment - I have opened the following issue MWAR-142
          Hide
          Olivier Lamy added a comment -

          I close it because it's possible to use a custom manifest with plexus archiver

          Show
          Olivier Lamy added a comment - I close it because it's possible to use a custom manifest with plexus archiver

            People

            • Assignee:
              Unassigned
              Reporter:
              Mike Perham
            • Votes:
              5 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: