using activation property in profiles?

View: New views
1 Messages — Rating Filter:   Alert me  

using activation property in profiles?

by chicagopooldude :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

i am trying to use the profiles in my parent pom like this

<profile>
      <id>dev</id>
      <activation>
         <property>

                  <name>env</name>
          <value>dev</value>
        </property>

      </activation>
      <modules>
        <module>client</module>
      </modules>
    </profile>


I want only the client module which is a child module in my project to build and install when i call like this
> mvn -Denv=dev clean install

I do it and nothing happens how can this be done?

Any help is appreciated