[ 
https://issues.apache.org/jira/browse/MJAR-193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14576645#comment-14576645
 ] 

Carsten Ziegeler commented on MJAR-193:
---------------------------------------

Thanks for the responses, I guess it would be great, if the bundle plugin would 
just calculate additional entries to the manifest and not the whole manifest 
itself (things like created by etc. could then be handled by the jar plugin). I 
guess the above configuration works, the one used in the docs for the new 
plugin are:
{code:xml}
<plugin>
    <artifactId>maven-jar-plugin</artifactId>
    <configuration>
        <archive>
            
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
        </archive>
    </configuration>
{code}

It's not a huge deal to have to configure something like this (or your 
suggestion), but it would be way nicer and easier for users, if just enabling 
the bundle plugin in a build would be enough and the additional manifest 
entries appear in the final jar.

> Allow other mojos to contribute to the manifest
> -----------------------------------------------
>
>                 Key: MJAR-193
>                 URL: https://issues.apache.org/jira/browse/MJAR-193
>             Project: Maven JAR Plugin
>          Issue Type: Improvement
>            Reporter: Carsten Ziegeler
>             Fix For: waiting-for-feedback
>
>
> It would be great to have a programmatic way to add entries to the manifest 
> from other mojos. The most important client of such a way would be the maven 
> bundle plugin (from the Apache Felix project) that calculates additional 
> headers for OSGi bundles. Right now, that bundle does not only do the 
> calculation but generates the jar file as well.
> While a workaround would be to let the bundle plugin generate the full 
> manifest and configure the jar plugin to use it, this is not very elegant. 
> Passing down a map of manifest entries from one mojo to the jar plugin would 
> solve this in a much better way.
> And I could imagine that other mojos/plugins might benefit for this as well.
> This would be a simple but very convenient enhancement to the plugin



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to