Building with an empty Maven repository
It might occur that a Maven build fails on somebody else his machine due a missing dependency. To figure out why the artifact lives in your own repository it can be useful to start with an empty maven repository.
I've seen developers throw away their entire Maven repository or move it to a different location, but maven has support for this out of the box. Simply use:
$ mvn clean package -Dmaven.repo.local=/tmp/temp-repo
and watch maven download all the necessary artifacts. That's it!
Written by Jeroen Reijn
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Maven
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#