[
https://issues.apache.org/jira/browse/MASSEMBLY-835?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Slawomir Jaranowski updated MASSEMBLY-835:
------------------------------------------
Affects Version/s: 3.5.0
> Assembly Plugin doesn't add the Maven descriptors with the JarArchiver
> ----------------------------------------------------------------------
>
> Key: MASSEMBLY-835
> URL: https://issues.apache.org/jira/browse/MASSEMBLY-835
> Project: Maven Assembly Plugin
> Issue Type: Bug
> Affects Versions: 2.6, 3.5.0
> Reporter: Guillaume Boué
> Priority: Major
> Attachments: MASSEMBLY-835.zip
>
>
> 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|https://maven.apache.org/shared/maven-archiver/]. (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:
> {noformat}
> ├───META-INF
> │ MANIFEST.MF
> │
> └───test-1.0-SNAPSHOT
> assembly.xml
> pom.xml
> {noformat}
> The expected structure would be:
> {noformat}
> ├───META-INF
> │ │ MANIFEST.MF
> │ │
> │ └───maven
> │ └───test
> │ └───test
> │ pom.properties
> │ pom.xml
> │
> └───test-1.0-SNAPSHOT
> assembly.xml
> pom.xml
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)