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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With