Project ID: com.abc.def.MyProject:pom:null
Reason: Cannot find parent: com.xyz.list.MyWonderfulFamilly for project com.abc.def.MyProject:pom:null for com.abc.def.MyProject:pom:null
[INFO] TRACE
org.apache.maven.reactor.MavenExecutionException: Cannot find parent: com.xyz.list.MyWonderfulFamilly for project com.abc.def.MyProject:pom:null for com.abc.def.MyProject:pom:null
Caused by org.apache.maven.project.ProjectBuildingException: POM 'com.xyz.list.MyWonderfulFamilly' not found in repository: Unable to download the artifact from the repository
com:xyz:list:MyWonderfulFamilly:pom
from the specified remote repositories:
CompanyName.Pricing.G7 (http://mksrvsub01.domain.xxxxxx)
for project com.xyz.list.MyWonderfulFamilly at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:1392)
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any repository
com:xyz:list:MyWonderfulFamilly:pom
from the specified remote repositories:
CompanyName.Pricing.G7 (http://mksrvsub01.domain.xxxxxx)
- 我已在项目目录和项目根目录上尝试过
mvn clean install
- 同样的错误 - 我已尝试删除
.m2
存储库中的所有lastUpdated
文件 - 同样的错误 - 删除了
~.m2\repository\org\apache\maven\plugins
中的文件 - 相同的错误 - 删除了所有项目文件和文件夹并创建了新目录并 checkout 项目文件并运行
mvn clean install
- 相同的错误
最佳答案
引用:
Caused by Unable to download the artifact from any repository
com:xyz:list:MyWonderfulFamilly:pom
from the specified remote repositories:
CompanyName.Pricing.G7
您是否检查过您是否可以访问存储库? pom/artifact 在存储库中可用吗?如果是这样,请检查本地 ~./m2/com/xyz/list
文件夹中是否存在 Artifact 或错误消息。如果需要,请删除并重试。
关于java - fatal error - 构建 POM 时出错(可能不是该项目的 POM),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14612803/