On Thu, Jul 3, 2008 at 3:40 PM, Chris Berry <[EMAIL PROTECTED]> wrote:
> I am generating several artifacts from my build; a WAR, a TAR.GZ, and a JAR > -- as required by downstream usage scenarios (embedded, standalone, or > webapp) > The project has WAR packaging. But I need to supply a JAR and TAR.GZ as > well. It sounds like you are trying to do all this from a single module? The general rule with Maven is 'one main artifact per pom.' In this situation you'd have a multi-module project with one module building a jar, another building the war, and a third building the assembly, plus a parent pom to tie it all together. With that setup, 'mvn install' and 'mvn deploy' will do what you want. (That said, there is a new feature of the war plugin that will create an attached artifact containing the classes [1]. And assemblies can be combined with other modules, but I prefer to keep it all separate.) [1] http://jira.codehaus.org/browse/MWAR-131 -- Wendy --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]