且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Maven版本插件问题-无法执行目标org.apache.maven.plugins:maven-release-plugin:2.3.2:prepare

更新时间:2021-10-03 16:58:48

已解决将插件升级到最新版本后,该项目仍然无法构建,并出现相同的错误.实际上这是根pom.xml中的一个错误.

SOLVED After upgrading the plugins to the latest releases, the project still failed to be built with the same error. It was actually a mistake in the root pom.xml.

结果证明,根源是其中一个pom.xml文件中存在< scm>"标签.

Turns out the root was the presence of a "< scm >" tag in one of the pom.xml files.

删除以下标记允许运行maven release:perform任务:

Removing the following tag allowed the maven release:perform task to be run:

REMOVED:

<scm>
    <tag>itabuy-common-root-2.06</tag>
</scm>

谢谢khmarbaise和Robert Scholte的帮助.

Thank you khmarbaise and Robert Scholte for your help.