maven release plugin ignores releaseProfile

后端 未结 4 2037
走了就别回头了
走了就别回头了 2021-01-02 00:55

I am using two profiles: development and production.

Development should be active on default; production should be used when I am releasing.

In my pom.xml I

4条回答
  •  星月不相逢
    2021-01-02 01:43

    This is a very old post but I came across this issue quite recently. The releaseProfile only worked for me when I set the releaseProfiles to profile called release. Any other profile gives same error.

    Sample code:

    
        
            
                org.apache.maven.plugins
                maven-release-plugin
                2.5.3
                
                    @{project.artifactId}-@{project.version}
                    true
                    release
                    true
                
            
        
    
    
        
            release
            
                ${scm-base}/tags/${project.artifactId}-${project.version}
            
        
    
    

提交回复
热议问题