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
It should suffice to run a mvn clean install on your code. The next time, when you run it in an offline mode you can use the following options:
mvn -Dmaven.repo.local=..\repository –o clean install
-o tells Maven not to try to update its dependencies over the network and with -Dmaven.repo.local you provide the path of the repository which contains all the required dependencies.
Alternatively, you can add the path of the repository in your settings.xml in the localRepository tag and add an .
You can configure the same in your Maven Eclipse configurations.