2009-07-31

The Maven Way

Doh... maven is a big bunch of hacks. How do I do this, how do I do that. On the first bit of creativity you're slapped with pile of bizarre arguments and/or unpredictable/unexplainable behaviour. Do it the maven way or don't do it at all.

Here I would like to dump occasional memos on magic maven spells.

Dump project dependencies / list dependency tree:
mvn clean install dependency:tree
BTW, why maven needs to build the project to list the dependencies (I guess downloading poms should suffice)? UPD: When you are left with a sandbox which broke due to some library versioning clash it's quite cool: to know which lib is pulling the wrong version you need to fix the problem blindly first. Yeah, that's The Maven Way to do things, you know...

No comments: