Maven cannot load dependency

I started working on a new project using Maven, and I cannot get it to work correctly on eclipse. I have a multiplicity of this error:

ArtifactTransferException: Failure to transfer com.caucho:hessian:jar:3.1.5 from <repository> was cached in the local repository, resolution will not be reattempted until the update interval of Archiva SIVPN Internal has elapsed or updates are forced. Original error: Could not transfer artifact com.caucho:hessian:jar:3.1.5 from/to Archiva SIVPN Internal (<repository>): No response received after 60000 pom.xml /<file> line 2 Maven Dependency Problem Description Resource Path Location Type 

Missing artifact com.caucho: hessian: jar: 3.1.5 pom.xml / line 2 Maven dependency problem

After some research, I found that it was probably the wrong pom.xml, or that I had problems with the proxy.

I checked that the resource is available in our repository, and that the pom fragment is the same as in my code:

 <dependency> <groupId>com.caucho</groupId> <artifactId>hessian</artifactId> <version>3.1.5</version> </dependency> 

My proxy server works fine for the project backbone, and I don't know another proxy server.

I thought this was a one-time connection problem, but creating a new maven assembly using -U did not help solve the problem.

I also found https://stackoverflow.com/a/166148/ with several I-don-t-know-what-else-to-do solutions, but this did not work for me ...

Since the lead developer is on vacation and I have little experience with mvn, can anyone tell me other potential problems that might be causing this?

Thanks in advance for the answers :)

+4
source share
2 answers

After an unsuccessful attempt, maven will leave a small file in your local .m2 repository, which will prevent any attempt to re-download the file if the update interval does not expire, or you force the update using the maven -U switch described above in other answers.

Just delete the folder for this artifact in your local m2 storage and update the project; A new download attempt will be launched.

rm -rf ~/.m2/repository/com/caucho/hessian/3.1.5

+3
source

Open a command prompt, go to the project directory and run: mvn eclipse:eclipse -DdownloadSources=true -DdownloadJavadocs=true

Part of eclipse:eclipse will regenerate your project files, etc., the last 2 properties are more convenient, but I like to load sources and javadoc.

+6
source

Source: https://habr.com/ru/post/1482944/


All Articles