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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With