Confluence plugin "atlas-run" fails with "Failed to read artifact descriptor" message Edited

I'm trying to begin the development of my first Confluence plugin. I've followed the documentation steps but, when I run "atlas-run", the process fails.

It downloads all maven dependencies without a problem, until this point:

$ /usr/share/atlassian-plugin-sdk-6.2.14/apache-maven-3.2.1/bin/mvn -U com.atlassian.maven.plugins:maven-amps-dispatcher-plugin:6.2.11:run -gs /usr/share/atlassian-plugin-sdk-6.2.14/apache-maven-3.2.1/conf/settings.xml
[INFO] Scanning for projects...
Downloading: http://nexus-repository.local/repository/main-repository/org/apache/maven/plugins/maven-resources-plugin/maven-metadata.xml
Downloaded: http://nexus-repository.local/repository/main-repository/org/apache/maven/plugins/maven-resources-plugin/maven-metadata.xml (896 B at 3.0 KB/sec)
Downloading: http://nexus-repository.local/repository/main-repository/org/apache/maven/plugins/maven-compiler-plugin/maven-metadata.xml
Downloaded: http://nexus-repository.local/repository/main-repository/org/apache/maven/plugins/maven-compiler-plugin/maven-metadata.xml (2 KB at 26.1 KB/sec)
Downloading: http://nexus-repository.local/repository/main-repository/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml
Downloaded: http://nexus-repository.local/repository/main-repository/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml (711 B at 19.3 KB/sec)
Downloading: http://nexus-repository.local/repository/main-repository/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml
Downloaded: http://nexus-repository.local/repository/main-repository/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml (795 B at 26.8 KB/sec)
[INFO] 
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building confluence-plugin 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] >>> maven-amps-dispatcher-plugin:6.2.11:run (default-cli) @ confluence-plugin >>>
Downloading: http://nexus-repository.local/repository/main-repository/com/atlassian/applinks/applinks-parent/5.2.2/applinks-parent-5.2.2.pom
Downloading: http://nexus-repository.local/repository/main-repository/org/apache/velocity/velocity/maven-metadata.xml
Downloaded: http://nexus-repository.local/repository/main-repository/org/apache/velocity/velocity/maven-metadata.xml (2 KB at 0.5 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.229 s
[INFO] Finished at: 2017-05-05T08:50:01+01:00
[INFO] Final Memory: 31M/121M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project confluence-plugin: Could not resolve dependencies for project com.amaseguros.atlas:confluence-plugin:atlassian-plugin:1.0.0-SNAPSHOT: Failed to collect dependencies at com.atlassian.confluence:confluence:jar:5.10.7 -> com.atlassian.applinks:applinks-api:jar:5.2.2: Failed to read artifact descriptor for com.atlassian.applinks:applinks-api:jar:5.2.2: Could not find artifact com.atlassian.applinks:applinks-parent:pom:5.2.2 in AMA (http://nexus-repository.local/repository/main-repository/) -> [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/DependencyResolutionException

I'm using an internal Nexus repository where Atlassian repository is added. I can access to the path /com/atlassian/applinks/applinks-api/5.2.2/applinks-api-5.2.2.pom and see the content.

Any idea? Thanks!

1 answer

Hi,

try searching the developer community or ask the question there:

https://developer.atlassian.com/community/

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,090 views 25 10
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