How to activate profile based on goal being executed

后端 未结 2 1804
[愿得一人]
[愿得一人] 2021-01-12 11:51

When I execute certain goals from the command line I would like to activate a profile \'automatically\'.

E.g. what I\'m doing now:

mvn appengine:devs         


        
2条回答
  •  遥遥无期
    2021-01-12 12:27

    The Maven Model told us as the profile consists of various elements, including with build. as the following example: -

    
        
        ...
        
            
               
               ...
            
        
    
    

    As we have seen above, the profile controls the plugin. Then the answer to your question is no. We cannot let the plugin to activate the profile.

    I hope this may help.

提交回复
热议问题