Error in running atlas-run command

Hi Team,

I am developing Plugin for the first time and i flowing the instruction in Step2: Start up JIRA with your plugin installed. I got a Error while when i run the command : atlas-run.

[ERROR] Plugin com.atlassian.plugin:atlassian-spring-scanner-maven-plugin:1.2.13
or one of its dependencies could not be resolved: Failed to read artifact descr
iptor for com.atlassian.plugin:atlassian-spring-scanner-maven-plugin:jar:1.2.13:
Could not transfer artifact com.atlassian.plugin:atlassian-spring-scanner-maven
-plugin:pom:1.2.13 from/to atlassian-public (https://maven.atlassian.com/reposit
ory/public): sun.security.validator.ValidatorException: PKIX path building faile
d: sun.security.provider.certpath.SunCertPathBuilderException: unable to find va
lid certification path to requested target → [Help 1]

I did not do any changes to auto generated POM , i am using JDK 8.
So what i can do to start up JIRA with your plugin installed?

Hope for your reply!
Thanks.

1 Like

Hi, @liuyunlei.

By any chance, are you behind a proxy server? If yes, then you could either configure the settings.xml of the SDK’s mvn conf directory and define the proxy, or add these arguments
-Dhttps.proxyHost=my_proxy_host and -Dhttps.proxyPort=my_proxy_port in your mvn command.

I am developing Plugin for the first time and i flowing the instruction in Step2: Start up JIRA with your plugin installed.

Can you also give us the link to the tutorial you are following?

Cheers,
Ian

1 Like

Hi,@iragudo
Thanks for your reply!
Yes, configure the settings.xml of the SDK’s mvn conf directory and define the proxy like this :

  > <proxies>
>     <!-- proxy
>      | Specification for one proxy, to be used in connecting to the network.
>      |-->
>     <proxy>
>       <id>optional</id>
>       <active>true</active>
>       <protocol>http</protocol>
>       <username>***</username>
>       <password>***</password>
>       <host>proxyhk.huawei.com</host>
>       <port>8080</port>
>       <nonProxyHosts>localhost|127.0.0.*</nonProxyHosts>
>     </proxy>
>     
>   </proxies>

and I’m not sure if this is properly configured, but in Step 1 i can download the code and create the jira-plugin.
The link of the tutorial is :https://developer.atlassian.com/docs/getting-started/set-up-the-atlassian-plugin-sdk-and-build-a-project/create-a-helloworld-plugin-project

Hope for your reply!
Thanks.

1 Like

@liuyunlei, as suspected, it smells like a proxy thing. Checking step 1, I believe you are not yet hitting https://maven.atlassian.com/maven-external/ via maven, hence, it should be fine.

This post about a similar error has been solved, and it also describes the argument approach I mentioned in my previous comment.

I would, however, try to eliminate the proxy issue by using my personal internet connection (do not forget to comment out the proxies in the settings.xml). Once it works outside the proxy, then we can start digging into some more proxy related solutions.

Best regards,
Ian

Hi,@iragudo

I have add -Dhttps.proxyHost=my_proxy_host and -Dhttps.proxyPort=my_proxy_port in your mvn command. My mvn.bat like this:

:Win9xArg
@REM Slurp the command line arguments.  This loop allows for an unlimited number
@REM of agruments (up to the command line limit, anyway).
set MAVEN_CMD_LINE_ARGS=-Dhttps.proxyHost=proxyhk.huawei.com and -Dhttps.proxyPort=8080
:Win9xApp
if %1a==a goto endInit
set MAVEN_CMD_LINE_ARGS=%MAVEN_CMD_LINE_ARGS% %1 -Dhttps.proxyHost=proxyhk.huawei.com and -Dhttps.proxyPort=8080
shift
goto Win9xApp

But i can’t built successfully:

F:\Atlassian_sdk_test\myPlugin> atlas-run
Executing: "D:\Applications\Atlassian\atlassian-plugin-sdk-6.3.4\apache-maven-3.
2.1\bin\mvn.bat" com.atlassian.maven.plugins:maven-amps-dispatcher-plugin:"6.3.6
":run -gs D:\Applications\Atlassian\atlassian-plugin-sdk-6.3.4\apache-maven-3.2.
1/conf/settings.xml
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256M; sup
port was removed in 8.0
[INFO] Scanning for projects...
Downloading: https://packages.atlassian.com/maven/repository/public/org/apache/m
aven/plugins/maven-resources-plugin/maven-metadata.xml
[WARNING] Could not transfer metadata org.apache.maven.plugins:maven-resources-p
lugin/maven-metadata.xml from/to atlassian-public (https://packages.atlassian.co
m/maven/repository/public): sun.security.validator.ValidatorException: PKIX path
 building failed: sun.security.provider.certpath.SunCertPathBuilderException: un
