gpt4 book ai didi

java - fatal error - 构建 POM 时出错(可能不是该项目的 POM)

转载 作者:太空宇宙 更新时间:2023-11-04 07:50:13 26 4
gpt4 key购买 nike

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)
  1. 我已在项目目录和项目根目录上尝试过 mvn clean install - 同样的错误
  2. 我已尝试删除 .m2 存储库中的所有 lastUpdated 文件 - 同样的错误
  3. 删除了~.m2\repository\org\apache\maven\plugins中的文件 - 相同的错误
  4. 删除了所有项目文件和文件夹并创建了新目录并 checkout 项目文件并运行 mvn clean install - 相同的错误
Apache Maven 2.2.1 r801777Win XP、x86、32 位

最佳答案

引用:

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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com