Eventually, this issue would be faced if trying to compile Jenkins plugins:
In the end, a dependency has a stale version (8.0.1) in this case.
[INFO] Adding ignore: module-info
[INFO] Ignoring requireUpperBoundDeps in com.google.guava:guava
[WARNING] Rule 5: org.apache.maven.plugins.enforcer.RequireUpperBoundDeps failed
with message:
Failed while enforcing RequireUpperBoundDeps. The error(s) are [
Require upper bound dependencies error for org.ow2.asm:asm:5.0.4 paths to depend
ency are:
+-org.jenkins-ci.plugins:azure-ad:1.2.2
+-org.jenkins-ci.main:jenkins-core:2.271
+-com.github.jnr:jnr-posix:3.0.45
+-com.github.jnr:jnr-ffi:2.1.8
+-org.ow2.asm:asm:5.0.4 (managed) <-- org.ow2.asm:asm:5.0.3
and
+-org.jenkins-ci.plugins:azure-ad:1.2.2
+-org.jenkins-ci.main:jenkins-core:2.271
+-com.github.jnr:jnr-posix:3.0.45
+-com.github.jnr:jnr-ffi:2.1.8
+-org.ow2.asm:asm-tree:5.0.3
+-org.ow2.asm:asm:5.0.4 (managed) <-- org.ow2.asm:asm:5.0.3
and
+-org.jenkins-ci.plugins:azure-ad:1.2.2
+-com.microsoft.azure:azure:1.22.0
+-com.microsoft.azure:azure-client-authentication:1.6.4
+-com.microsoft.azure:adal4j:1.6.2
+-com.nimbusds:oauth2-oidc-sdk:5.64.4
+-net.minidev:json-smart:2.3
+-net.minidev:accessors-smart:1.2
+-org.ow2.asm:asm:5.0.4 (managed) <-- org.ow2.asm:asm:8.0.1
]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:08 min
[INFO] Finished at: 2022-01-09T10:12:15-03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.
0.0-M3:enforce (display-info) on project azure-ad: Some Enforcer rules have fail
ed. Look above for specific messages explaining why the rule failed. -> [Help 1]
https://www.jenkins.io/doc/developer/plugin-development/updating-parent/
No comments :
Post a Comment