This is to test that the remote maven repository I setup is functioning correctly, I would like to stop maven looking locally (./m2) for jars and only ever source them from the remote repo. Any ideas on how to achieve this appreciated
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can simply delete you .m2/repository.
Otherwise, when you build your project, you can use the -U option to update the snapshots.
You can also use the maven dependency plugin with this : dependency:purge-local-repository . You will find more detail on the webpage of the plugin : http://maven.apache.org/plugins/maven-dependency-plugin/