Install plugin from command line

449 views
Skip to first unread message

mmi...@gmail.com

unread,
Nov 15, 2017, 7:42:15 AM11/15/17
to Jenkins Developers
Hello. I reported this issue here like suggested here. I'm trying to use the "Durable Task Plugin" (link) with some personal updates. For this reason I got the version 1.14 and I tried to generate the hpi file through the command "mvn install". However, I obtained this errors:

java.nio.file.NoSuchFileException: MYPATH\target\classes\META-INF\annotations\org.kohsuke.accmod.Restricted
java
.nio.file.NoSuchFileException: MYPATH\target\classes\META-INF\annotations\hudson.Extension

Looking at the code I noticed that the plugin uses this two dependencies, but they are not specified in the pom file. Is it possible to generate the hpi file or is it impossible with this configuration?

Jesse Glick

unread,
Nov 15, 2017, 9:47:19 AM11/15/17
to Jenkins Dev
On Wed, Nov 15, 2017 at 4:15 AM, <mmi...@gmail.com> wrote:
> Looking at the code I noticed that the plugin uses this two dependencies,
> but they are not specified in the pom file.

They are inherited from a parent, along with much else.

> Is it possible to generate the
> hpi file

Sure, like any other plugin, or indeed Maven-based project:

mvn -DskipTests clean package

mmi...@gmail.com

unread,
Nov 16, 2017, 5:51:10 AM11/16/17
to Jenkins Developers
@Jesse, thank you for your answer. However I have the same error.

mmi...@gmail.com

unread,
Nov 16, 2017, 6:16:06 AM11/16/17
to Jenkins Developers
Actually, org.kohsuke.accmod.Restricted is in the target now, but not the same for hudson.Extension.

Jesse Glick

unread,
Nov 16, 2017, 3:04:19 PM11/16/17
to Jenkins Dev
On Thu, Nov 16, 2017 at 6:16 AM, <mmi...@gmail.com> wrote:
> Actually, org.kohsuke.accmod.Restricted is in the target now, but not the
> same for hudson.Extension.

No idea offhand. Something is very broken in your environment. Make
sure you are using the latest versions of Maven and JDK 8. If all else
fails,

https://hub.docker.com/_/maven/

Or maybe your “personal updates” are wrong. Without a way to reproduce
your error in another environment, it is not really possible to help.
Reply all
Reply to author
Forward
0 new messages