Missed Team ’24? Catch up on announcements here.

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

Unable to run "helloworld" plugin

Josh Kristof May 20, 2014

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] ------------------------------------------------------------------------

5 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
Gorka Puente _Appfire_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
June 16, 2014

New AMPS version 5.0.3 seems to fix it!!

&lt;confluence.version&gt;5.5.2&lt;/confluence.version&gt;
&lt;confluence.data.version&gt;5.5.2&lt;/confluence.data.version&gt;
 
&lt;upm.license.compatibility.version&gt;2.15&lt;/upm.license.compatibility.version&gt;
&lt;amps.version&gt;5.0.3&lt;/amps.version&gt;

Confirmed https://jira.atlassian.com/browse/CONF-33782

0 votes
Tim Cope April 18, 2016

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

0 votes
Joe Clark
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 26, 2014

Raised as a Confluence bug - https://jira.atlassian.com/browse/CONF-33782

David at David Simpson Apps
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
May 27, 2014

I had the same problem on Friday. Luckily, the weekend kicked in.

0 votes
Joe Clark
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 26, 2014

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?

Joe Clark
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 26, 2014

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

Josh Kristof May 26, 2014

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.

0 votes
Joe Clark
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 26, 2014

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.

Josh Kristof May 26, 2014

No, I don't have a settings.xml file.

Alexander Reinicke May 26, 2014

Running atlas-clean.bat helps?

Gorka Puente _Appfire_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
May 26, 2014

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events