Reputation: 1911
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
Then the build fails with the error: Could not resolve dependencies for the project XYZ. What could be possibly going wrong?
Upvotes: 4
Views: 26323
Reputation: 2096
Surely the jar
is missing from your .m2
local repository.
Assuming the dependency is written in the pom.
What I suggest:
Case: When you have internet
mvn install
that will follow your POM.xml
and it will download all the necessary jars.mvn compile
to build.Case: You are having restricted internet connection that is restricting / no Internet
mvn -o compile
I assume it will solve your case.
Upvotes: 4
Reputation:
@Vaibs You are correct. Adding to your answer:
"Check the settings.xml of yours and the others. If you are not able to download the dependencies from internet like the one you mentioned due to some reason then you will need to set up maven somewhere else and and fire "mvn install" there to get the latest dependencies and put those .m2 into yours."
Upvotes: 3