致命错误-构建POM时出错(可能不是该项目的POM) [英] fatal error - error building POM (may not be this project's POM)

查看:415
本文介绍了致命错误-构建POM时出错(可能不是该项目的POM)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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. 删除所有项目文件和文件夹并创建新目录,并检出项目文件并运行mvn clean install-相同的错误
  1. I have tried mvn clean install on the project directory, and also at the project root - same error
  2. I have tried deleting all lastUpdated files in the .m2 repository - same error
  3. Deleted files in the ~.m2\repository\org\apache\maven\plugins - same error
  4. Deleted all project files and folders and created new directory and checked out project files and run mvn clean install - same error

Apache Maven 2.2.1 r801777 Win XP,x86、32位

Apache Maven 2.2.1 r801777 Win XP, x86, 32-bit

推荐答案

报价:

由导致无法从任何存储库下载工件的原因

Caused by Unable to download the artifact from any repository

com:xyz:list:MyWonderfulFamilly:pom

com:xyz:list:MyWonderfulFamilly:pom

从指定的远程存储库:

CompanyName.Pricing.G7

CompanyName.Pricing.G7

您是否检查过可以访问存储库?存储库中是否可以使用pom/工件?如果是这样,请检查本地~./m2/com/xyz/list文件夹中是否存在工件或错误消息.删除并根据需要重试.

Did you check that you can access the repository? Is the pom/artifact available in the repository? If so, check the local ~./m2/com/xyz/list folder if the artifact or an error message is there. Delete and re-try if required.

这篇关于致命错误-构建POM时出错(可能不是该项目的POM)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