2

I have multiple profiles in maven like this,

`
    <profile>
         <id>one</id>
         <properties>
           <env>one</env>
         </properties>
   </profile>
   <profile>
        <id>two</id>
        <properties>
        <env>two</env>
        </properties>
   </profile>
   <profile>
        <id>three</id>
        <properties>
          <env>three</env>
        </properties>
   </profile>
   <profile>
    <id>four</id>
    <properties>
        <env>four</env>   
    </properties>
   </profile>`

My Question is how can i create a profile which can execute all of the profiles (Except executing in command line -Pone,two,three,four)??

Sunil Rk
  • 999
  • 6
  • 12
  • 35
  • 2
    I think this might help: http://stackoverflow.com/questions/943411/can-i-make-one-maven-profile-activate-another – wemu Nov 14 '14 at 13:17
  • I can confirm @wemu's comment will guide to the answer ;) (I however wont go that faar that this is a duplicate ;) – JBA Nov 14 '14 at 13:51
  • Thanks for reply, but above mentioned link says activating profiles through the same property. In my case i have different properties and its not chaining the profiles. – Sunil Rk Nov 14 '14 at 14:01
  • profiles support multiple activations. Can't you add a property "activateAll" and seperate ones for the other combinations? – wemu Nov 14 '14 at 14:54

0 Answers0