该发布插件只能从您的Git存储库的根文件夹中运行

问题描述 投票:0回答:1

无法在项目ABC上执行目标com.ABCgroup:multi-module-maven-release-plugin:1.2.0:next(default-cli):发行插件只能从Git存储库的根文件夹中运行] >

我确实有一个具有以下结构的多模块git repo。

ABCCOdeBaseRepo 
       .git
       ABCProject
           -submodule1
           -submodule2
           -submodule3
           -submodule4
           -submodule5
         -aggregator pom.xml

现在当我运行在文件夹内移动的命令时cd / ABCProject

com.ABCgroup:multi-module-maven-release-plugin:1.2.0:next要执行空运行,我从插件中得到一个错误,即只能从根文件夹运行该版本。

如何处理。这是一个包含100多个模块的多模块pom。

无法在项目ABC上执行目标com.ABCgroup:multi-module-maven-release-plugin:1.2.0:next(default-cli):只能从Git存储库的根文件夹运行发布插件做...

java maven release
1个回答
0
投票

与此处http://maven.40175.n5.nabble.com/Release-plugin-when-POM-is-not-in-root-directory-td4956364.html提到的错误相同,但在此问题中,使用的是Maven版本插件,在我的情况下是多模块Maven插件。

© www.soinside.com 2019 - 2024. All rights reserved.