You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Rusty Wright <ru...@gmail.com> on 2008/10/02 03:06:30 UTC

all profiles active by default?

Maven version: 2.0.9
Java version: 1.5.0_16
OS name: "linux" version: "2.6.24-19-server" arch: "i386" Family: "unix"


I have my profiles in the file profiles.xml and if I don't have the lines

     <activation>
         <activeByDefault>false</activeByDefault>
     </activation>

in each profile, then when I run

     mvn help:active-profiles

it lists all of the profiles in the profiles.xml file as active.

Is that the correct behavior?  Here's how my profiles.xml file starts:

<profiles
     xmlns="http://maven.apache.org/profiles/1.0.0"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="
         http://maven.apache.org/profiles/1.0.0
         http://maven.apache.org/xsd/profiles-1.0.0.xsd">

     <!-- the default profile is at the bottom. -->

     <profile>
         <id>localhost-postgres</id>

<!--
         <activation>
             <activeByDefault>false</activeByDefault>
         </activation>
-->

         <properties>
             <war.identifier>postgres</war.identifier>

             <!-- used in the cas url -->
             <server.hostName>localhost</server.hostName>
             <server.port>8080</server.port>

             <!-- database stuff -->
             <jdbc.driverClass>org.postgresql.Driver</jdbc.driverClass>
             <jdbc.url>jdbc:postgresql://mendocino/peoplelocator2</jdbc.url>
             <jdbc.user>rusty</jdbc.user>
             <jdbc.password>BigFatSecret</jdbc.password>

 
<hibernate.dialect>org.hibernate.dialect.PostgreSQLDialect</hiberna\
te.dialect>

 
<hibernate.default_schema>people_locator</hibernate.default_schema>
         </properties>
     </profile>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org