Hi fellow Jenkins developers, I have a Jenkins plugin, which can optionally use Kubernetes plugin. However, I don't want the Kubernetes plugin to be installed along with my plugin in Jenkins. That's why I have set this in the POM file:
<dependency> > <groupId>org.csanchez.jenkins.plugins</groupId> > <artifactId>kubernetes</artifactId> > <scope>provided</scope> > <optional>true</optional> > </dependency> > However, Maven HPI plugin doesn't allow me to get away with this, and complains: *[ERROR] Failed to execute goal org.jenkins-ci.tools:maven-hpi-plugin:1.121:test-hpl (default-cli) on project my-jenkins-plugin: org.csanchez.jenkins.plugins:kubernetes:jar:0.11 is marked as 'provided' scope dependency, but it should be the 'compile' scope. -> [Help 1]* I'm using maven-hpi-plugin:1.121, which is the default in the 2.x Jenkins plugin core POM that I'm using as a base for my plugin. However, I tried to use later versions - 1.122 and 2.0, but there was no change. Also, I tried to use Maven plugin configuration options <dependencyResolution>compile</dependencyResolution> and <includesOptional>false</includesOptional> - without any effect. If I remove '<scope>provided</scope>' from the K8s plugin dependency in POM, it's still being installed in Jenkins along with my plugin, despite '<optional>true</optional>'. Any help is appreciated! Regards, K. -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/eaad77ca-2f18-4597-93d0-4b99646bf35a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
