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" <br...@maven.zuhause.org>: > 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 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, Bruce Albrecht <br...@maven.zuhause.org> > > wrote: > > > >> 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 just use the antrun plugin. > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > >> For additional commands, e-mail: users-h...@maven.apache.org > >> > >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >