-
-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Require upper bound dependencies error for org.ow2.asm:asm:9.5
#1032
Comments
A more minimal reproducible example (MRE) can be seen in diff --git a/pom.xml b/pom.xml
index e957746..f0eff46 100644
--- a/pom.xml
+++ b/pom.xml
@@ -29,7 +29,7 @@
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
- <version>4.88</version>
+ <version>5.0</version>
<relativePath/>
</parent>
@@ -56,7 +56,7 @@
<properties>
<changelist>999999-SNAPSHOT</changelist>
- <jenkins.version>2.426.3</jenkins.version>
+ <jenkins.version>2.479</jenkins.version>
<gitHubRepo>jenkinsci/${project.artifactId}-plugin</gitHubRepo>
<no-test-jar>false</no-test-jar>
<hpi.compatibleSinceVersion>2.0.0</hpi.compatibleSinceVersion>
@@ -79,8 +79,8 @@
<dependencies>
<dependency>
<groupId>io.jenkins.tools.bom</groupId>
- <artifactId>bom-2.426.x</artifactId>
- <version>2839.v003b_4d9d24fd</version>
+ <artifactId>bom-2.452.x</artifactId>
+ <version>3413.v0d896b_76a_30d</version>
<scope>import</scope>
<type>pom</type>
</dependency> which produces
The relevant portion of
For the life of me I cannot understand where 9.5 is coming from. When I run the same
So why is the version set to 9.5 when this plugin is consumed in e.g. |
After reading https://stackoverflow.com/questions/38245795/detect-versions-origin-of-a-managed-maven-dependency I ran
which is coming from core. This looks like yet another case of #705. |
For the life of me, I can't figure out how to get Jenkins core to stop delivering a managed dependency on ASM 9.5. I tried this in core: diff --git a/bom/pom.xml b/bom/pom.xml
index a8c184ead7..070b5d7afd 100644
--- a/bom/pom.xml
+++ b/bom/pom.xml
@@ -51,6 +51,12 @@ THE SOFTWARE.
<version>6.0.0</version>
<type>pom</type>
<scope>import</scope>
+ <exclusions>
+ <exclusion>
+ <groupId>org.ow2.asm</groupId>
+ <artifactId>asm</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
diff --git a/core/pom.xml b/core/pom.xml
index 9bff5e5ad0..422c42cec6 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -109,6 +109,10 @@ THE SOFTWARE.
<groupId>aopalliance</groupId>
<artifactId>aopalliance</artifactId>
</exclusion>
+ <exclusion>
+ <groupId>org.ow2.asm</groupId>
+ <artifactId>asm</artifactId>
+ </exclusion>
</exclusions>
</dependency>
<dependency> But ASM 9.5 still shows up in <dependency>
<groupId>org.ow2.asm</groupId> <!-- com.google.inject:guice-parent:6.0.0, line 170 -->
<artifactId>asm</artifactId> <!-- com.google.inject:guice-parent:6.0.0, line 171 -->
<version>9.5</version> <!-- com.google.inject:guice-parent:6.0.0, line 172 -->
</dependency> Not sure what to do at this point. |
I managed to get things to work in diff --git a/bom/pom.xml b/bom/pom.xml
index a8c184ead7..d9a7cb81b0 100644
--- a/bom/pom.xml
+++ b/bom/pom.xml
@@ -45,13 +45,6 @@ THE SOFTWARE.
<dependencyManagement>
<dependencies>
- <dependency>
- <groupId>com.google.inject</groupId>
- <artifactId>guice-bom</artifactId>
- <version>6.0.0</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-bom</artifactId>
diff --git a/core/pom.xml b/core/pom.xml
index 9bff5e5ad0..cded39da00 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -48,6 +48,13 @@ THE SOFTWARE.
<dependencyManagement>
<dependencies>
+ <dependency>
+ <groupId>com.google.inject</groupId>
+ <artifactId>guice-bom</artifactId>
+ <version>6.0.0</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
<dependency>
<groupId>org.jenkins-ci.main</groupId>
<artifactId>jenkins-bom</artifactId> though this may have negative consequences for things like |
jenkinsci/workflow-job-plugin@554c796 demonstrates that jenkinsci/jenkins#9826 chases away the problem in |
jenkinsci/workflow-job-plugin@1df4ccc demonstrates that jenkinsci/jenkins#9827 chases away the problem in |
I intend to deliver jenkinsci/jenkins#9827 in 2.479.1. |
While trying to upgrade
workflow-job
to the 5.0 release in jenkinsci/workflow-job-plugin#471, I am getting this bizarre Enforcer error:I cannot figure out where ASM 9.5 is coming from in the above dependency tree. Does anyone have any idea what is going on here?
The text was updated successfully, but these errors were encountered: