Friday, September 27, 2013

Maven Annoyances Notes

To fetch dependencies without going through the local maven repo first, use
 mvn install -U

To find conflicts, use
 mvn dependency:tree

When you get an untraceable jar version conflict error or some spring error that is way outside your own code, chances are high that maven is creating the problem and you should build clean and/or refresh your local repo.  The downside is that it takes forever to run a maven build when an ant build would be snappy.

No comments: