Error while create new plugin project in cmd

Here is my error Msg:

C:\Users\LexWang>cd C:\xxx

C:\xxx>atlas-create-jira-plugin
Executing: "C:\Applications\Atlassian\atlassian-plugin-sdk-8.0.16\apache-maven-3.5.4\bin\mvn.cmd" com.atlassian.maven.plugins:jira-maven-plugin:8.0.2:create -gs C:\Applications\Atlassian\atlassian-plugin-sdk-8.0.16\apache-maven-3.5.4/conf/settings.xml
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- jira-maven-plugin:8.0.2:create (default-cli) @ standalone-pom ---
Downloading from atlassian-public: https://maven.atlassian.com/repository/public/org/apache/wink/wink-common/1.4/wink-common-1.4.jar
Downloading from atlassian-public: https://maven.atlassian.com/repository/public/com/google/guava/guava/26.0-jre/guava-26.0-jre.jar
Downloading from atlassian-public: https://maven.atlassian.com/repository/public/com/sun/xml/bind/jaxb-impl/2.3.1/jaxb-impl-2.3.1.jar
Downloading from central: https://repo.maven.apache.org/maven2/com/google/guava/guava/26.0-jre/guava-26.0-jre.jar
Downloading from central: https://repo.maven.apache.org/maven2/com/sun/xml/bind/jaxb-impl/2.3.1/jaxb-impl-2.3.1.jar
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/wink/wink-common/1.4/wink-common-1.4.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21.276 s
[INFO] Finished at: 2020-01-15T13:42:08+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.atlassian.maven.plugins:jira-maven-plugin:8.0.2:create (default-cli) on project standalone-pom: Execution default-cli of goal com.atlassian.maven.plugins:jira-maven-plugin:8.0.2:create failed: Plugin com.atlassian.maven.plugins:jira-maven-plugin:8.0.2 or one of its dependencies could not be resolved: The following artifacts could not be resolved: com.google.guava:guava:jar:26.0-jre, org.apache.wink:wink-common:jar:1.4, com.sun.xml.bind:jaxb-impl:jar:2.3.1: Could not transfer artifact com.google.guava:guava:jar:26.0-jre 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 -> [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/PluginResolutionException

How should I do?

Judging from error message, esp. this part:

sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

it’s an issue with SSL protocol.
If you can open Maven Repo in browser without any problems it is probably Java installation issue.

1 Like

We have this issue on our corporate network because we do ssl tricks. We mirror Atlassian maven onto our internal repository and pull locally only.