> -----Original Message-----
> From: Jason van Zyl [mailto:[EMAIL PROTECTED]
> Sent: lundi 12 septembre 2005 06:56
> To: Maven Developers List
> Subject: Re: Questions of profiles and settings...

[snip]

> Here's a little piece of doco that John wrote that might be of help
> right now:
> 
> http://maven.apache.org/maven2/profiles-overview.html

Thanks Jason, I wasn't aware of this doc. I've read it and I have some more
questions (probably for John):

* It seems that I need to put my project-specific profiles in a profiles.xml
file located in my project. So far so good. However, how can I trigger a
profile automatically? I could by having an activeProfile element in the
master settings.xml file but I don't want to do that as this activation is
only for this specific project so I want to contain everything related to
this project in the project's root dir.

Here's a reminder of what I'd like to do (from the previous email):
- I have a property named ${cargo.containers} that has a default value set
up in a profile inlined in pom.xml
- I'd like that users of the build could specify an overridden value for
this cargo.containers property. The best place to do that is in a
profile.xml file in the project's root dir.
- I'd like their overridden value to be used when they type "m2 install"
without them having to type "m2 -Denv=myprofile install" which is too much
of a hassle IMO

* The http://maven.apache.org/maven2/profiles-overview.html document doesn't
mention the trick of naming a default profile "default" (as is described on
http://docs.codehaus.org/display/MAVEN/Build+Profiles). Does it mean it's
not implemented?

Note: The reason I want this profile to be always on is because I want to
always have a default property for ${cargo.containers}.

* How do I tell m2 that the profile I have defined in the pom.xml file must
always be activated (I thought naming it "default" would work but apparently
not)?

* The http://maven.apache.org/maven2/profiles-overview.html doc is quite
nice. It explains well what is dangerous with profiles and with an appserver
path property but it doesn't give a solution (or I haven't found it)... :-)
I think what I want to do by using a default value specified in an inlined
profile would do the trick but I can't find a solution to activate this
default profile...

Thanks
-Vincent


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to