Help me...I don't know why...How to create Jenkins Plugin

439 views
Skip to first unread message

jonghoon,jeon

unread,
Jul 18, 2018, 4:04:48 AM7/18/18
to Jenkins Developers

hi,
I'm trying to create a Jenkins plugin, but I get an error when I run the "mvn -U hpi: create" command. I can not seem to access https://repo.jenkins-ci.org/public anyway.

https://repo.jenkins-ci.org/public/

page not found...


I set settings.xml.  like writing Plugin tutorial


F:\eclipse_workspace\workspace_oxygen>mvn -U hpi:create
[INFO] Scanning for projects...
Downloading from repo.jenkins-ci.orghttps://repo.jenkins-ci.org/public/org/apache/maven/plugins/maven-deploy-plugin/2.7/maven-deploy-plugin-2.7.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-deploy-plugin/2.7/maven-deploy-plugin-2.7.pom
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-deploy-plugin:2.7: Plugin org.apache.maven.plugins:maven-deploy-plugin:2.7 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-deploy-plugin:jar:2.7
Downloading from repo.jenkins-ci.orghttps://repo.jenkins-ci.org/public/org/apache/maven/plugins/maven-site-plugin/3.3/maven-site-plugin-3.3.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-site-plugin/3.3/maven-site-plugin-3.3.pom
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-site-plugin:3.3: Plugin org.apache.maven.plugins:maven-site-plugin:3.3 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-site-plugin:jar:3.3
Downloading from repo.jenkins-ci.orghttps://repo.jenkins-ci.org/public/org/apache/maven/plugins/maven-antrun-plugin/1.3/maven-antrun-plugin-1.3.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-antrun-plugin/1.3/maven-antrun-plugin-1.3.pom
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-antrun-plugin:1.3: Plugin org.apache.maven.plugins:maven-antrun-plugin:1.3 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-antrun-plugin:jar:1.3
Downloading from repo.jenkins-ci.orghttps://repo.jenkins-ci.org/public/org/apache/maven/plugins/maven-release-plugin/2.5.3/maven-release-plugin-2.5.3.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-release-plugin/2.5.3/maven-release-plugin-2.5.3.pom
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-release-plugin:2.5.3: Plugin org.apache.maven.plugins:maven-release-plugin:2.5.3 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-release-plugin:jar:2.5.3
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml
Downloading from central: https://repo.maven.apache.org/maven2/org/jenkins-ci/tools/maven-metadata.xml
Downloading from repo.jenkins-ci.orghttps://repo.jenkins-ci.org/public/org/jenkins-ci/tools/maven-metadata.xml
Downloading from repo.jenkins-ci.orghttps://repo.jenkins-ci.org/public/org/apache/maven/plugins/maven-metadata.xml
Downloading from repo.jenkins-ci.orghttps://repo.jenkins-ci.org/public/org/codehaus/mojo/maven-metadata.xml
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml
[WARNING] Could not transfer metadata org.jenkins-ci.tools/maven-metadata.xml from/to repo.jenkins-ci.org (https://repo.jenkins-ci.org/public/): Received fatal alert: protocol_version
[WARNING] Could not transfer metadata org.jenkins-ci.tools/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version
[WARNING] Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to repo.jenkins-ci.org (https://repo.jenkins-ci.org/public/): Received fatal alert: protocol_version
[WARNING] Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version
[WARNING] Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/to repo.jenkins-ci.org (https://repo.jenkins-ci.org/public/): Received fatal alert: protocol_version
[WARNING] Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version
[WARNING] Failure to transfer org.jenkins-ci.tools/maven-metadata.xml from https://repo.jenkins-ci.org/public/ was cached in the local repository, resolution will not be reattempted until the update interval of repo.jenkins-ci.org has elapsed or updates are forced. Original error: Could not transfer metadata org.jenkins-ci.tools/maven-metadata.xml from/to repo.jenkins-ci.org (https://repo.jenkins-ci.org/public/): Received fatal alert: protocol_version
[WARNING] Failure to transfer org.jenkins-ci.tools/maven-metadata.xml from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer metadata org.jenkins-ci.tools/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version
[WARNING] Failure to transfer org.apache.maven.plugins/maven-metadata.xml from https://repo.jenkins-ci.org/public/ was cached in the local repository, resolution will not be reattempted until the update interval of repo.jenkins-ci.org has elapsed or updates are forced. Original error: Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to repo.jenkins-ci.org (https://repo.jenkins-ci.org/public/): Received fatal alert: protocol_version
[WARNING] Failure to transfer org.apache.maven.plugins/maven-metadata.xml from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version
[WARNING] Failure to transfer org.codehaus.mojo/maven-metadata.xml from https://repo.jenkins-ci.org/public/ was cached in the local repository, resolution will not be reattempted until the update interval of repo.jenkins-ci.org has elapsed or updates are forced. Original error: Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/to repo.jenkins-ci.org (https://repo.jenkins-ci.org/public/): Received fatal alert: protocol_version
[WARNING] Failure to transfer org.codehaus.mojo/maven-metadata.xml from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.955 s
[INFO] Finished at: 2018-07-18T16:25:36+09:00
[INFO] ------------------------------------------------------------------------
[ERROR] No plugin found for prefix 'hpi' in the current project and in the plugin groups [org.jenkins-ci.tools, org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\jhjeon\.m2\repository), repo.jenkins-ci.org (https://repo.jenkins-ci.org/public/), central (https://repo.maven.apache.org/maven2)] -> [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/NoPluginFoundForPrefixException

Daniel Beck

unread,
Jul 18, 2018, 4:06:41 AM7/18/18
to jenkin...@googlegroups.com

> On 18. Jul 2018, at 10:04, jonghoon,jeon <hunib...@gmail.com> wrote:
>
> Received fatal alert: protocol_version

Our Artifactory no longer supports TLS 1.0 or 1.1, so make sure your OS and Java runtime are on the latest releases.

Daniel Beck

unread,
Jul 18, 2018, 4:08:15 AM7/18/18
to jenkin...@googlegroups.com

> On 18. Jul 2018, at 10:04, jonghoon,jeon <hunib...@gmail.com> wrote:
>
> https://repo.jenkins-ci.org/public/
>
> page not found...

That's weird, it *should* say 405 Not Allowed. Could you please provide the full output?

The reason it says 'not allowed' is a performance issue due to how Artifactory virtual repos work. All other paths, such as https://repo.jenkins-ci.org/public/org/ , work, as does artifact resolution using Maven -- just the root directory does not.

jonghoon,jeon

unread,
Jul 18, 2018, 8:21:58 PM7/18/18
to Jenkins Developers
Thanks..
I resolved by changeing JDK 1.8

2018년 7월 18일 수요일 오후 5시 6분 41초 UTC+9, Daniel Beck 님의 말:
Reply all
Reply to author
Forward
0 new messages