You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2005/10/14 08:10:12 UTC

[jira] Closed: (MNG-1202) Missing support for adding sections to the manifest at build time

     [ http://jira.codehaus.org/browse/MNG-1202?page=all ]
     
Brett Porter closed MNG-1202:
-----------------------------

      Assign To: Brett Porter
     Resolution: Fixed
    Fix Version: 2.0-beta-4

applied, thanks

> Missing support for adding sections to the manifest at build time
> -----------------------------------------------------------------
>
>          Key: MNG-1202
>          URL: http://jira.codehaus.org/browse/MNG-1202
>      Project: Maven 2
>         Type: Improvement
>   Components: maven-jar-plugin, maven-archiver
>     Versions: 2.0-beta-4
>  Environment: Windows XP SP2
> Java J2SE 1.4.2_08
>     Reporter: Mark Russell
>     Assignee: Brett Porter
>     Priority: Minor
>      Fix For: 2.0-beta-4
>  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 is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org