RE: [M2] Manifest.mf
-Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Friday, July 22, 2005 7:35 PM To: Bennett, Timothy (JIS - Applications) Cc: Maven Users List Subject: Re: [M2] Manifest.mf You can send them to http://jira.codehaus.org/browse/MNG. Thanks! Done. See http://jira.codehaus.org/browse/MNG-642. I saw your message on oscar-dev. Are you intending to work on the plugin at Oscar, or would you like somewhere else to house it? Yeah... I think we'll host it at the Apache Oscar project. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [M2] Manifest.mf
-Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Thursday, July 21, 2005 5:38 PM To: Maven Users List Subject: Re: [M2] Manifest.mf Correct, but we'd be happy to accept your changes to MavenArchiveConfiguration itself for the next release if they are standard fields. Or perhaps it could take some property/value pairs for other entries. Yep... I've already got some changes to MavenArchiveConfiguration and the maven-archiver POM that I'd like to submit. There will be more changes, I believe, as I continue to work on an osgi plugin for M2. Let me know how to submit the changes... Timothy [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Manifest.mf
You can send them to http://jira.codehaus.org/browse/MNG. Thanks! I saw your message on oscar-dev. Are you intending to work on the plugin at Oscar, or would you like somewhere else to house it? - Brett On 7/23/05, Bennett, Timothy (JIS - Applications) [EMAIL PROTECTED] wrote: -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Thursday, July 21, 2005 5:38 PM To: Maven Users List Subject: Re: [M2] Manifest.mf Correct, but we'd be happy to accept your changes to MavenArchiveConfiguration itself for the next release if they are standard fields. Or perhaps it could take some property/value pairs for other entries. Yep... I've already got some changes to MavenArchiveConfiguration and the maven-archiver POM that I'd like to submit. There will be more changes, I believe, as I continue to work on an osgi plugin for M2. Let me know how to submit the changes... Timothy [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [M2] Manifest.mf
-Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Friday, July 15, 2005 11:55 PM To: Maven Users List Subject: Re: [M2] Manifest.mf 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-a rchiver/src/main/java/org/apache/maven/archiver/MavenArchiveConfiguratio n.java MavenArchiveConfiguration has getManifest() method, but no setManifest() method??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Manifest.mf
While we may change it, currently Maven uses private field injection of configuration, so it is still set. - Brett On 7/22/05, Bennett, Timothy (JIS - Applications) [EMAIL PROTECTED] wrote: -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Friday, July 15, 2005 11:55 PM To: Maven Users List Subject: Re: [M2] Manifest.mf 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-a rchiver/src/main/java/org/apache/maven/archiver/MavenArchiveConfiguratio n.java MavenArchiveConfiguration has getManifest() method, but no setManifest() method??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [M2] Manifest.mf
-Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Thursday, July 21, 2005 4:49 PM To: Maven Users List Subject: Re: [M2] Manifest.mf While we may change it, currently Maven uses private field injection of configuration, so it is still set. I suppose I could (for my plugin purposes) extend MavenArchiveConfiguration and add my own setter to inject a custom manifest file? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Manifest.mf
Correct, but we'd be happy to accept your changes to MavenArchiveConfiguration itself for the next release if they are standard fields. Or perhaps it could take some property/value pairs for other entries. - Brett On 7/22/05, Bennett, Timothy (JIS - Applications) [EMAIL PROTECTED] wrote: -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Thursday, July 21, 2005 4:49 PM To: Maven Users List Subject: Re: [M2] Manifest.mf While we may change it, currently Maven uses private field injection of configuration, so it is still set. I suppose I could (for my plugin purposes) extend MavenArchiveConfiguration and add my own setter to inject a custom manifest file? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [M2] Manifest.mf
-Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Friday, July 15, 2005 11:55 PM To: Maven Users List Subject: Re: [M2] Manifest.mf I'd be interested to see what you are doing here, and whether an osgi-bundle plugin could be created to assist in this. Sure... Here's an example of my Ant JAR target: target name=jar depends=compile jar manifest=${src.dir}/tutorial/example2/manifest.mf jarfile=${bundle.dir}/${bundle.name}.jar basedir=${output.dir} include name=**/ /jar /target Basically, I've got a manifest.mf file in the source tree of my osgi bundle, which happens to look something like this: Bundle-Activator: tutorial.example6.Activator Import-Package: tutorial.example5.service Bundle-Name: Spell Check Client Bundle-Description: A bundle that uses the spell check service Bundle-Vendor: Some Vendor Name Bundle-Version: 1.0.0 The Ant task *merges* my custom manifest with some tool generated manifest entries and produces a manifest file in the jar's /meta-inf directory that looks like this: Manifest-Version: 1.0 Ant-Version: Apache Ant 1.6.1 Created-By: 1.5.0_03-b07 (Sun Microsystems Inc.) Bundle-Activator: tutorial.example2.Activator Export-Package: tutorial.example2.service Bundle-Name: English Dictionary Bundle-Description: A bundle that registers an English dictionary service Bundle-Vendor: Some Vendor Name Bundle-Version: 1.0.0 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-a rchiver/src/main/java/org/apache/maven/archiver/MavenArchiveConfiguratio n.java manifest in there is: http://svn.apache.org/repos/asf/maven/components/trunk/maven-a rchiver/src/main/java/org/apache/maven/archiver/ManifestConfiguration.ja va though you can add your own manifestFile instead of a manifest element. I'll check into these resources. Worst case, I guess I try out Maven-2's new plug-in development interface. I suppose it would be nice to just include a manifest file in the POM's buildresources/resources/build nodes, so that M2 would automatically include a custom manifest that I specify in the JAR just like I can tell maven to include other resources like property and XML files. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Manifest.mf
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) [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]