How to activate profile by means of maven property?

前端 未结 7 1337
Happy的楠姐
Happy的楠姐 2020-12-05 10:25

I\'m trying to activate a maven profile using a property defined inside pom.xml:


  [...]
  
             


        
7条回答
  •  余生分开走
    2020-12-05 10:52

    As Moritz Heuser explained, profile activation is based on system properties. However, you can try something like that:

    
      ...
      
        true
      
      ...
      
        
          
            ${run.it}
          
          ...
        
      
      ...
    
    

    The idea is to define the activeByDefault flag in the .

提交回复
热议问题