How to activate profile by means of maven property?

前端 未结 7 1311
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:48

    What about using an activation like this

        
            gwt
            
                
                    uses-gwt.marker
                
            
    

    and adding the file 'uses-gwt.marker' into source control, right next to pom.xml. That gives all developers the same state and sort of allows an aspect-oriented pom. we're using this technique in the parent pom and put hte marker files in the childs svn. Not ideal, but works.

提交回复
热议问题