0

I have a multi-module web-application maven project.

Iterating over list of dependencies of each module (depndencies:list) - it's easy to see dependencies conflicts - but is there a plugin that produces conflicts report so I can run it in my CI server as build validation?

    Examples for conflicts:
  • Circular dependencies.
  • Same dependency with different version on different sub-modules
orshachar
  • 4,837
  • 14
  • 45
  • 68

1 Answers1

0

Ah...so best for such things is the maven-enforcer-plugin which contains such rules to enforce things like this and break the build if someone is doing something wrong..

To prevent circular dependencies you should use the banCircularDependencies rule from the extra-enforcer-rules

To prevent different versions in sub modules you can use the dependencyConvergence rule which is exactly for such purposes.

The requireUpperBoundDeps might also be interesting for you.

khmarbaise
  • 92,914
  • 28
  • 189
  • 235