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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.