Sorry, but i d ont understand. Maybe i was not clear.
What i have is a settings.xml file with 2 profiles :
<profiles>
<profile>
<id>rep1</id>
<activation>
<property>
<name>rep</name>
<value>rep1</value>
</property>
</activation>
<repositories>
<repository>...</repository>
</repositories>
</profile>
<profile>
<id>rep2</id>
<activation>
<property>
<name>rep</name>
<value>rep2</value>
</property>
</activation>
<repositories>
<repository>...</repository>
</repositories>
</profile>
</profiles>
And i have a pom.xml. When i built, i would like to be able to choose the
repository (by activating a specific profile). I do not want to pass the
profile id as parameter to the mvn cmd, i want to have the activation set
into the pom.xml file (with a env var ?)
bouiaw wrote:
>
> <profile>
> <id>p1</id>
> <activation>
> <property>
> <name>env</name>
> <value>xyz</value>
> </property>
> </activation>
> <properties>
> <propname>propvalue</propname>
> </properties>
> </profile>
>
>
> On Wed, May 28, 2008 at 11:51 AM, spyder71 <[EMAIL PROTECTED]>
> wrote:
>>
>> Hi,
>>
>> I have a profile defined in the settings.xml (not actived by default). I
>> would like to have it enabled when a variable is defined a pom.xml ? How
>> can
>> i do ?
>> I tried this, but it does not work :
>>
>> (settings.xml) :
>>
>> <profile>
>> <id>p1</id>
>> <activation>
>> <property>
>> <name>env</name>
>> <value>xyz</value>
>> </property>
>> </activation>
>> </profile>
>>
>> (pom.xml) :
>> <project>
>> ...
>> <properties>
>> <env>xyz</env>
>> </properties>
>>
>>
>> Can you help me ? tx !
>> --
>> View this message in context:
>> http://www.nabble.com/How-to-enable-profile-defined-in-settings-from-pom---tp17508989p17508989.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/How-to-enable-profile-defined-in-settings-from-pom---tp17508989p17510866.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]