In maven - how to rename the output .war file based on the name of the profile in use

前端 未结 3 1189
南方客
南方客 2020-12-13 09:48

I have three profiles in my pom.xml for our application...

  1. dev (for use on a developer\'s)
  2. qa (for use on our internal qa server)
  3. prod (produ
3条回答
  •  暖寄归人
    2020-12-13 10:21

    You've answered yourself correctly:

    
        
            dev
            
                dev
            
        
        
            qa
            
                qa
            
        
        
            prod
            
                prod
            
        
    
    

    but there is a simpler way to redefine WAR name:

    
        ${rp.build.warname}-somearbitraryname
        
    
    

    No maven-war-plugin is needed.

提交回复
热议问题