Problems when creating plugin skeleton

diana grigorcaka May 20, 2012

I get this error when I run the script "atlas-create-jira-plugin":

Downloading: https://m2proxy.atlassian.com/repository/public/com/atlassian/maven
/plugins/maven-jira-plugin/3.10.2/maven-jira-plugin-3.10.2.jar
[WARNING]
Unable to get resource 'com.atlassian.maven.plugins:maven-jira-plugin:
maven-plugin:3.10.2' from repository central (https://m2proxy.atlassian.com/repo
sitory/public):
Error transferring file: sun.security.validator.ValidatorExcepti
on: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilder
Exception: unable to find valid certification path to requested target
[INFO] Cannot find mojo descriptor for: 'com.atlassian.maven.plugins:maven-jira-
plugin:3.10.2:create_v4' - Treating as non-aggregator.
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO] task-segment: [com.atlassian.maven.plugins:maven-jira-plugin:3.10.2:cr
eate_v4]
[INFO] ------------------------------------------------------------------------
Downloading: https://m2proxy.atlassian.com/repository/public/com/atlassian/maven
/plugins/maven-jira-plugin/3.10.2/maven-jira-plugin-3.10.2.jar
[WARNING]
Unable to get resource 'com.atlassian.maven.plugins:maven-jira-plugin:
maven-plugin:3.10.2' from repository central (https://m2proxy.atlassian.com/repo
sitory/public):
Error transferring file: sun.security.validator.ValidatorExcepti
on: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilder
Exception: unable to find valid certification path to requested target
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] A required plugin was not found: Plugin could not be found - check that t
he goal name is correct: Unable to download the artifact from any repository

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=com.atlassian.maven.plugins -DartifactId=
maven-jira-plugin -Dversion=3.10.2 -Dpackaging=maven-plugin -Dfile=/path/to/file


Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.atlassian.maven.plugins -DartifactId=ma
ven-jira-plugin -Dversion=3.10.2 -Dpackaging=maven-plugin -Dfile=/path/to/file -
Durl=[url] -DrepositoryId=[id]


com.atlassian.maven.plugins:maven-jira-plugin:maven-plugin:3.10.2

from the specified remote repositories:
central (https://m2proxy.atlassian.com/repository/public)


com.atlassian.maven.plugins:maven-jira-plugin:maven-plugin:3.10.2

from the specified remote repositories:
central (https://m2proxy.atlassian.com/repository/public)


[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Mon May 21 15:45:12 EEST 2012
[INFO] Final Memory: 2M/15M
[INFO] ------------------------------------------------------------------------

2 answers

0 votes
Ramiro Pointis
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 20, 2012

Hi

Is your connection behind a proxy? When you try to execute it has to download many things from the maven repository so you need to configure the connection to pass throught the proxy.

Ramiro Pointis
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 20, 2012
diana grigorcaka May 20, 2012

Hi, thanks for answer!

Yes, I'm configure the connection throught the https proxy...

diana grigorcaka May 20, 2012

this not solve the problem

Ramiro Pointis
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 20, 2012

But you are with a proxy? Maybe you have to much restrictions in the proxy so you have to do the download in a free connection.

0 votes
diana grigorcaka May 20, 2012

C:\Atlassian>java -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing)

C:\Atlassian>atlas-version

ATLAS Version: 3.10.2
ATLAS Home: C:\Atlassian\atlassian-plugin-sdk-3.10.2
ATLAS Scripts: C:\Atlassian\atlassian-plugin-sdk-3.10.2\bin
ATLAS Maven Home: C:\Atlassian\atlassian-plugin-sdk-3.10.2\apache-m
--------
Executing: "C:\Atlassian\atlassian-plugin-sdk-3.10.2\apache-maven\b
-version
Apache Maven 2.1.0 (r755702; 2009-03-18 21:10:27+0200)
Java version: 1.6.0_26
Java home: C:\Program Files\Java\jdk1.6.0_26\jre
Default locale: lv_LV, platform encoding: Cp1257
OS name: "windows 7" version: "6.1" arch: "x86" Family: "windows"

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events