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