I've been unable to run a simple "helloworld" confluence or jira plugin after following the developer setup instructions. I've installed the Atlassian SDK via the installer and have verified that it was successful. It appears that atlas-run is unable to download resources from the atlassian maven repo. Error is below:
Noodle:helloworld joshk$ atlas-run
Executing: /usr/share/atlassian-plugin-sdk-4.2.20/apache-maven/bin/mvn com.atlassian.maven.plugins:maven-amps-dispatcher-plugin:4.2.20:run -gs /usr/share/atlassian-plugin-sdk-4.2.20/apache-maven/conf/settings.xml
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building helloworld
[INFO] task-segment: [com.atlassian.maven.plugins:maven-amps-dispatcher-plugin:4.2.20:run]
[INFO] ------------------------------------------------------------------------
[INFO] Preparing amps-dispatcher:run
Downloading: http://repo1.maven.org/maven2/com/atlassian/refapp/atlassian-platform/2.20.0/atlassian-platform-2.20.0.pom
[INFO] Unable to find resource 'com.atlassian.refapp:atlassian-platform:pom:2.20.0' in repository central (http://repo1.maven.org/maven2)<br< a="">>[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).
Project ID: com.atlassian.refapp:atlassian-platform
Reason: POM 'com.atlassian.refapp:atlassian-platform' not found in repository: Unable to download the artifact from any repository
com.atlassian.refapp:atlassian-platform:pom:2.20.0
from the specified remote repositories:
central (http://repo1.maven.org/maven2)
for project com.atlassian.refapp:atlassian-platform
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5 seconds
[INFO] Finished at: Tue May 20 14:25:45 PDT 2014
[INFO] Final Memory: 41M/86M
[INFO] ------------------------------------------------------------------------
Community moderators have prevented the ability to post new answers.
New AMPS version 5.0.3 seems to fix it!!
<confluence.version>5.5.2</confluence.version> <confluence.data.version>5.5.2</confluence.data.version> <upm.license.compatibility.version>2.15</upm.license.compatibility.version> <amps.version>5.0.3</amps.version>
This just happened to me when making a JIRA Hello World plugin. I had to tune down the version in the pom.xml until it worked.
Also, each time I ran atlas-run I added -U at the end to clear Maven's cache.
$ atlas-run -U
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Raised as a Confluence bug - https://jira.atlassian.com/browse/CONF-33782
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I had the same problem on Friday. Luckily, the weekend kicked in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Actually, your problem looks similar to https://answers.atlassian.com/questions/299277/error-building-pom-com-atlassian-refapp-atlassian-platform-not-found-in-repository-confluence-5-5-2
What version of Confluence do you have specified in your pom.xml?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've just reproduced the problem trying to build a plugin against Confluence 5.5.2. I'm going to chase this up with the dev team now and find out what's causing this.
In the meantime, try dropping your <confluence.version> property down to 5.5
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I was able to work around the issue by manually downloading the dependencies. The version listed in the Hello World pom.xml is 5.5.1.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you have a settings.xml file in your ~/.m2 directory? Try removing it temporarily to see if that is the problem. It looks like Maven is searching for Atlassian artifacts in repo1.maven.orgwhen it should be using maven.atlassian.cominstead. The Plugin SDK ships with a settings.xml configured to use the Atlassian repo, but if you have a per-user config file it may override it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes! Same problem here https://answers.atlassian.com/questions/299277/error-building-pom-com-atlassian-refapp-atlassian-platform-not-found-in-repository-confluence-5-5-2, it works with confluence.version 5.5.0
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.