我正在尝试从命令行执行Maven发布,但是我遇到了以下错误。我也尝试过詹金斯的工作,但发生相同的错误。我什至试图在构建开始之前删除工作区。
[INFO] [ERROR] The build could not read 1 project -> [Help 1]
[INFO] org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
[INFO] [FATAL] Non-resolvable parent POM: Could not find artifact com.example:pom:3.0.54 in central (http://artifactory.example.com/artifactory/libs-release) and 'parent.relativePath' points at wrong local POM @ line 5, column 10
理想情况下,maven应该从lib-snapshot位置下载3.0.54版本并将其上传到lib-release,但是它正在尝试从不存在工件的lib-release下载。我已经在settings.xml中提到了人工制品的适当细节
将pom版本增加到3.0.55之后,我现在遇到了一些不同的错误。较早的atleast快照构建正常运行,但现在发行版和快照构建均无效。
Parsing POMs
Failed to transfer Could not find metadata com.example.abc:3.0.55-SNAPSHOT/maven-metadata.xml in snapshots (http://artifactory.example.com/artifactory/libs-snapshot)
Failed to transfer Could not find artifact com.exampleabc.pom:3.0.55-SNAPSHOT in snapshots (http://artifactory.example.com/artifactory/libs-snapshot)
在所有pom中,我都具有如下所示的相同版本
$ find . -type f -name "pom.xml" -exec sed -n '/3.0.54/p' {} \;
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
<version>3.0.54-SNAPSHOT</version>
答案 0 :(得分:0)
您的错误提示
Could not find artifact com.example:pom:3.0.54
这意味着您有时引用了3.0.54
而不是3.0.54-SNAPSHOT
。也许您正在查看错误的分支或版本,也许您混淆了项目。