able to find valid certification path to requested target
Downloading: https://packages.atlassian.com/maven/repository/public/org/apache/m
aven/plugins/maven-compiler-plugin/maven-metadata.xml
[WARNING] Could not transfer metadata org.apache.maven.plugins:maven-compiler-pl
ugin/maven-metadata.xml from/to atlassian-public (https://packages.atlassian.com
/maven/repository/public): sun.security.validator.ValidatorException: PKIX path
building failed: sun.security.provider.certpath.SunCertPathBuilderException: una
ble to find valid certification path to requested target
Downloading: https://packages.atlassian.com/maven/repository/public/org/apache/m
aven/plugins/maven-install-plugin/maven-metadata.xml
[WARNING] Could not transfer metadata org.apache.maven.plugins:maven-install-plu
gin/maven-metadata.xml from/to atlassian-public (https://packages.atlassian.com/
maven/repository/public): sun.security.validator.ValidatorException: PKIX path b
uilding failed: sun.security.provider.certpath.SunCertPathBuilderException: unab
le to find valid certification path to requested target
Downloading: https://packages.atlassian.com/maven/repository/public/org/apache/m
aven/plugins/maven-deploy-plugin/maven-metadata.xml
[WARNING] Could not transfer metadata org.apache.maven.plugins:maven-deploy-plug
in/maven-metadata.xml from/to atlassian-public (https://packages.atlassian.com/m
aven/repository/public): sun.security.validator.ValidatorException: PKIX path bu
ilding failed: sun.security.provider.certpath.SunCertPathBuilderException: unabl
e to find valid certification path to requested target
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethrea
ded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building myPlugin 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: https://packages.atlassian.com/maven/repository/public/com/atlassia
n/plugin/atlassian-spring-scanner-maven-plugin/1.2.13/atlassian-spring-scanner-m
aven-plugin-1.2.13.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.412 s
[INFO] Finished at: 2017-12-21T11:38:42+08:00
[INFO] Final Memory: 15M/242M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin com.atlassian.plugin:atlassian-spring-scanner-maven-plugin:1.2.13
 or one of its dependencies could not be resolved: Failed to read artifact descr
iptor for com.atlassian.plugin:atlassian-spring-scanner-maven-plugin:jar:1.2.13:
 Could not transfer artifact com.atlassian.plugin:atlassian-spring-scanner-maven
-plugin:pom:1.2.13 from/to atlassian-public (https://packages.atlassian.com/mave
n/repository/public): sun.security.validator.ValidatorException: PKIX path build
ing failed: sun.security.provider.certpath.SunCertPathBuilderException: unable t
o find valid certification path to requested target -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResoluti
onException

I can not using my personal internet connection because i work in my company and have a security strategy.
Best regards,
Liuyunlei

@liuyunlei, interesting. Seems like you got the proxy setup properly. If this is a certificate issue, I have stumbled upon these two pages, How to Resolve ValidatorException and Unable to install plugin due to MVN SSL. I have not tried these yet but if your proxy is set up properly, then these two links are worth a read.

Hi,@iragudo

"Unable to install plugin due to MVN SSL." fit my problem "ValidatorException: PKIX path build

ing failed: sun.security.provider.certpath.SunCertPathBuilderException: unable t
o find valid certification path to requested target"

but there is still another problem not fit, the log is here:

