Do I need to write a plugin for this?

2015-03-01 Thread Bruce Albrecht
I am working on a project that creates OSGI bundles with an extension of .cba and today uses ant to invoke a workbench to build the .cba file. I want to upload the .cba file to my Nexus repository. My initial take on this is that if IBM didn't use its own extension for this, I would be able to

write developers contributors into Jar

2015-03-01 Thread Philipp Kraus
Hello, I use Maven 3.0 with the developers and contributors inside the pom.xml. I use also the manifestEntries with the maven-assembly-plugin to add some flags to the Jar manifest file. I would like to add the developer and contributors list to the Jar, but I don’t know in which way I can add

Re: Do I need to write a plugin for this?

2015-03-01 Thread Benson Margulies
I don't understand your question at all. In Maven, you can just use the build-helper-maven-plugin to attach any file to the project, causing it to upload. So, you can certainly use antrun to run the ant build, and the helper to attach the result as an artifact. On Sun, Mar 1, 2015 at 4:18 PM,

Re: write developers contributors into Jar

2015-03-01 Thread Manfred Moser
If you want to just have the information in the jar somewhere, the pom file will already be in the jar by default. This is due to the archiver config addMavenDescriptor set to true. See http://maven.apache.org/shared/maven-archiver/index.html for the location of the pom file and further

Re: write developers contributors into Jar

2015-03-01 Thread Curtis Rueden
Hi Phillipp, If you want to just have the information in the jar somewhere, the pom file will already be in the jar by default. I second Manfred's suggestion, if using the POM works for your use case. I'm sure other projects have invented their own version of this, but just in case it's

Re: Do I need to write a plugin for this?

2015-03-01 Thread Bruce Albrecht
However, if I want my pom to have packaging of cba, it's my impression that I need to write a plugin. It's the only artifact I want to upload to Nexus. On 03/01/15 20:42, Benson Margulies wrote: I don't understand your question at all. In Maven, you can just use the build-helper-maven-plugin

Re: Do I need to write a plugin for this?

2015-03-01 Thread Anders Hammar
In that case you do, yes. That's called a custom packaging type and is implemented via a plugin. But you can also accomplish the upload by having a pom packaging and specify the cba file with the build-helper plugin as Benson wrote. /Anders (mobile) Den 2 mar 2015 07:25 skrev Bruce Albrecht

Re: Do I need to write a plugin for this?

2015-03-01 Thread Greg Trasuk
Hi Anders and Benson: Nothing to do with this question, but I’m curious for another project - could you point me towards a good example of a custom packaging type plugin? Thanks, Greg Trasuk On Mar 2, 2015, at 1:30 AM, Anders Hammar and...@hammar.net wrote: In that case you do, yes. That's

Re: Do I need to write a plugin for this?

2015-03-01 Thread Anders Hammar
I remember that I read this blog post when I created my first custom packaging type plugin: http://blog.sonatype.com/2009/08/create-a-customized-build-process-in-maven/ Then I also looked a lot at the jboss-packaging-maven-plugin at Codehaus mojo. /Anders On Mon, Mar 2, 2015 at 8:47 AM, Greg

Re: write developers contributors into Jar

2015-03-01 Thread Ron Wheeler
http://maven.apache.org/shared/maven-archiver/index.html This plug-in seems to allow yo a way to add key/value pairs to the Manifest. manifestEntries A list of key/value pairs to add to the manifest. On 01/03/2015 6:41 AM, Philipp Kraus wrote: Hello, I use Maven 3.0 with the

Re: write developers contributors into Jar

2015-03-01 Thread Baptiste Mathus
Actually, maven-archiver is a shared component, somehow low-level hence used by many plugins. In your case, just configure the maven-jar-plugin http://maven.apache.org/plugins/maven-jar-plugin/examples/manifest-customization.html Cheers 2015-03-01 20:21 GMT+01:00 Ron Wheeler