Maven POM错误-缺少POM [英] Maven POM error - POM is missing
本文介绍了Maven POM错误-缺少POM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试构建一个Maven项目.我的其他团队成员能够毫无问题地构建它.我收到以下错误:
I am trying to build a maven project. My other team members are able to build it without issues. I get the following errors:
[WARNING] The POM for org.hectorclient:hector-core:jar:1.0-3 is missing, no dependency information
available
[WARNING] The POM for org.hectorclient:hector-test:jar:1.0-3 is missing, no dependency information
available
然后,构建因以下错误而失败:无法解决项目XYZ的依赖关系.可能出什么问题了?
Then the build fails with the error: Could not resolve dependencies for the project XYZ. What could be possibly going wrong?
推荐答案
当然,您的.m2
本地存储库中缺少jar
.
假定依赖关系写在pom中.
Surely the jar
is missing from your .m2
local repository.
Assuming the dependency is written in the pom.
我的建议:
-
案例:当您拥有互联网
Case: When you have internet
-
在您的
- fire
mvn install
,它将下载所有必需的jar. - 然后射击
mvn compile
进行建造.
POM.xml
后面执行- fire
mvn install
that will follow yourPOM.xml
and it will download all the necessary jars. - then fire
mvn compile
to build.
案例:您的互联网连接受到限制,这限制了/没有互联网
Case: You are having restricted internet connection that is restricting / no Internet
- 从成功编译的其他计算机上获取存储库+ POM
- 然后开火
mvn -o compile
我认为它将解决您的情况.
I assume it will solve your case.
这篇关于Maven POM错误-缺少POM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文