Backporting Maven2 to Maven1

I was recently tasked with backporting a project that builds in Maven 2 to Maven 1 (odd I know). It was a nightmare of a job.

You get so used to Maven 2 pulling in all the dependencies it needs (transitive dependencies) and doing all the work for you (building the Java source) that you forget how tedious it used to be. ie specifying all of the jars that you need, and all the dependent jars that those jars need.

Anyway, I finally finished it, but with the help of a simple Maven2 command:

mvn dependency:tree

which produces the following tree of all your dependencies and dependencies of those dependencies:

Certainly helps tracking down any missing dependencies in your project.xml


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s