Skip to content
Advertisement

How do I force Maven to use external repos to retrieve artifacts?

I got following error while trying to build the project. The project is spring project and use IntelliJ with java 8.

JavaScript

Is there a way to fix it through setting.xml? I have not access to any configuration on http://maven:8081/nexus/content/groups/public

This is my setting.

JavaScript

Advertisement

Answer

If you set

JavaScript

then you send every request to this repository, regardless of the rest of the settings.xml. You need to do something like

JavaScript

but please also correct/remove the URLs as khmarbaise said.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement