0

I'm using the maven dependency:tree command to see all my modules and submodules.

We're using a dev=RELEASE version model so that we can see our dependencies fail fast. Then we lock in a version when we go to prod.

Our dependency tree goes about four levels deep of modules.

I want a quick way to identify if anything in my pom dependencies contains a RELEASE version.

I'd like to be able to use the dependency:tree command to do this - but unfortunately it resolves all the RELEASE versions to the last 'dot' version.

Note this is using Maven 2.

My question is: How do I get the maven dependency:tree command to show when I'm using a RELEASE version?

hawkeye
  • 34,745
  • 30
  • 150
  • 304

1 Answers1

0

The trick is - as the comments have pointed out - is to upgrade to Maven 3 - and then use the Maven Versions Plugin :

This means you have to set the versions explicitly - but you still get the fail-fast behaviour.

See here for more detail:

https://stackoverflow.com/a/48184999/15441

hawkeye
  • 34,745
  • 30
  • 150
  • 304