Executing: "D:\programfiles\atlassian-plugin-sdk\apache-maven-3.2.1\bin\mvn.bat" com.atlassian.maven.plugins:maven-confluence-plugin:5.0.4:create -gs \programfiles\atlassian-plugin-sdk\apache-maven-3.2.1/conf/settings.xml[INFO] Scanning for projects...[INFO][INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1[INFO][INFO] ------------------------------------------------------------------------[INFO] Building Maven Stub Project (No POM) 1[INFO] ------------------------------------------------------------------------[INFO][INFO] --- maven-confluence-plugin:5.0.4:create (default-cli) @ standalone-pom ---Downloading: https://maven.atlassian.com/repository/public/com/atlassian/plugins/rest/atlassian-rest-common/2.9.2-m01/atlassian-rest-common-2.9.2-m01.pomDownloading: https://maven.atlassian.com/repository/public/com/sun/jersey/contribs/wadl-resourcedoc-doclet/1.8-atlassian-8/wadl-resourcedoc-doclet-1.8-atlassian-8.pom[INFO] ------------------------------------------------------------------------[INFO] BUILD FAILURE[INFO] ------------------------------------------------------------------------[INFO] Total time: 28.719 s[INFO] Finished at: 2014-12-16T15:08:17+05:30[INFO] Final Memory: 8M/22M[INFO] ------------------------------------------------------------------------[ERROR] Failed to execute goal com.atlassian.maven.plugins:maven-confluence-plugin:5.0.4:create (default-cli) on project standalone-pom: Execution default-cli of goal com.atlassian.maven.plugins:maven-confluence-plugin:5.0.4:create failed:Plugin com.atlassian.maven.plugins:maven-confluence-plugin:5.0.4 or one of its dependencies could not be resolved: Failed to collect dependencies at com.atlassian.maven.plugins:maven-confluence-plugin:jar:5.0.4 -> com.atlassian.maven.plugins:maven-amps-plugin:jar:5.0.4 -> com.atlassian.plugins.rest:atlassian-rest-doclet:jar:2.9.2 -> com.atlassian.jersey:atlassian-jersey-restdoc:jar:1.0.3 -> com.atlassian.plugins.rest:atlassian-rest-common:jar:2.9.2-m01: Failed to read artifact descriptor for com.atlassian.plugins.rest:atlassian-rest-common:jar:2.9.2-m01: Could not transfer artifact com.atlassian.plugins.rest:atlassian-rest-common:pom:2.9.2-m01 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
I am also getting that same error. Any solutions to this would be greatly helpful in getting into JIRA plugin development.
By looking at one of the stack traces there, we can see a possible issue related to SSL in Confluence:
sun.security.validator.ValidatorException: PKIX path building failed: sun. security.provider.certpath.SunCertPathBuilderException: unable to find valid cer tification path to requested target
It seems that after inserting the memory parameters, the JIRA/Confluence certificate was not inserted (or removed) into the Java that Confluence/JIRA is using. Mostly the certificate is not inside the the application cacerts of your instance. So, to check that can you navigate to *Confluence Admin > System Information* and search for *java.home*. This will return a path similar to this in your file system: {{<$JAVA_HOME>/jre}}
In this Java Home location you'll find the *cacerts* file, which is located at {{<$JAVA_HOME>/jre/lib/security/cacerts}}
After this, we can follow the steps of this KB article: https://confluence.atlassian.com/display/CONFKB/Unable+to+Connect+to+SSL+Services+due+to+PKIX+Path+Building+Failed
In case of this becoming critical for you, the best suggestion would be to raise a new ticket inside our Support Channel (https://support.atlassian.com) so specific engineers can proceed helping you here.
Hope it helps ya!
Cheers,
Giuliano
It looks like you're new here. Sign in or register to get started.