|
Loading...
|
users@maven.apache.org
[Prev] Thread [Next] | [Prev] Date [Next]
Re: using build profiles for WAR plugin Sebastian Otaegui Wed Feb 29 22:00:19 2012
One of the uses of profiles is to have different maven runtime
configurations for running different plugin configurations based on them.
See these examples
https://github.com/jbossas/jboss-as/blob/master/pom.xml
https://github.com/jboss/jboss-parent-pom/blob/master/pom.xml
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.
http://maven.apache.org/plugins/maven-war-plugin/examples/war-overlay.html
The people that maintains CAS (JASIG) are using that methodology.
On Wed, Feb 29, 2012 at 10:10 PM, Ron Wheeler <
[EMAIL PROTECTED]> 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<http://maven.40175.n5.nabble.com/using-build-profiles-for-WAR-plugin-tp5525954p5526330.html>
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>> ------------------------------**------------------------------**---------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]<[EMAIL PROTECTED]>
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
> --
> Ron Wheeler
> President
> Artifact Software Inc
> email: [EMAIL PROTECTED]
> skype: ronaldmwheeler
> phone: 866-970-2435, ext 102
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
--
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.
- using build profiles for WAR plugin Ryan Wexler 2012/02/29
- Re: using build profiles for WAR plugin Wayne Fay 2012/02/29
- Re: using build profiles for WAR plugin offbyone 2012/02/29
- Re: using build profiles for WAR plugin Stephen Connolly 2012/02/29
- Re: using build profiles for WAR plugin offbyone 2012/02/29
- Re: using build profiles for WAR plugin Ansgar Konermann 2012/02/29
- Re: using build profiles for WAR plugin offbyone 2012/02/29
- Re: using build profiles for WAR plugin Ron Wheeler 2012/02/29
- Re: using build profiles for WAR plugin Sebastian Otaegui 2012/02/29 <=