Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Getting Maven dependency error while using Atlassian SDK

Sahil Godse December 16, 2024

Hi Team,

I'm getting an error while creating a Hello world plugin as per Atlassian SDK documentation but when I run atlas-run command it throws an error 

 

Failed to execute goal on project myPlugin: Could not resolve dependencies for project com.atlassian.tutorial:myPlugin: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-api:pom:7.13.0 from/to atlassian-public (https://maven.atlassian.com/repository/public): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

 

And also referred this article 

Please let me know how can I resolve this error 

NOTE: I have both java and mvn commands working 

 

Regards,

Sahil

1 answer

0 votes
Tuncay Senturk
Community Champion
December 31, 2024

HI @Sahil Godse 

 

The error says that your system is unable to establish a secure connection to the Atlassian Maven repository which is https://maven.atlassian.com/repository/public due to a certificate validation issue. You need to copy the Atlassian Maven repo certificate to your system to establish the secure connection via your JVM.

Navigate to the Atlassian Maven repository via a browser (https://maven.atlassian.com/repository/public)

Export the SSL certificate (e.g. using Chrome) and save it as atlassian-maven.pem

Then import the certificate to your java keystore. I think the below command would work but make sure that you have the valid JAVA_HOME.

keytool -importcert -file atlassian-maven.pem -keystore $JAVA_HOME/lib/security/cacerts -alias atlassian-maven

 

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events