I'm afraid that combination will not work. Worst case scenario: you define two the same profiles, one that is activated when the property is not set, the other when it has the value 'core'.
On Thursday 15 November 2007 12:13, Aaron Zeckoski wrote: > We do need a way to have a default profile OR simply a way so that > each project can be built using "mvn clean install" and still work > without the base. I also wanted to have it able to run when the same > property is set a certain way as well. > > In other words, if the property is set to core then the default > profile should run and if no properties are set ("mvn clean install") > then the default profile should still run. > > For example: > <profile> > <!-- default profile for sakai core --> > <id>sakai</id> > <activation> > <activeByDefault>true</activeByDefault> > <property> > <name>sakai.distribution</name> > <value>core</value> > </property> > </activation> > <modules> > <module>alias-api/api</module> > <module>alias-impl/impl</module> > <module>alias-impl/pack</module> > <module>alias-tool/tool</module> > </modules> > </profile> > <profile> > > Is it possible to combine them and have come up with something like > this? (probably not) > <activation> > <property> > <name>sakai.distribution</name> > <value>core</value> > </property> > <property> > <name>!sakai.distribution</name> > </property> > </activation> > > I will experiment a bit and see what happens. > Thanks! > -AZ > > On Nov 15, 2007 10:51 AM, Roland Asmann <[EMAIL PROTECTED]> wrote: > > Do you need the default-profile? If not, remove the tag > > 'activateByDefault'. > > > > Or you can try setting it to run when your property is NOT set/a certain > > value is NOT set: > > > > <property> > > <name>!property</name> > > </property> > > > > or > > > > <property> > > <name>property</name> > > <value>!value</value> > > </property> > > > > On Wednesday 14 November 2007 23:29, Aaron Zeckoski wrote: > > > Yes... I did that. This is not a newbie question (though I wish it > > > were). The default profile is still running unless I do something like > > > "mvn install -Pkernel" > > > > > > Here are the poms: > > > Parent: https://source.sakaiproject.org/contrib/caret/kernel/pom.xml > > > (this sets a property) > > > Project: > > > https://source.sakaiproject.org/contrib/caret/kernel/alias/pom.xml > > > (this one has the default profile getting activated even though another > > > profile is activated via a property) > > > > > > So, the question is, how do I get the same effect as running "mvn > > > install -Pkernel" (which is to not run the default profile anymore and > > > only run the profile that I wanted)? > > > > > > -AZ > > > > > > On Nov 14, 2007 5:40 PM, Roland Asmann <[EMAIL PROTECTED]> wrote: > > > > Check the profile-documentation and use the property-activation. > > > > > > > > On Wednesday 14 November 2007 18:02, Aaron Zeckoski wrote: > > > > > I need to be able to trigger a specific profile WITHOUT executing > > > > > the default profile AND without having to use the -P command line > > > > > option. Ideally I want to trigger it using some setting in a POM > > > > > file but any method where the user who is building the code can > > > > > still type "mvn clean build" is fine. > > > > > > > > > > Can anyone help? > > > > > Thanks > > > > > -AZ > > > > > > > > -- > > > > Roland Asmann > > > > > > > > CFC Informationssysteme Entwicklungsgesellschaft m.b.H > > > > Bäckerstrasse 1/2/7 > > > > A-1010 Wien > > > > FN 266155f, Handelsgericht Wien > > > > > > > > Tel.: +43/1/513 88 77 - 27 > > > > Fax.: +43/1/513 88 62 > > > > Email: [EMAIL PROTECTED] > > > > Web: www.cfc.at > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- > > Roland Asmann > > > > CFC Informationssysteme Entwicklungsgesellschaft m.b.H > > Bäckerstrasse 1/2/7 > > A-1010 Wien > > FN 266155f, Handelsgericht Wien > > > > Tel.: +43/1/513 88 77 - 27 > > Fax.: +43/1/513 88 62 > > Email: [EMAIL PROTECTED] > > Web: www.cfc.at > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] -- Roland Asmann CFC Informationssysteme Entwicklungsgesellschaft m.b.H Bäckerstrasse 1/2/7 A-1010 Wien FN 266155f, Handelsgericht Wien Tel.: +43/1/513 88 77 - 27 Fax.: +43/1/513 88 62 Email: [EMAIL PROTECTED] Web: www.cfc.at --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]