Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ignore Problems by maven-enforcer-plugin

I am trying to use the maven-enforcer-plugin with the convergence rule. I managed to get rid of all problems except one. We use gwt in our project and need the hibernate-validator 4.1.0.Final on the client side with scope provided. On the server side we need hibernate-validator 4.2.0.Final because we requrire some of the newer features. The 4.1.0.Final dependency has the classifier sources. This way I am able to have both versions in one pom. Everything works fine but the enforcer-plugin is not so happy and fails.

Is there any way I can configure the plugin to allow this "problem" ?

Edit:

The enforcer-plugin fails with the following error: 
[WARNING] Rule 0: org.apache.maven.plugins.enforcer.DependencyConvergence failed with message:

Failed while enforcing releasability the error(s) are [
Dependency convergence error for org.hibernate:hibernate-validator:4.1.0.Final paths to dependency are...

Regards, arne

like image 731
Arne Avatar asked Nov 11 '22 20:11

Arne


1 Answers

If anybody runs into the same Problem: I solved it by renaming the artifact-id of the older version to hibernate-validator-gwt and uploading it to our own repository. Works for now.

like image 189
Arne Avatar answered Nov 23 '22 10:11

Arne