Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/307.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 无法执行maven发布_Java_Git_Maven_Maven 3 - Fatal编程技术网

Java 无法执行maven发布

Java 无法执行maven发布,java,git,maven,maven-3,Java,Git,Maven,Maven 3,我有一个多模块的项目,我正试图释放所有的项目。准备步骤总是失败的 mvn release:prepare -DautoVersionSubmodules=true -s c-settings.xml -X and throwing this exception. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.1:prepare (default-cli) on project qa

我有一个多模块的项目,我正试图释放所有的项目。准备步骤总是失败的

mvn release:prepare -DautoVersionSubmodules=true -s c-settings.xml -X and throwing this exception. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.1:prepare (default-cli) on project qa-parent: Unable to tag SCM
[ERROR] Provider message:
[ERROR] The git-push command failed.
[ERROR] Command output:
[ERROR] ERROR: Repository not found.
[ERROR] fatal: Could not read from remote repository.
[ERROR] 
[ERROR] Please make sure you have the correct access rights
[ERROR] and the repository exists.
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.1:prepare (default-cli) on project qa-parent: Unable to tag SCM
Provider message:
The git-push command failed.
Command output:
ERROR: Repository not found.
fatal: Could not read from remote repository.
请确保您拥有正确的访问权限 并且存储库存在

即使我拥有回购协议中的所有权限。我是所有者和管理员。不确定这里出了什么问题。我的scm连接如下所示:

SCM连接:

<scm>
<connection>scm:git:git@github.corp.com:FDS/qa-tools.git</connection>
<developerConnection>scm:git:git@github.corp.com:FDS/qa-tools.git</developerConnection>
<url>https://github.corp.com/FDS/qa-tools</url>
<tag>HEAD</tag>
</scm>

scm:git:git@github.corp.com:FDS/qa-tools.git
scm:git:git@github.corp.com:FDS/qa-tools.git
https://github.corp.com/FDS/qa-tools
头

scm连接等配置正确,因为消息表明存在错误…此外,我希望您正在从多模块构建的根父级启动发布过程…您能显示项目的文件夹结构吗?我认为连接的格式错误:-协议部分(http://或git://)我们的格式是:scm:git:git://github.com/path_to_repositoryyes. 我仅从父项目发布:一个目录和父项目中的所有项目都与子项目处于同一级别。使用../qa parent/pom.xml作为相对路径听起来是错误的。为什么不将父pom放在父文件夹中?