使用maven-release-plugin,如何分支模块及其子级?

| 假设您有一个名为\“ parent \”的模块,其中有2个孩子\“ childA \”和\“ ChildB \” 如果我跑
mvn release:branch -DbranchName=my-branch
在\“ parent \”文件夹中,它将父模块代码分支到SVN / branches / my-branch,而没有2个子模块。 我想要release:branch将父模块及其所有子模块分支到 /分支机构/我的分支机构/父母 /分支机构/我的分支机构/ childA /分支机构/我的分支机构/ childB 我尚未在文档中找到任何解决方案: http://maven.apache.org/plugins/maven-release-plugin/branch-mojo.html http://maven.apache.org/plugins/maven-release-plugin/examples/branch.html 可行吗? 任何帮助,将不胜感激,谢谢 弗雷德     
已邀请:
        我找到了解决方案。 如果模块是按层次结构构建的,那么它将起作用: /树干/父母 / trunk / parent / childA / trunk / parent / childB 但是您必须确保SCM参数正确100%。 即: /trunk/parent/pom.xml
<scm>
    <connection>scm:svn:https://svnserver:18080/svn/trunk</connection>
    <developerConnection>scm:svn:https://svnserver:18080/svn/trunk</developerConnection>
    <url>https://svnserver:18080/viewvc/trunk</url>
</scm>
/trunk/parent/childA/pom.xml
<scm>
    <connection>scm:svn:https://svnserver:18080/svn/trunk/childA</connection>
    <developerConnection>scm:svn:https://svnserver:18080/svn/trunk/childA</developerConnection>
    <url>https://svnserver:18080/viewvc/trunk/childA</url>
</scm>
/trunk/parent/childB/pom.xml
<scm>
    <connection>scm:svn:https://svnserver:18080/svn/trunk/childB</connection>
    <developerConnection>scm:svn:https://svnserver:18080/svn/trunk/childB</developerConnection>
    <url>https://svnserver:18080/viewvc/trunk/childB</url>
</scm>
然后,当您运行以下命令时: mvn版本:branch -DbranchName = -DupdateBranchVersions = true -DupdateWorkingCopyVersions = true -DreleaseVersion = -DdevelopmentVersion = 所有模块均正确分支到/ branches /,所有版本和SCM属性均自动更新     

要回复问题请先登录注册