Tal Zion
Tal Zion

Reputation: 1441

Maven - Install project dependencies without building

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

Answers (1)

wemu
wemu

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

Related Questions