Hi Eveyone,
We currently create a war file for a certain artifact. Now another group
has created an application that requires the first artifact to be a jar not
a war. Is there any way to have maven create both a jar and a war for a
single artifact?
Thanks,
David
Typically, we recommend you split out the webapp-specific files into
another project that depends on the first. Then, you can set the
packaging of the first project to 'jar' and to 'war' for the second.
Now, your other group can simply depend on the jar artifact.
-john
On Aug 16, 2007, at
Hi David,
I think the Maven Way suggests you have a project for the Jar and a
project for the War.
However, executing 'jar:jar' within the project should produce the desired
results.
HTH
Mel
On 8/16/07, David Williams [EMAIL PROTECTED] wrote:
Hi Eveyone,
We currently create a war file for
Sure. The problem you're going to have with this is, both jar:jar and
war:war (if that's the right mojo name) will set the main project
artifact to their respective output...leaving you with the question
Which one will be installed in the local repository and the more
important question