-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fix scope for some git plugin transitive dependencies getting pulled as 'compile' instead of 'test' #592
Fix scope for some git plugin transitive dependencies getting pulled as 'compile' instead of 'test' #592
Conversation
'compile' instead of 'test'
Typically this is not a mojo bug but a POM mistake; it means that the dependency would also have been pulled in from some other source, and the currently visible diff --git a/pom.xml b/pom.xml
index f7099517..65c1e9c6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -154,12 +154,24 @@
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>git</artifactId>
<scope>test</scope>
+ <exclusions>
+ <exclusion>
+ <groupId>joda-time</groupId>
+ <artifactId>joda-time</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>git</artifactId>
<classifier>tests</classifier>
<scope>test</scope>
+ <exclusions>
+ <exclusion>
+ <groupId>joda-time</groupId>
+ <artifactId>joda-time</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId> gives
|
Therefore the better fix is to decide which trail you want to use, and add |
…roblem Also get rid of pluginFirstClassLoader=true, which predated jackson2-api (I guess)
at com.fasterxml.jackson.databind.ObjectMapper.<init>(ObjectMapper.java:460) | ||
at io.fabric8.kubernetes.client.utils.Serialization.<clinit>(Serialization.java:37) | ||
--> | ||
<pluginFirstClassLoader>true</pluginFirstClassLoader> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Be sure to test this live, not just mvn hpi:run
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't see any problem. Looking at the git blame for this, I see this was added back in the day where jackson was packaged directly in the plugin.
hpi plugin bug?