Maven-assembly-plugin: How to make the assembly the primary artifact

2010-07-01 Thread Andreas Sewe
Hi all, I have a project which should produce a ZIP, with all contents of ${project.build.outputDirect} put into a base directory within the ZIP. So far, the maven-assembly-plugin with includeBaseDirectory fits the bill perfectly. There is one issue, however, which I haven't been able to

Re: Maven-assembly-plugin: How to make the assembly the primary artifact

2010-07-01 Thread Kalle Korhonen
The pom artifact is always produced regardless. Make your module type pom and attach the assembly zip as an artifact with the help of buildhelper plugin: http://mojo.codehaus.org/build-helper-maven-plugin/usage.html. Kalle On Thu, Jul 1, 2010 at 9:56 AM, Andreas Sewe

Re: Maven-assembly-plugin: How to make the assembly the primary artifact

2010-07-01 Thread Tamás Cservenák
While Kalle's solution will do the work, I can't emphasize how this approach is wrong, at least I think it is. For situations like this, a custom plugin (or better, custom packaging) would be the best, since this solution will produce inconsistent data: Deployed POM will have packaging pom, and

Re: Maven-assembly-plugin: How to make the assembly the primary artifact

2010-07-01 Thread Anders Hammar
I'm with Tamás here. Having something that works, is not always the correct solution... /Anders 2010/7/1 Tamás Cservenák ta...@cservenak.net While Kalle's solution will do the work, I can't emphasize how this approach is wrong, at least I think it is. For situations like this, a custom