We are developing a plugin with a dependency to
TraceTronic ECU-TEST Plugin.
<dependency>
<groupId>de.tracetronic.jenkins.plugins</groupId>
<artifactId>ecutest</artifactId>
<version>1.6</version>
</dependency>
When running the plugin with
mvn hpi:run, the dependency is successfully downloaded and Jenkins start just fine, with both my plugin and the dependency installed. I can see the
ecustest-1.6 in my
.m2 folder.
However, when I start a new instance of Jenkins and install my plugin's .hpi manually, the deployment fails with the following message:
java.io.IOException: Failed to dynamically deploy this plugin
at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1383)
at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1161)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:110)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: Failed to install ecotest plugin
at hudson.PluginManager.dynamicLoad(PluginManager.java:487)
at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1379)
... 5 more
Caused by: java.io.IOException: Dependency ecutest (1.6) doesn't exist
at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:533)
at hudson.PluginManager.dynamicLoad(PluginManager.java:477)
... 6 more
We tried to start with a plugin from scratch (with mvn -U org.jenkins-ci.tools:maven-hpi-plugin:create) and simply adding the dependency. Again, no success.
Has anyone experienced this? Any ideas?