F:\Atlassian_sdk_test\myPlugin> atlas-run
Executing: "D:\Applications\Atlassian\atlassian-plugin-sdk-6.3.4\apache-maven-3.
2.1\bin\mvn.bat" com.atlassian.maven.plugins:maven-amps-dispatcher-plugin:"6.3.6
":run -gs D:\Applications\Atlassian\atlassian-plugin-sdk-6.3.4\apache-maven-3.2.
1/conf/settings.xml
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256M; sup
port was removed in 8.0
[INFO] Scanning for projects...
Downloading: file://D:\Applications\Atlassian\atlassian-plugin-sdk-6.3.4/reposit
ory/org/apache/maven/plugins/maven-resources-plugin/maven-metadata.xml
Downloading: https://packages.atlassian.com/maven/repository/public/org/apache/m
aven/plugins/maven-resources-plugin/maven-metadata.xml
十二月 25, 2017 10:19:33 上午 org.apache.maven.wagon.providers.http.httpclient.i
mpl.execchain.RetryExec execute
信息: I/O exception (java.net.SocketException) caught when processing request: P
ermission denied: connect
十二月 25, 2017 10:19:33 上午 org.apache.maven.wagon.providers.http.httpclient.i
mpl.execchain.RetryExec execute
信息: Retrying request
十二月 25, 2017 10:19:33 上午 org.apache.maven.wagon.providers.http.httpclient.i
mpl.execchain.RetryExec execute
信息: I/O exception (java.net.SocketException) caught when processing request: P
ermission denied: connect
十二月 25, 2017 10:19:33 上午 org.apache.maven.wagon.providers.http.httpclient.i
mpl.execchain.RetryExec execute
信息: Retrying request
十二月 25, 2017 10:19:33 上午 org.apache.maven.wagon.providers.http.httpclient.i
mpl.execchain.RetryExec execute
信息: I/O exception (java.net.SocketException) caught when processing request: P
ermission denied: connect
十二月 25, 2017 10:19:33 上午 org.apache.maven.wagon.providers.http.httpclient.i
mpl.execchain.RetryExec execute
信息: Retrying request
[WARNING] Could not transfer metadata org.apache.maven.plugins:maven-resources-p
lugin/maven-metadata.xml from/to atlassian-public (https://packages.atlassian.co
m/maven/repository/public): Permission denied: connect
Downloading: https://packages.atlassian.com/maven/repository/public/org/apache/m
aven/plugins/maven-compiler-plugin/maven-metadata.xml
Downloading: file://D:\Applications\Atlassian\atlassian-plugin-sdk-6.3.4/reposit
ory/org/apache/maven/plugins/maven-compiler-plugin/maven-metadata.xml
十二月 25, 2017 10:19:34 上午 org.apache.maven.wagon.providers.http.httpclient.i
mpl.execchain.RetryExec execute
信息: I/O exception (java.net.SocketException) caught when processing request: P
ermission denied: connect
十二月 25, 2017 10:19:34 上午 org.apache.maven.wagon.providers.http.httpclient.i
mpl.execchain.RetryExec execute
信息: Retrying request
十二月 25, 2017 10:19:34 上午 org.apache.maven.wagon.providers.http.httpclient.i
mpl.execchain.RetryExec execute
信息: I/O exception (java.net.SocketException) caught when processing request: P
ermission denied: connect
十二月 25, 2017 10:19:34 上午 org.apache.maven.wagon.providers.http.httpclient.i
mpl.execchain.RetryExec execute
信息: Retrying request
十二月 25, 2017 10:19:34 上午 org.apache.maven.wagon.providers.http.httpclient.i
mpl.execchain.RetryExec execute
信息: I/O exception (java.net.SocketException) caught when processing request: P
ermission denied: connect
十二月 25, 2017 10:19:34 上午 org.apache.maven.wagon.providers.http.httpclient.i
mpl.execchain.RetryExec execute
信息: Retrying request
[WARNING] Could not transfer metadata org.apache.maven.plugins:maven-compiler-pl
ugin/maven-metadata.xml from/to atlassian-public (https://packages.atlassian.com
/maven/repository/public): Permission denied: connect
Downloading: https://packages.atlassian.com/maven/repository/public/org/apache/m
aven/plugins/maven-install-plugin/maven-metadata.xml
Downloading: file://D:\Applications\Atlassian\atlassian-plugin-sdk-6.3.4/reposit
ory/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml
十二月 25, 2017 10:19:34 上午 org.apache.maven.wagon.providers.http.httpclient.i
mpl.execchain.RetryExec execute
信息: I/O exception (java.net.SocketException) caught when processing request: P
ermission denied: connect
十二月 25, 2017 10:19:34 上午 org.apache.maven.wagon.providers.http.httpclient.i
mpl.execchain.RetryExec execute
信息: Retrying request
十二月 25, 2017 10:19:34 上午 org.apache.maven.wagon.providers.http.httpclient.i
mpl.execchain.RetryExec execute
信息: I/O exception (java.net.SocketException) caught when processing request: P
ermission denied: connect
十二月 25, 2017 10:19:34 上午 org.apache.maven.wagon.providers.http.httpclient.i
mpl.execchain.RetryExec execute
信息: Retrying request
十二月 25, 2017 10:19:34 上午 org.apache.maven.wagon.providers.http.httpclient.i
mpl.execchain.RetryExec execute
信息: I/O exception (java.net.SocketException) caught when processing request: P
ermission denied: connect
十二月 25, 2017 10:19:34 上午 org.apache.maven.wagon.providers.http.httpclient.i
mpl.execchain.RetryExec execute
信息: Retrying request
[WARNING] Could not transfer metadata org.apache.maven.plugins:maven-install-plu
gin/maven-metadata.xml from/to atlassian-public (https://packages.atlassian.com/
maven/repository/public): Permission denied: connect
Downloading: file://D:\Applications\Atlassian\atlassian-plugin-sdk-6.3.4/reposit
ory/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml
Downloading: https://packages.atlassian.com/maven/repository/public/org/apache/m
aven/plugins/maven-deploy-plugin/maven-metadata.xml
十二月 25, 2017 10:19:34 上午 org.apache.maven.wagon.providers.http.httpclient.i
mpl.execchain.RetryExec execute
信息: I/O exception (java.net.SocketException) caught when processing request: P
ermission denied: connect
十二月 25, 2017 10:19:34 上午 org.apache.maven.wagon.providers.http.httpclient.i
mpl.execchain.RetryExec execute
信息: Retrying request
十二月 25, 2017 10:19:34 上午 org.apache.maven.wagon.providers.http.httpclient.i
mpl.execchain.RetryExec execute
信息: I/O exception (java.net.SocketException) caught when processing request: P
ermission denied: connect
十二月 25, 2017 10:19:34 上午 org.apache.maven.wagon.providers.http.httpclient.i
mpl.execchain.RetryExec execute
信息: Retrying request
十二月 25, 2017 10:19:34 上午 org.apache.maven.wagon.providers.http.httpclient.i
mpl.execchain.RetryExec execute
信息: I/O exception (java.net.SocketException) caught when processing request: P
ermission denied: connect
十二月 25, 2017 10:19:34 上午 org.apache.maven.wagon.providers.http.httpclient.i
mpl.execchain.RetryExec execute
信息: Retrying request
[WARNING] Could not transfer metadata org.apache.maven.plugins:maven-deploy-plug
in/maven-metadata.xml from/to atlassian-public (https://packages.atlassian.com/m
aven/repository/public): Permission denied: connect
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethrea
ded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building myPlugin 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: https://packages.atlassian.com/maven/repository/public/com/atlassia
n/plugin/atlassian-spring-scanner-maven-plugin/1.2.13/atlassian-spring-scanner-m
aven-plugin-1.2.13.pom
十二月 25, 2017 10:19:34 上午 org.apache.maven.wagon.providers.http.httpclient.i
mpl.execchain.RetryExec execute
信息: I/O exception (java.net.SocketException) caught when processing request: P
ermission denied: connect
十二月 25, 2017 10:19:34 上午 org.apache.maven.wagon.providers.http.httpclient.i
mpl.execchain.RetryExec execute
信息: Retrying request
十二月 25, 2017 10:19:34 上午 org.apache.maven.wagon.providers.http.httpclient.i
mpl.execchain.RetryExec execute
信息: I/O exception (java.net.SocketException) caught when processing request: P
ermission denied: connect
十二月 25, 2017 10:19:34 上午 org.apache.maven.wagon.providers.http.httpclient.i
mpl.execchain.RetryExec execute
信息: Retrying request
十二月 25, 2017 10:19:34 上午 org.apache.maven.wagon.providers.http.httpclient.i
mpl.execchain.RetryExec execute
信息: I/O exception (java.net.SocketException) caught when processing request: P
ermission denied: connect
十二月 25, 2017 10:19:34 上午 org.apache.maven.wagon.providers.http.httpclient.i
mpl.execchain.RetryExec execute
信息: Retrying request
Downloading: file://D:\Applications\Atlassian\atlassian-plugin-sdk-6.3.4/reposit
ory/com/atlassian/plugin/atlassian-spring-scanner-maven-plugin/1.2.13/atlassian-
spring-scanner-maven-plugin-1.2.13.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.605 s
[INFO] Finished at: 2017-12-25T10:19:34+08:00
[INFO] Final Memory: 13M/245M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin com.atlassian.plugin:atlassian-spring-scanner-maven-plugin:1.2.13
 or one of its dependencies could not be resolved: Failed to read artifact descr
iptor for com.atlassian.plugin:atlassian-spring-scanner-maven-plugin:jar:1.2.13:
 Could not transfer artifact com.atlassian.plugin:atlassian-spring-scanner-maven
-plugin:pom:1.2.13 from/to atlassian-public (https://packages.atlassian.com/mave
n/repository/public): Permission denied: connect -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResoluti
onException

Hope for your reply!
Best regards,
liuyunlei

@liuyunlei, that’s good to know. The new issue seems to be a permission issue and this link was shown in the logs and have some suggestions you can try. Visit the comments section of the link too for other suggestions.

Best regards,
Ian

I have same issue ,may i know how did you solve this