[英]maven release plugin: releasing from git sub folder?
When I try to do a release from a git repository clone's sub folder, ie. 当我尝试从git仓库克隆的子文件夹(即)发布时。 "/abc", the release plugin changes the developerConnection from "...:repo.git" to "...:repo.git/abc" which is obviously nonsensical.
“ / abc”,发行插件将developerConnection从“ ...:repo.git”更改为“ ...:repo.git / abc”,这显然是荒谬的。
How do I prevent this from happening? 如何防止这种情况发生?
The project in question can be found here: https://github.com/jjYBdx4IL/misc 有问题的项目可以在这里找到: https : //github.com/jjYBdx4IL/misc
I also posted the detailed workaround there. 我还在那里发布了详细的解决方法。
As a temporary workaround, I set the release plugin's pushChanges option to false and do a manual "git push --tags; git push --all" after preparing the release. 作为临时的解决方法,我将发布插件的pushChanges选项设置为false,并在准备发布后手动执行“ git push --tags; git push --all”。 On top of that, I fix the scm.url in release.properties before running "mvn release:perform".
最重要的是,我在运行“ mvn release:perform”之前修复了release.properties中的scm.url。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.