You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jose Gonzalez Gomez <jg...@opentechnet.com> on 2004/09/30 22:53:59 UTC
war:war not including version in artifact name
Hi there,
I have a multiproject with a web module, with war as the default
goal. Maven is generating the artifact without using the version
provided. This version is defined in the parent project.xml, although I
have tried to override it without success. Curiously, if I run the jar
goal, instead of the war goal, the generated artifact includes the
version in its name, and all the other modules are generating their
corresponding artifacts without any problem... any ideas? (of course, I
haven't defined maven.final.name)
Thanks in advance
Jose
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: war:war not including version in artifact name
Posted by Arnaud HERITIER <ah...@gmail.com>.
Certainly because if you use the default deployment feature in your
web server, the context name for your web application is the same as
the war (without the .war extension).
For those users it is annoying to have a different context for each release.
You can redefine the maven.war.final.name property if you want to a
the release in the name.
Arnaud
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: war:war not including version in artifact name
Posted by Jose Gonzalez Gomez <jg...@opentechnet.com>.
Ok, I have just found the explanation: maven.war.final.name defaults
to |${pom.artifactId}.war|. Why does this plugin use this approach
instead of using the same name schema than jar, ear, ejb... plugins? I
find this confusing for newbies as me.
Best regards
Jose
Jose Gonzalez Gomez wrote:
>
> Hi there,
>
> I have a multiproject with a web module, with war as the default
> goal. Maven is generating the artifact without using the version
> provided. This version is defined in the parent project.xml, although
> I have tried to override it without success. Curiously, if I run the
> jar goal, instead of the war goal, the generated artifact includes the
> version in its name, and all the other modules are generating their
> corresponding artifacts without any problem... any ideas? (of course,
> I haven't defined maven.final.name)
>
> Thanks in advance
> Jose
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org