Reputation: 5825
I am trying to retrieve my project dependencies from a local network accessible maven nexus repository.
I have setup a repository entry in my settings.xml as well as an entry to the proxy.
To do this Netbeans says it needs to build the project before it can retrieve the dependencies. It runs a mvn install
command and trys to download a maven-resources-plugin pom. By adding the proxy I have managed to get it to download the pom. But there are strict policies in place on the network in that it won't allow downloading of jars from the internet.
So a few questions
Upvotes: 0
Views: 773
Reputation: 915
Maven does not contain everything it needs to build your pom. You've used the maven-resources-plugin somewhere, even if it a transitive dependency of another plugin you're using. It needs to get it from somewhere. It will try your defined mirror first and then it will try the internet. (The maven-resources-plugin is used in the resources:resources goal as part of the process:resources phase, the first phase in most lifecycles. This means you are most likely also missing many more plugins and dependencies, your build just failed before it needed them.)
You can disable it by removing the relevant config from your POM, you will lose that functionality though.
You should just have to download which ever artifacts you need and then upload these to your nexus. The easiest way to download all dependencies you need is to use a machine connected to the internet and run maven dependency:go-offline
on a folder just containing your pom
Upvotes: 1