Hi Wendy,
With all due respect, having to build 3 separate projects, all within a multi-project -- so 4 projects where there was once 1 -- certainly doesn't seem to be in line w/ "keeping it simple". Especially when all we want is some different packaging for the same raw classes/ resources. So I'll avoid that path if at all possible. I have always found maven multi-projects somewhat problematic -- particularly when generating sites, reports, etc.

Thanks for the pointer to the WAR plugin. Much appreciated. I'll take a look.

Still what I find confusing is that the deploy plugin is aware of SNAPSHOTs versus Releases -- and it chooses the URL dynamically from distributionManagement -- so it seems that deploy-file could too??
Thanks,
-- Chris
On Jul 3, 2008, at 5:53 PM, Wendy Smoak wrote:

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]


S'all good  ---   chriswberry at gmail dot com




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to