Hi Jason,

The collector resolves conflicts by asking a chain of
ConflictResolvers in turn to see if they can select an appropriate
version.  If a ConflictResolver cannot resolve the conflict, then it
simply returns null and the next ConflictResolver in the chain is
consulted, and so on.  If the end of the chain is reached and the
conflict still cannot be resolved, then the collector throws an
exception that fails the build.

Thus a conflict resolver itself cannot fail the build directly, but I
would consider adding an exception to the ConflictResolver API.

So does this mean that this issue may gain some momentum? ;)

Cheers,

Mark

On 17/07/07, Jason van Zyl <[EMAIL PROTECTED]> wrote:
Mark,

Just looking at:

http://svn.apache.org/repos/asf/maven/components/branches/MNG-612/
maven-artifact/src/main/java/org/apache/maven/artifact/resolver/
conflict/

What happens if you want to bomb? If I wanted to fail the build if
there is a conflict? I'm asking because someone in a class I was
teaching wanted to implement that and I said he could use your code :-)

Thanks,

Jason.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to