Baptiste, Thanks for the help that you have offered. I won’t be offended if you treat me like an idiot because I’m not at all fluent in Java/Maven/Jenkins so ‘PR’, ‘WIP’ are probably blindingly obvious to you but they’re not to me I’m afraid.
Anyway, I looked at your proposed POM and it looks very much like the one I had but as a trial I took your complete POM, tweaked it to change a name or two and added a new dependency on com.fasterxml.jackson.jr (I suspect there is some JSON parsing already in Jenkins so I can remove this later). I then ran: mvn clean install found and sorted out a few warnings and then again tried mvn hpi:run and I got exactly the same error as before; the error indicating that I was not specifying a minimumJavaVersion ☹. I’m going to try and download the original external-job-plugin and see if that shows the same behaviour. I’ve very confused at the moment as to how this fails for me but seems to work for everyone else so if you have any suggestions at all, please let me know! Paul DS. From: [email protected] <[email protected]> On Behalf Of Baptiste Mathus Sent: 13 December 2018 01:02 To: Jenkins Developers <[email protected]> Subject: Re: maven-hpi-plugin ... minimumJavaVersion attribute must be set... Not sure if this is the plugin you're looking at, but had no issue with this one: https://github.com/jenkinsci/external-monitor-job-plugin/ Proposed a PR to bump to latest parent, and to JDK-8 & Jenkins 2.60.3 as min requirement. https://github.com/jenkinsci/external-monitor-job-plugin/pull/18 Le jeu. 13 déc. 2018 à 01:55, Baptiste Mathus <[email protected]<mailto:[email protected]>> a écrit : @Paul do generally not hesitate to file a WIP PR, so we can chime in on actual code, and possibly even file a PR against your PR :). I expect it to overall take less time than trying here to understand the issue without looking at the actual code. Le mer. 12 déc. 2018 à 21:29, Jesse Glick <[email protected]<mailto:[email protected]>> a écrit : On Wed, Dec 12, 2018 at 3:25 PM paul_d_smith <[email protected]<mailto:[email protected]>> wrote: > I'm trying to create a plug-in and started from the external-jobs plugin. > Unfortunately this had a very obsolete pom.xml so I've tried updating it > following some help given elsewhere in this group but I'm stuff no this error > when I try to run 'mvn hpi:run' > > [ERROR] Failed to execute goal org.jenkins-ci.tools:maven-hpi-plugin:3.0:run > (default-cli) on project gitlab-pipeline-job: minimumJavaVersion attribute > must be set starting from version 2.8 -> [Help 1] Presumably you neglected to add the `java.level` property to the POM. I think a more helpful message would have been displayed if you have started with something like $ mvn clean install since there is an Enforcer rule which will blow up if you use the placeholder default value. -- 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]<mailto:jenkinsci-dev%[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr3A7Edvmau1Gp73JgjFC7xGHU1xyQBW%2B8jNg5huNtG5Gw%40mail.gmail.com. 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]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANWgJS5-wcwOmVX-9crXZa9DdtzyUBGraOTdgany73PpKbZZdA%40mail.gmail.com<https://groups.google.com/d/msgid/jenkinsci-dev/CANWgJS5-wcwOmVX-9crXZa9DdtzyUBGraOTdgany73PpKbZZdA%40mail.gmail.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/VI1P192MB0255021ADC0B36E627BAFAFCC8A00%40VI1P192MB0255.EURP192.PROD.OUTLOOK.COM. For more options, visit https://groups.google.com/d/optout.
