Hi there,
This is working ...
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>2.30</version>
<relativePath />
</parent>
<jenkins.version>2.73.3</jenkins.version>
.............
In the project I maintain, there is an external dependency on a plugin that uses org.apache.commons.lang3
When I try and switch to plugin version 2.31 or above, I get an enforcer error.
When I research, it appears that I need to Exclude org.apache.commons lang3 from the <dependency>
When I do this, enforcer passes, clean, compile all work but when the hpi:run actually tries and runs the code (during my manual test session), I get an exception that the class org.apache.commons.lang3.ArrayUtil cannot be loaded. (sorrry.. the case me be off on ArrayUtil).
When I use 2.37 as the version plugin, I get the following (which seems to imply that the test harness has a similar problem).
I have no control over the pom of the dependency.
Require upper bound dependencies error for org.apache.commons:commons-lang3:3.1 paths to dependency are:
+-org.jenkins-ci.plugins:ironmq-notifier:1.0.19-SNAPSHOT
+-io.iron.ironmq:ironmq:3.0.4
+-org.apache.commons:commons-lang3:3.1
and
+-org.jenkins-ci.plugins:ironmq-notifier:1.0.19-SNAPSHOT
+-org.jenkins-ci.main:jenkins-test-harness:2.31
+-org.jenkins-ci.main:jenkins-test-harness-htmlunit:2.18-1
+-org.apache.commons:commons-lang3:3.4
Any ideas or a direction (or samples) to go to next?
Thanks