I\'m using maven in my project and I need to run the build in a non-internet-access machine.
When I test my project build everything is working, bu
In order to cache plugins into the .m2/repository folder you would need to specify all plugins explicitly with the mvn
You would also need to specify explicit version for each plugin in the
or
section of your pom.xml
org.apache.maven.plugins
maven-surefire-plugin
2.19
org.apache.maven.surefire
surefire-testng
2.19
This is needed to make sure that mvn install -o
uses the same plugin version.
Ofcourse you would also need to run mvn dependency:go-offline
to take care of your compile and test dependencies.
mvn assembly:help compiler:help enforcer:help exec:help failsafe:help install:help jar:help resources:help surefire:help
mvn dependency:go-offline
mvn compile --offline