[
https://issues.apache.org/jira/browse/MJAR-12?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17957116#comment-17957116
]
Matthias Bünger commented on MJAR-12:
-------------------------------------
This project has moved from Jira to GitHub Issues. This issue was migrated to
[apache/maven-jar-plugin#202|https://github.com/apache/maven-jar-plugin/issues/202].
> Missing support for adding sections to the manifest at build time
> -----------------------------------------------------------------
>
> Key: MJAR-12
> URL: https://issues.apache.org/jira/browse/MJAR-12
> Project: Maven JAR Plugin (Moved to GitHub Issues)
> Issue Type: Improvement
> Environment: Windows XP SP2
> Java J2SE 1.4.2_08
> Reporter: Mark Russell
> Assignee: Brett Porter
> Priority: Minor
> Attachments: ManifestSectionSupportChanges.zip
>
>
> Currently it is not possible to add additional sections to the manifest by
> configuring the maven-jar-plugin through the configuration section in the
> pom.xml. You can only add attributes to the "main" section using the
> <manifestEntries> tag..
> Example... It is currently not possible to generate the manifest shown here:
> Manifest-Version: 1.0
> Archiver-Version: Plexus Archiver
> Created-By: Apache Maven
> Built-By: RUSM01
> Package: org.com.foo.app
> Build-Jdk: 1.4.2_08
> Extension-Name: my-app
> Specification-Vendor: MyCompany Inc
> Implementation-Vendor: MyCompany Inc
> Implementation-Title: my-app
> Implementation-Version: 1.0-SNAPSHOT
> Main-Class: org.com.foo.App
> mode: development
> url: http://maven.apache.org
> Name: SampleSectionNumberOne
> mode: development
> url: http://maven.apache.org
> Name: SampleSectionNumberTwo
> mode: development
> url: http://maven.apache.org
> Current workaround: Define the manifest in a seperate file and configure the
> maven-jar-plugin to use the file for the manifest.
> Attached to this defect is a zip file containing a potential fix. The zip
> file contains the changed version of the MavenArchiveConfiguration.java and
> MavenArchiver.java files, along with a patch file to update the originals.
> Additionally a new class was needed and is found in the ManifestSection.java
> file included in the zip. Last, a pom.xml example that shows how the feature
> would be used.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)