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

前端 未结 3 1194
南方客
南方客 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:14

    In maven you must use in the

    You should follow this link to ensure your modules are rewritted: http://maven.apache.org/plugins/maven-ear-plugin/examples/customizing-a-module-filename.html

     
          
                
                    org.apache.maven.plugins
                    maven-ear-plugin
                    2.10.1
                    
                     [...]
                        
                            
                                artifactGroupId
                                artifactId
                                anotherName-1.2.3.jar
                            
                        
                    
                
            
      
    

提交回复
热议问题