Build failure when trying to generate hpi file [noob alert]

126 views
Skip to first unread message

Telmo Cardoso

unread,
Apr 15, 2016, 12:05:42 PM4/15/16
to Jenkins Developers
Hi,

I checked out project from https://github.com/jenkinsci/cucumber-reports-plugin and I'm trying to generate hpi with command:

mvn hpi:hpi

I getting the error:

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.880 s
[INFO] Finished at: 2016-04-15T15:07:56+01:00
[INFO] Final Memory: 22M/220M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.jenkins-ci.tools:maven-hpi-plugin:1.117:hpi (default-cli) on project cucumber-reporting: Failed to determine Jenkins version this plugin depends on. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.jenkins-ci.tools:maven-hpi-plugin:1.117:hpi (default-cli) on project cucumber-reporting: Failed to determine Jenkins version this plugin depends on.

I have added dependency
<dependency>
<groupId>org.jenkins-ci.main</groupId>
<artifactId>jenkins-war</artifactId>
<type>war</type>
<version>1.625.3</version>
</dependency>

And I can see it downloaded on local maven repository

Can anyone point me in the right direction?

P.S. - If I create a new project from scratch I'm able to generate hpi file or run it directly to jenkins.


Adrien Lecharpentier

unread,
Apr 15, 2016, 12:41:01 PM4/15/16
to Jenkins Developers
The version of Jenkins-core the plugin depends on is determine by the parent-pom version: https://github.com/jenkinsci/cucumber-reports-plugin/blob/master/pom.xml#L6

However, to generate the `hpi`, you should use the classic `mvn package` rather than calling the `hpi` plugin.
-- Adrien 

--
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 jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/e27d78d4-a9dd-426e-ab85-2d7465018d4f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Telmo Cardoso

unread,
Apr 15, 2016, 1:01:55 PM4/15/16
to Jenkins Developers
I actually sent the wrong project, the one I'm trying to generate is https://github.com/damianszczepanik/cucumber-reporting

But I'll give it a go on your suggestions

Adrien Lecharpentier

unread,
Apr 16, 2016, 6:29:43 AM4/16/16
to Jenkins Developers
It seems that it's not a Jenkins plugin project. Are you sure it's the correct one?
-- Adrien

Telmo Cardoso

unread,
Apr 16, 2016, 10:55:34 AM4/16/16
to Jenkins Developers
One uses the other as dependency and I was able to generate the hpi for the parent project.

Now I would like to have the "children" project has a local dependency.

The way I'm doing now, I need to be generating the .jar for every change, then re-added it as library on parent and then re-install plugin. There as to be a better way :)

Also, only the changes on java files are reflecting on end result, when I change *.vm files I still see original templates.
Reply all
Reply to author
Forward
0 new messages