You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Sylwester Lachiewicz (Jira)" <ji...@apache.org> on 2019/12/26 20:46:00 UTC
[jira] [Assigned] (MASSEMBLY-835) Assembly Plugin doesn't add the
Maven descriptors with the JarArchiver
[ https://issues.apache.org/jira/browse/MASSEMBLY-835?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sylwester Lachiewicz reassigned MASSEMBLY-835:
----------------------------------------------
Assignee: (was: Guillaume Boué)
> 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
> 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.3.4#803005)