maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastian Otaegui <>
Subject Re: using build profiles for WAR plugin
Date Thu, 01 Mar 2012 05:24:19 GMT
One of the uses of profiles is to have different maven runtime
configurations for running different plugin configurations based on them.

See these examples

If you still insist on doing what you are saying one option is to do a
multimodule project.

like this:

- top level (parent pom where you define your modules)
          ---------  your "vanilla" war (your "real" webapp)
          ---------  your "qa" war
          ---------  your "prod" war

both the "qa" and "prod" war are built using the maven-war-plugin with the
overlay feature.

The people that maintains CAS (JASIG) are using that methodology.

On Wed, Feb 29, 2012 at 10:10 PM, Ron Wheeler <> wrote:

> Everyone else has to deal with this situation.
> Your concerns are not unique.
> Everyone has production, development and maintenance to deal with.
> A lot of applications of each type standalone, web, etc., have been built
> by many companies and development teams.
> You have been told the correct way to handle this.
> If you want to do it in the wrong way and misuse the features of maven,
> you can.
> No one will stop you.
> You have been warned that it will not work but you can try as long as you
> like.
> It should be clear that the best minds in the Maven world (the guys who
> wrote it and maintain it) have given you their best advice.
> Why not try it the "right" way once and see if you like it. At least you
> will get help.
> Some of the suggestions are very easy to try. A few minutes of editing a
> few POMs.
> Ron
> On 29/02/2012 6:04 PM, offbyone wrote:
>> Thanks for the reply.
>> Unfortunately all the documentation I have seen point to profiles for this
>> tool.  If profiles are not used to differentiate runtime configuration
>> changes, then what are?  Can you point me to some documentation?
>> --
>> View this message in context: http://maven.40175.n5.nabble.**
>> com/using-build-profiles-for-**WAR-plugin-tp5525954p5526330.**html<>
>> Sent from the Maven - Users mailing list archive at
>> ------------------------------**------------------------------**---------
>> To unsubscribe, e-mail: users-unsubscribe@maven.**<>
>> For additional commands, e-mail:
> --
> Ron Wheeler
> President
> Artifact Software Inc
> email:
> skype: ronaldmwheeler
> phone: 866-970-2435, ext 102
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Those who do not understand Unix are condemned to reinvent it, poorly.
Any sufficiently recent Microsoft OS contains an ad hoc,
informally-specified, bug-ridden, slow implementation of half of Unix.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message