Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot access nexus in offline mode and the artifact is not downloaded

We are facing an issue with the Maven build. We have setup proxy in Eclipse, got Maven installed, and all the required settings completed. But every time we try to build it we are getting following exception:

Project build error: Unresolveable build extension: Plugin org.sonatype.plugins:nexus-staging-maven-plugin:1.4.8 or one of its dependencies could not be resolved: The following artifacts could not be resolved

Cannot access nexus in offline mode and the artifact org.sonatype.plugins:nexus-staging-maven-plugin:jar:1.4.8 has not been downloaded from it before.

We have set all the dependencies. One of the dependencies shows a message:

Offline / Missing artifact com.xxxxx.xxxx:jar:0.0.2-SNAPSHOT

Why do we get this issue and how to resolve it?

like image 311
Shekhar Avatar asked Oct 26 '25 12:10

Shekhar


1 Answers

I've had a similar problem after changing from eclipse to intelliJ. The message told me, that i was in offline mode like yours and i found a solution:

Go to the general settings

-> Build, Execution, Deployment 
-> Build Tools 
-> Maven

Here the checkbox "Work offline" was checked. To fix the problem simply uncheck this box and you're fine.

like image 78
Patric Ziel Avatar answered Oct 28 '25 04:10

Patric Ziel