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 Le ven. 15 avr. 2016 à 18:05, Telmo Cardoso <[email protected]> a écrit : > 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. > > > > -- > 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/e27d78d4-a9dd-426e-ab85-2d7465018d4f%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-dev/e27d78d4-a9dd-426e-ab85-2d7465018d4f%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAKwJSvx6Lqxj-7jmufiJxD%2BnWdWqRgpDxHeb_h8kvKc1rw-3qQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
