I got it partially in settings.xml:

            *<activation>
                  <property>
                      <name>!PRD</name>
                  </property>
            </activation>*

But I actually have about 5 profiles that are NOT LOC (in my settings.xml).
How can I say:

* **<name>!PRD && !QA && !INT</name>*



---
Thank You…

Mick Knutson, President

BASE Logic, Inc.
Enterprise Architecture, Design, Mentoring & Agile Consulting
p. (866) BLiNC-411: (254-6241-1)
f. (415) 685-4233

Website: http://baselogic.com
Linked IN: http://linkedin.com/in/mickknutson
Twitter: http://twitter.com/mickknutson
Vacation Rental: http://tahoe.baselogic.com
---



On Wed, Feb 25, 2009 at 10:34 AM, Mick Knutson <[email protected]>wrote:

> How do I set the activation in the <profile> for that?
>
> ---
> Thank You…
>
> Mick Knutson, President
>
> BASE Logic, Inc.
> Enterprise Architecture, Design, Mentoring & Agile Consulting
> p. (866) BLiNC-411: (254-6241-1)
> f. (415) 685-4233
>
> Website: http://baselogic.com
> Linked IN: http://linkedin.com/in/mickknutson
> Twitter: http://twitter.com/mickknutson
> Vacation Rental: http://tahoe.baselogic.com
> ---
>
>
>
> On Wed, Feb 25, 2009 at 10:07 AM, Brett Porter <[email protected]> wrote:
>
>> This may be a bug - I'd need to test it to confirm.
>>
>> An alternative way to achieve this is to use two activations on system
>> property, eg:
>>
>> !PRD and PRD
>>
>> and then use -DPRD instead.
>>
>> Please note that you might not get the results you are hoping for with
>> this set up since the local repository retains information from previous
>> builds.
>>
>> Cheers,
>> Brett
>>
>>
>> On 26/02/2009, at 1:56 AM, Mick Knutson wrote:
>>
>>  I want to, by default, use a dev REPO in my settings.xml, or an LOC
>>> profile
>>> that has <activeByDefault>true
>>>
>>> Then if I choose to build with a specific PRD profile (-PPRD), then I
>>> want
>>> to use a PRD REPO instead of the DEV repo.
>>>
>>> In my pom, by default I have:
>>>
>>> *            <repositories>
>>>               <repository>
>>>                   <id>mvnprd</id>
>>>                   <url>http://somehost:8080/archiva/repository/mvn-prd
>>> </url>
>>>               </repository>
>>>           </repositories>
>>>           <pluginRepositories>
>>>               <pluginRepository>
>>>                   <id>**mvnprd**</id>
>>>                   <url>http://somehost:8080/archiva/repository/mvn-prd
>>> </url>
>>>               </pluginRepository>
>>>           </pluginRepositories>
>>> *
>>>
>>> I have this in my settings.xml:
>>>
>>>      * <profile>
>>>           <id>default</id>
>>>           <activation>
>>>                 <activeByDefault>true</activeByDefault>
>>>           </activation>
>>>           <properties>
>>>               <env>LOC</env>
>>>           </properties>
>>>
>>>           <repositories>
>>>               <repository>
>>>                   <id>mvndev</id>
>>>                   <url>http://somehost:8080/archiva/repository/mvn-dev
>>> </url>
>>>               </repository>
>>>           </repositories>
>>>           <pluginRepositories>
>>>               <pluginRepository>
>>>                   <id>**mvnprd**</id>
>>>                   <url>http://somehost:8080/archiva/repository/mvn-prd
>>> </url>
>>>               </pluginRepository>
>>>           </pluginRepositories>
>>>       </profile>
>>>   </profiles>*
>>>
>>> By default, I get the *mvn-dev* activated.
>>>
>>> But I can NOT seem to get the default profile NOT active if I use a
>>> different profile on the command line like "*mvn -PPRD package*". It
>>> still
>>> used the default profile, thus the dev REPO.
>>>
>>> ---
>>> Thank You…
>>>
>>> Mick Knutson, President
>>>
>>> BASE Logic, Inc.
>>> Enterprise Architecture, Design, Mentoring & Agile Consulting
>>> p. (866) BLiNC-411: (254-6241-1)
>>> f. (415) 685-4233
>>>
>>> Website: http://baselogic.com
>>> Linked IN: http://linkedin.com/in/mickknutson
>>> Twitter: http://twitter.com/mickknutson
>>> Vacation Rental: http://tahoe.baselogic.com
>>> ---
>>>
>>
>> --
>> Brett Porter
>> [email protected]
>> http://blogs.exist.com/bporter/
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>

Reply via email to