Forums

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

Getting Maven dependency error while using Atlassian SDK

Sahil Godse
Contributor
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 _Snapbytes_
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
atlassian, mindful member, mindful member badge, atlassian community, community kudos, community giveaway, atlassian swag, community values, empathy and kindness, badge challenge, atlassian learning, community engagement, swag giveaway

Earn a Badge, Win a Prize 🎁

Earning the Mindful Member badge proves you know how to lead with kindness, plus it enters you into a giveaway for exclusive Atlassian swag. Take the quiz, grab the badge, and comment on our announcement article to spread the good vibes!

Start here
AUG Leaders

Atlassian Community Events