You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Wayne Fay <wa...@gmail.com> on 2010/02/02 22:35:35 UTC

Re: Maven-war-plugin not installing war. Installs ".jar" and renames it to ".war"

> 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


Re: Maven-war-plugin not installing war. Installs ".jar" and renames it to ".war"

Posted by Stephane Nicoll <st...@gmail.com>.
On Wed, Feb 3, 2010 at 5:24 AM, Brian Fox <br...@infinity.nu> wrote:

> 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.
>

Since I wa

>
> On Tue, Feb 2, 2010 at 4:35 PM, Wayne Fay <wa...@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
>
>


-- 
Large Systems Suck: This rule is 100% transitive. If you build one, you
suck" -- S.Yegge

Re: Maven-war-plugin not installing war. Installs ".jar" and renames it to ".war"

Posted by Stephane Nicoll <st...@gmail.com>.
On Wed, Feb 3, 2010 at 5:24 AM, Brian Fox <br...@infinity.nu> wrote:

> 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.
>

(sorry, wrong shortcut)

Since I was the one who marked this as won't fix, I just wanted to confirm
that it isn't an issue of the war plugin per se but an antipattern just like
Brian described it.

S.

Re: Maven-war-plugin not installing war. Installs ".jar" and renames it to ".war"

Posted by Brian Fox <br...@infinity.nu>.
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 <wa...@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