• Community
  • Products
  • Confluence
  • Questions
  • I am new to confluence I have installed confluence 5.6.5 and atlasian-sdk-plugin5.0.4 and Unable to run atlas-create-confluence-plugin it is showing the following error build failure Please reply

I am new to confluence I have installed confluence 5.6.5 and atlasian-sdk-plugin5.0.4 and Unable to run atlas-create-confluence-plugin it is showing the following error build failure Please reply

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 D:\program
files\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.singlethrea
ded.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.pom
Downloading: https://maven.atlassian.com/repository/public/com/sun/jersey/contri
bs/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-plug
in:5.0.4:create (default-cli) on project standalone-pom: Execution default-cli o
f 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 d
ependencies could not be resolved: Failed to collect dependencies at com.atlassi
an.maven.plugins:maven-confluence-plugin:jar:5.0.4 -> com.atlassian.maven.plugin
s:maven-amps-plugin:jar:5.0.4 -> com.atlassian.plugins.rest:atlassian-rest-docle
t:jar:2.9.2 -> com.atlassian.jersey:atlassian-jersey-restdoc:jar:1.0.3 -> com.at
lassian.plugins.rest:atlassian-rest-common:jar:2.9.2-m01: Failed to read artifac
t 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:po
m:2.9.2-m01 from/to atlassian-public (https://maven.atlassian.com/repository/pub
lic): sun.security.validator.ValidatorException: PKIX path building failed: sun.
security.provider.certpath.SunCertPathBuilderException: unable to find valid cer
tification path to requested target -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResoluti
onException

2 answers

I am also getting that same error. Any solutions to this would be greatly helpful in getting into JIRA plugin development.

0 vote

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. smile

 

Hope it helps ya!

 

Cheers, 

Giuliano

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

965 views 23 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you