You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Dan Fabulich <da...@fabulich.com> on 2008/06/18 06:18:03 UTC

Failing the build on dep convergence problems

This seems like a common/obvious request but a bit of googling didn't turn 
it up.  At my work we're using the Dependency Convergence report to detect 
dependency conflicts.  We'd like to fail the build if we don't have 100% 
dependency convergence on that report.

I had hoped that I'd be able to do this using maven-dependency-plugin, but 
it's not obvious how to get it to do that.  The "analyze-dep-mgt" is 
sort-of what I want, but not exactly, since I'm concerned about sibling 
conflicts as well as conflicts with the root POM's dependencyManagement 
section.

(And anyway, I seem to be having problems with analyze-dep-mgt; when 
ignoreDirect is enabled it complains about dependency problems that I 
don't see in the Dependency Convergence report, and that don't show up 
with dependency:tree -Dverbose.)

The Dependency Convergence report doesn't use maven-dependency-plugin, 
does it?  How does it work?  Can I make my build fail when that report 
says < 100%?

-Dan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Failing the build on dep convergence problems

Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
I have a plugin that was donated to me from a customer that needs to be
turned into an enforcer rule...it does exactly what you're looking for.

-----Original Message-----
From: Dan Fabulich [mailto:dan@fabulich.com] 
Sent: Wednesday, June 18, 2008 12:18 AM
To: Maven Users List
Subject: Failing the build on dep convergence problems


This seems like a common/obvious request but a bit of googling didn't
turn 
it up.  At my work we're using the Dependency Convergence report to
detect 
dependency conflicts.  We'd like to fail the build if we don't have 100%

dependency convergence on that report.

I had hoped that I'd be able to do this using maven-dependency-plugin,
but 
it's not obvious how to get it to do that.  The "analyze-dep-mgt" is 
sort-of what I want, but not exactly, since I'm concerned about sibling 
conflicts as well as conflicts with the root POM's dependencyManagement 
section.

(And anyway, I seem to be having problems with analyze-dep-mgt; when 
ignoreDirect is enabled it complains about dependency problems that I 
don't see in the Dependency Convergence report, and that don't show up 
with dependency:tree -Dverbose.)

The Dependency Convergence report doesn't use maven-dependency-plugin, 
does it?  How does it work?  Can I make my build fail when that report 
says < 100%?

-Dan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org