maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dsilve <>
Subject maven-enforcer-plugin to ban a transitive provided dependency
Date Fri, 05 Apr 2013 08:47:11 GMT
I have the following scenario: 
my project (A) has a number of compile dependencies on other internal
projects (B0, B1, B2 ...).
I would like to break the build of A in case Bx has been built depending on
an older release of A.

So for instance:

A:2.0-SNAPSHOT depends on B3:2.3
B3:2.3 depends on A:1.0 and this dependency is provided.

I tried to use the maven-enforcer-plugin to break the build of A in case
there is a transitive dependency whose groupId and artifactId are the same
as A, but it doesn't work because the dependency A:1.0 is provided.

Any suggestions?

View this message in context:
Sent from the Maven - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message