Another problem is that you can't use:
mvn dependency:purge-local-repository -DreResolve=false
to zap your dependencies from the local repository when there are version ranges
in the pom.
It simply doesn't understand the version ranges. Running it with -Dverbose=true
just gives an non-descript "error message"
| [INFO] ------------------------------------------------------------------------
| [INFO] Building Project2
| [INFO] task-segment: [dependency:purge-local-repository] (aggregator-style)
| [INFO] ------------------------------------------------------------------------
| [INFO] [dependency:purge-local-repository]
| [INFO] Skipping: project2. It cannot be resolved.
| [INFO] Nothing to do for project: test:project2:jar:1.0.0-SNAPSHOT
| [INFO] ------------------------------------------------------------------------
| [INFO] BUILD SUCCESSFUL
| [INFO] ------------------------------------------------------------------------
|
It doesn't even zap the dependencies that aren't version ranges.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139848#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...