Reputation: 1441
I have a POM file and I'd like to install all plugins/jars that are needed to build the project without building the project so that when I do run "maven package" I won't need an internet connection.
Is there any way to do this?
Upvotes: 21
Views: 17394
Reputation: 8170
You can use the goal: mvn dependency:go-offline
It will download all dependencies and plugins as well.
See http://maven.apache.org/plugins/maven-dependency-plugin/go-offline-mojo.html
Upvotes: 17