Very strange indeed....Nothing but the dev is working at all...

Here is my settings.xml scrubbed:
=========================
       <profile>
           <id>local</id>
           <properties>
               <env>env-uat</env>
               <svn.connection>scm:svn:[svn url]</svn.connection>
               <svn.url>[svn url]</svn.url>
           </properties>
       </profile>

   </profiles>

   <!-- activeProfiles
   | List of profiles that are active for all builds.
   |-->
   <activeProfiles>
       <activeProfile>local</activeProfile>
   </activeProfiles>

</settings>



Here is my profiles.xml:
==================
<profilesXml>
   <profiles>


<!--================================================================-->
       <!-- Local developer Profile. -->

<!--================================================================-->
       <profile>
           <id>local</id>
           <properties>
               <env>dev</env>
               <compiler.debug>true</compiler.debug>

               <jazn.url>${jazn.url.dev}</jazn.url>
               <jazn.bind.dn>${jazn.bind.dn.dev}</jazn.bind.dn>
               <jazn.samaccount>${jazn.samaccount.dev}</jazn.samaccount>

           </properties>
       </profile>

       <profile>
           <id>qa</id>
           <activation>
               <property>
                   <name>env</name>
                   <value>qa</value>
               </property>
           </activation>
           <properties>
               <jazn.url>${jazn.url.qa}</jazn.url>
               <jazn.bind.dn>${jazn.bind.dn.qa}</jazn.bind.dn>
               <jazn.samaccount>${jazn.samaccount.qa}</jazn.samaccount>
           </properties>
       </profile>

       <profile>
           <id>uat</id>
           <activation>
               <property>
                   <name>env</name>
                   <value>uat</value>
               </property>
           </activation>
           <properties>
               <jazn.url>${jazn.url.uat}</jazn.url>
               <jazn.bind.dn>${jazn.bind.dn.uat}</jazn.bind.dn>
               <jazn.samaccount>${jazn.samaccount.uat}</jazn.samaccount>
           </properties>
       </profile>

       <profile>
           <id>prod</id>
           <activation>
               <property>
                   <name>env</name>
                   <value>prod</value>
               </property>
           </activation>
           <properties>
               <jazn.url>${jazn.url.prod}</jazn.url>
               <jazn.bind.dn>${jazn.bind.dn.prod}</jazn.bind.dn>
               <jazn.samaccount>${jazn.samaccount.prod}</jazn.samaccount>
           </properties>
       </profile>


   </profiles>

   <!--================================================================-->
   <!-- Active Profile. -->
   <!--================================================================-->
   <activeProfiles>
       <activeProfile>local</activeProfile>
   </activeProfiles>

</profilesXml>


And the ${...} values are from the settings.xml as the deployment team needs
to modify those values.




On 10/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:

I think I read that things get weird if you have a profile without an <id>
element. Try adding one to your uat profile. Then try both with your
activation property, but also by directly specifying the id with -P.

Greg Vaughn
[EMAIL PROTECTED]



"Mick Knutson" <[EMAIL PROTECTED]>
10/18/2006 03:34 PM
Please respond to
"Maven Users List" <[email protected]>


To
"maven" <[email protected]>
cc

Subject
profiles.xml question






I have the following setting in my profiles.xml:

<profilesXml>
    <profiles>


<!--================================================================-->
        <!-- Local developer Profile. -->

<!--================================================================-->
        <profile>
            <id>local</id>
            <properties>
                <target.server>local</target.server>
                <jazn.url>${jazn.url.dev}</jazn.url>

            </properties>
        </profile>

        <profile>
            <activation>
                <property>
                    <name>environment</name>
                    <value>uat</value>
                </property>
            </activation>
            <properties>
                <jazn.url>${jazn.url.uat}</jazn.url>
                <jazn.bind.dn>${jazn.bind.dn.qa}</jazn.bind.dn>
            </properties>
        </profile>



Then I run:

mvn -Denvironment=qa clean install -e


I get this at the start of my build:

C:\viewstore\npi_tactical_dev\NPI_Provider>mvn -Denvironment=uat clean
install -e
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[WARNING] Overriding profile: 'null' (source: profiles.xml) with new
instance from source: profiles.xml
[WARNING] Overriding profile: 'null' (source: profiles.xml) with new
instance from source: profiles.xml



WHen the build is finished, the values that I get for "jazn.url" are for
dev
URL, not UAT...???
WHy is that not getting picked up?






--

Thanks

DJ MICK
http://www.djmick.com
http://www.myspace.com/mickknutson


======================================================================
Confidentiality Notice: The information contained in and transmitted with
this communication is strictly confidential, is intended only for the use of
the intended recipient, and is the property of Countrywide Financial
Corporation or its affiliates and subsidiaries.  If you are not the intended
recipient, you are hereby notified that any use of the information contained
in or transmitted with the communication or dissemination, distribution, or
copying of this communication is strictly prohibited by law.  If you have
received this communication in error, please immediately return this
communication to the sender and delete the original message and any copy of
it in your possession.
======================================================================




--

Thanks

DJ MICK
http://www.djmick.com
http://www.myspace.com/mickknutson

Reply via email to