Maven cannot find the local package: [WARNING] The POM for.. Is missing

background:
reflectAsm, is used in the project. I went to maven warehouse found gav, and added it to pom.xml.
clipboard.png


[ERROR] Failed to execute goal on project xxxx: Could not resolve dependencies for project xxxxxx:jar:0.0.1-SNAPSHOT: Failure to find com.esotericsoftware:reflectasm:jar:1.11.7 in xxxx was cached in the local repository, resolution will not be reattempted until the update interval of my-nexus has elapsed or updates are forced -> [Help 1]

:
settings.xmlali
clipboard.png


clipboard.png

maven
The POM for com.esotericsoftware:reflectasm:jar:1.11.7 is missing, no dependency information available


git clonemvn clean install
clipboard.png
and then using the company"s warehouse will not be wrong.

excuse me

  1. when I pulled the package down through the ali warehouse, the local warehouse had the corresponding package and compiled it, so why did I still report an error after switching back to the company warehouse?
  2. The POM for com.esotericsoftware:reflectasm:jar:1.11.7 is missing, no dependency information available. This error message in the end refers to the jar package can not be found, other specific reasons above ah?
  3. what"s the difference between the package I downloaded through gav when compiling and the package that install to the local after pulling the source code manually?
  4. is there any deviation in my understanding?

also ask the boss to give me some advice. No, no, no.

Dec.28,2021

in fact, the question has been answered by you, and your two screenshots have already explained the problem. Maven will generate a lastUpdated file after the failure of searching for the jar package, which will cause your local jar package to be unable to be introduced by maven. As for the underlying principle, students who are interested can pick the source code.

Menu