Maven - activate profile based on project property

前端 未结 3 968
有刺的猬
有刺的猬 2021-02-14 04:30

Hi I am trying to achieve something like this:

In a parent pom, I have


  
    
      Compil         


        
3条回答
  •  情书的邮戳
    2021-02-14 05:12

    As of Maven 3.0, profiles in the POM can also be activated based on properties from active profiles from the settings.xml.

    You can check the sample given here :

    http://maven.apache.org/guides/introduction/introduction-to-profiles.html

提交回复
热议问题