You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Bennett, Timothy (JIS/Applications)" <Ti...@jis.nashville.org> on 2005/07/15 16:39:10 UTC

[M2] Manifest.mf

All,

Can someone point me in the right direction to find some information
about how to customize the manifest.mf file that m2 creates and includes
in the jar?

I'm trying to use m2 to build my OSGi bundles, and OSGi requires the
bundle meta-data to be added to the jar manifest.  I know how to do this
in Ant, but I'd prefer to use M2.

Regards and thanks,
Timothy

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


Re: [M2] Manifest.mf

Posted by Brett Porter <br...@gmail.com>.
I'd be interested to see what you are doing here, and whether an
osgi-bundle plugin could be created to assist in this.

Unfortunately the JAR plugin documentation does not yet go deep enough
into the manifest element, but it's fields are seen here:

http://maven.apache.org/maven2/plugins/maven-jar-plugin/jar-mojo.html

<archive> is:
http://svn.apache.org/repos/asf/maven/components/trunk/maven-archiver/src/main/java/org/apache/maven/archiver/MavenArchiveConfiguration.java

<manifest> in there is:
http://svn.apache.org/repos/asf/maven/components/trunk/maven-archiver/src/main/java/org/apache/maven/archiver/ManifestConfiguration.java

though you can add your own manifestFile instead of a manifest element.

HTH,
Brett

On 7/16/05, Bennett, Timothy (JIS/Applications)
<Ti...@jis.nashville.org> wrote:
> All,
> 
> Can someone point me in the right direction to find some information
> about how to customize the manifest.mf file that m2 creates and includes
> in the jar?
> 
> I'm trying to use m2 to build my OSGi bundles, and OSGi requires the
> bundle meta-data to be added to the jar manifest.  I know how to do this
> in Ant, but I'd prefer to use M2.
> 
> Regards and thanks,
> Timothy
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

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