maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Fox <bri...@infinity.nu>
Subject Re: Maven-war-plugin not installing war. Installs ".jar" and renames it to ".war"
Date Wed, 03 Feb 2010 04:24:10 GMT
Shoving java code into a war project is an antipattern in Maven. Make
a module for the jar and depend upon that with a war and your life
will be better. Shoving it into the incorrect format is guaranteed to
cause you problems with tools that integrate with maven like ides.

On Tue, Feb 2, 2010 at 4:35 PM, Wayne Fay <waynefay@gmail.com> wrote:
>> It would be great if this would be fixed. It seems the maven-source-plugin
>> works properly, but the maven-war-plugin does not. I would like to generate
>> primary and secondary artifacts using a single pom file. It seems overly
>> complex to have to make modules out of everything.
>
> Unless you fix it yourself, I don't see this situation changing. Make
> a module with the jar contents as Eric said in the Jira. Get used to
> making lots of modules for your code with Maven.
>
> Wayne
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Mime
View raw message