problem with dependency ui-samples-plugin

124 views
Skip to first unread message

Elmir Jagudin

unread,
May 2, 2013, 5:46:54 AM5/2/13
to jenkin...@googlegroups.com
Hi

When I try to launch my plugin with 'mvn hpi:run' I get an error that
dependency ui-samples-plugin doesn't exist:

May 02, 2013 10:54:37 AM jenkins.InitReactorRunner$1 onTaskFailed
SEVERE: Failed Loading plugin test
java.io.IOException: Dependency ui-samples-plugin (1.505) doesn't exist
at
hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:479)
at hudson.PluginManager$2$1$1.run(PluginManager.java:332)
at
org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
...

The Jenkins will start but my plugin is not loaded. It is not listen
under 'Installed' tab on Plugin Manager page.

This plugin works fine up until 1.504 version of the jenkins, 1.505 or
later generates the error above.

Inside my local .m2/repository there is a directory
org/jenkins-ci/main/ui-samples-plugin/1.505 with .jar and .pom files. So
it appears that maven have downloaded the ui-samples-plugin successfully.

I also tried launching the example plugin generated with 'mvn -U
org.jenkins-ci.tools:maven-hpi-plugin:create', where I only changed
jenkins version in the pom.xml file. I get the same results, works fine
in 1.504 but not in 1.505.

Does anyone know what is the problem?


Regards,
Elmir

Jesse Glick

unread,
May 2, 2013, 7:51:25 AM5/2/13
to jenkin...@googlegroups.com
On 05/02/2013 05:46 AM, Elmir Jagudin wrote:
> Does anyone know what is the problem?

Make sure you are using the newest maven-hpi-plugin. 1.95 I think.

Elmir Jagudin

unread,
May 2, 2013, 10:29:04 AM5/2/13
to jenkin...@googlegroups.com
Yes, forcing version 1.95 of maven-hpi-plugin solves this problem. Thanks!

I added following fragment to my plugin's pom.xml:

<build>
<plugins>
<plugin>
<groupId>org.jenkins-ci.tools</groupId>
<artifactId>maven-hpi-plugin</artifactId>
<version>1.95</version>
</plugin>
</plugins>
</build>

That'll do for now.

I still don't understand why maven did not pick up latest version of
maven-hpi-plugin automatically.


/elmir
Reply all
Reply to author
Forward
0 new messages