Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven POM error - POM is missing

Tags:

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

Then the build fails with the error: Could not resolve dependencies for the project XYZ. What could be possibly going wrong?

like image 801
FirstName LastName Avatar asked Sep 14 '25 20:09

FirstName LastName


1 Answers

Surely the jar is missing from your .m2 local repository. Assuming the dependency is written in the pom.

What I suggest:

  1. Case: When you have internet

    1. fire mvn install that will follow your POM.xml and it will download all the necessary jars.
    2. then fire mvn compile to build.
  2. Case: You are having restricted internet connection that is restricting / no Internet

    1. Take the repository + POM from other machine that is compiling successfully
    2. then fire mvn -o compile

I assume it will solve your case.

like image 118
Vaibs Avatar answered Sep 17 '25 13:09

Vaibs