Plugin Tutorial seems broken, help wanted

119 views
Skip to first unread message

Sean Jones

unread,
Mar 15, 2016, 8:52:55 PM3/15/16
to Jenkins Developers
I am trying to break a plugin up to date but I am not having much luck with Maven.

I decided to try create a plugin from scratch, copy the source over and add the dependencies one at a time to clean things up.

However, the Plugin Tutorial appears not to work.

My .m2/settings.xml only has the contents they page wants and executing the command

mvn -U org.jenkins-ci.tools:maven-hpi-plugin:create

But I get this error:
[INFO] Scanning for projects...
Downloading: https://repo.maven.apache.org/maven2/org/jenkins-ci/tools/maven-hpi-plugin/maven-metadata.xml
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.161 s
[INFO] Finished at: 2016-03-16T00:39:38+00:00
[INFO] Final Memory: 12M/309M
[INFO] ------------------------------------------------------------------------
[ERROR] Error resolving version for plugin 'org.jenkins-ci.tools:maven-hpi-plugin' from the repositories [local (/Users/neuralsandwich/.m2/repository), central (https://repo.maven.apache.org/maven2)]: Plugin not found in any plugin repository -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginVersionResolutionException
Any help would be great, thank you. 

Baptiste Mathus

unread,
Mar 16, 2016, 5:38:46 PM3/16/16
to Jenkins Developers
Normally, that should come from http://repo.jenkins-ci.org/public/

Which maven version do you use?
What's in mvn help:effective-settings?

HTH

--
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/f843f2fd-a8a9-4fd4-b9e6-7342866ff5aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sean Jones

unread,
Mar 17, 2016, 12:01:03 PM3/17/16
to Jenkins Developers, m...@batmat.net
I ran mvn help:effective-settings and it only showed me my local repository. I double checked my .m2 folder and I had named settings.xml to setting.xml.

*sigh* Sorry for wasting your time but thank you for your help!
Reply all
Reply to author
Forward
0 new messages