本文介绍了致命错误-构建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)
- 我在项目目录以及项目根目录都尝试过
mvn clean install
-同样的错误 - 我尝试删除
.m2
存储库中的所有lastUpdated
文件-相同的错误 -
~.m2\repository\org\apache\maven\plugins
中的已删除文件-相同错误 - 删除所有项目文件和文件夹并创建新目录,并检出项目文件并运行
mvn clean install
-相同的错误
- I have tried
mvn clean install
on the project directory, and also at the project root - same error - I have tried deleting all
lastUpdated
files in the.m2
repository - same error - Deleted files in the
~.m2\repository\org\apache\maven\plugins
- same error - 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 r801777Win XP,x86、32位
Apache Maven 2.2.1 r801777Win XP, x86, 32-bit
推荐答案
报价:
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)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!