Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Getting error 'unable to find valid certification path to requested target' executing atlas-run cmd

Prasanna
Contributor
October 17, 2021

Getting below error when executing command atlas-run on dos prompt to execute the newly creted jira plugin
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:01 min
[INFO] Finished at: 2021-10-18T11:28:03+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project plugin57: Could not resolve dependencies for project mypluginscts:plugin57:atlassian-plugin:1.0.0-SNAPSHOT: Failed to collect dependencies at com.atlassian.jira:jira-api:jar:7.13.0: Failed to read artifact descriptor for com.atlassian.jira:jira-api:jar:7.13.0: Could not transfer artifact com.atlassian.jira:jira-project:pom:7.13.0 from/to atlassian-public (https://maven.atlassian.com/repository/public): PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to 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 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/DependencyResolutionException

1 answer

1 accepted

1 vote
Answer accepted
Nic Brough -Adaptavist-
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.
October 18, 2021

This means your build process does not have the certificates required to access that repository.

You may need to install them manually.  If the machine doing the build connects to https://packages.atlassian.com/maven-external/ does it get the same error?

Prasanna
Contributor
October 20, 2021 edited

I tried accessing link https://packages.atlassian.com/maven-external/ using internet browser, I can access it without any error, on the machine doing build process. 

Nic Brough -Adaptavist-
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.
October 20, 2021

Yes, your browser is capable of negotiating a secured link with https sites.  Your build process does not.

The most simple thing to do is look in the browser, and grab the certificate it got from the site to encrypt the connection.  Most have a padlock sign next to the url bar which has an option to view the certificate with a save-as or copy function.  Use that to get the certificate and install that in your build.  (For a maven build, this can be installing it in the Java key store, but that might not be the "right" way to do it for you)

Suggest an answer

Log in or Sign up to answer