Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

unable to follow instruction on SDK Development - Maven issue - RefApp

John July 31, 2014

I am following the instruction online: https://developer.atlassian.com/display/DOCS/Create+a+plugin+skeleton

I installed the SDK on Mac os 10.9 with the installer.

Johns-MacBook-Pro-2:repository xxx$ atlas-version

ATLAS Version: 5.0.3

ATLAS Home: /usr/share/atlassian-plugin-sdk-5.0.3

ATLAS Scripts: /usr/share/atlassian-plugin-sdk-5.0.3/bin

ATLAS Maven Home: /usr/share/atlassian-plugin-sdk-5.0.3/apache-maven-3.2.1

--------

Executing: /usr/share/atlassian-plugin-sdk-5.0.3/apache-maven-3.2.1/bin/mvn --version -gs /usr/share/atlassian-plugin-sdk-5.0.3/apache-maven-3.2.1/conf/settings.xml

Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T12:37:52-05:00)

Maven home: /usr/share/atlassian-plugin-sdk-5.0.3/apache-maven-3.2.1

Java version: 1.6.0_65, vendor: Apple Inc.

Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

Default locale: en_US, platform encoding: MacRoman

OS name: "mac os x", version: "10.9.4", arch: "x86_64", family: "mac"

When I tried to run the RefApp, I got the error:

Johns-MacBook-Pro-2:adminUI xxx$ sudo atlas-run

Password:

Executing: /usr/share/atlassian-plugin-sdk-5.0.3/apache-maven-3.2.1/bin/mvn com.atlassian.maven.plugins:maven-amps-dispatcher-plugin:5.0.3:run -gs /usr/share/atlassian-plugin-sdk-5.0.3/apache-maven-3.2.1/conf/settings.xml

[INFO] Scanning for projects...

Downloading: file:///usr/share/atlassian-plugin-sdk-5.0.3/repository/com/atlassian/refapp/atlassian-platform/2.22.1/atlassian-platform-2.22.1.pom

[ERROR] The build could not read 1 project -> [Help 1]

[ERROR]

[ERROR] The project com.atlassian.plugins.tutorial.refapp:adminUI:1.0-SNAPSHOT (/Users/junwhuan/Desktop/atlastutorial/adminUI/pom.xml) has 1 error

[ERROR] Non-resolvable import POM: Failure to find com.atlassian.refapp:atlassian-platform:pom:2.22.1 in https://maven.atlassian.com/repository/publicwas cached in the local repository, resolution will not be reattempted until the update interval of atlassian-public has elapsed or updates are forced @ line 70, column 25 -> [Help 2]

[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/ProjectBuildingException

[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

Any idea?

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

6 votes
Answer accepted
shashank_shekhar August 5, 2014

can I force it to use an older pom ?

Edit --

I fixed the issue by going to the pom file and changing the refapp.version from 2.22.1 to 2.22.0

It can be found in the <properties> section at the bottom of the file

John September 7, 2014

Thank you!

WilsonwOliveira December 2, 2014

Thank you very much, you help me a solve my problem :D

AM May 28, 2015

You can view the available versions here: https://maven.atlassian.com/#nexus-search;quick~atlassian-platform

0 votes
MohdS August 5, 2014

I also got this error. It seems that they dont have version 2.22.1 of atlassian-platform. Only version 2.22.0

2.22.0/Mon Jul 14 17:15:57 UTC 2014

2.9.0/Tue Jul 15 09:16:58 UTC 2014

2.9.1/Fri Aug 01 11:20:40 UTC 2014

I hope they can upload it to fix this problem.

TAGS
AUG Leaders

Atlassian Community Events