How to customise the tag format of the Maven release plugin?

前端 未结 3 2379
慢半拍i
慢半拍i 2021-02-19 16:04

In our SVN repo, we store tags like this:

trunk
    project_a
    project_b
branches
    project_a
        branch_x
        branch_y
    project_b
tags
    proje         


        
3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-19 16:27

    The release plugin now supports the tagNameFormat configuration option, which defaults to @{project.artifactId}-@{project.version}. In your case, you could do something like:

    
        org.apache.maven.plugins
        maven-release-plugin
        2.3.2
        
            @{project.artifactId}/@{project.version}
        
    
    

提交回复
热议问题