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

Assembly Plugin doesn't add the Maven descriptors with the JarArchiver

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.6, 3.5.0
    • None
    • None
    • None

    Description

      It is possible to configure the Assembly Plugin with an archiver parameter. However, only the configured manifest would be added to the JAR archive in META-INF/MANIFEST.MF, the other archive configuration are ignored. Notably, the Maven descriptors pom.xml and pom.properties are not added under META-INF/maven, although addMavenDescriptor defaults to true as per the Archiver reference. (Note that explictly setting it to true doesn't create them either.)

      A sample project MASSEMBLY-835.zip is attached. Running mvn clean package, the created target/test-1.0-SNAPSHOT-its.jar has the following structure:

      ├───META-INF
      │       MANIFEST.MF
      │
      └───test-1.0-SNAPSHOT
              assembly.xml
              pom.xml
      

      The expected structure would be:

      ├───META-INF
      │   │   MANIFEST.MF
      │   │
      │   └───maven
      │       └───test
      │           └───test
      │                   pom.properties
      │                   pom.xml
      │
      └───test-1.0-SNAPSHOT
              assembly.xml
              pom.xml
      

      Attachments

        1. MASSEMBLY-835.zip
          1 kB
          Guillaume Boué

        Activity

          People

            Unassigned Unassigned
            gboue Guillaume Boué
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: