refapp tutorial - atlas-run command error

Hello,

I get the following error while following this tutorial https://developer.atlassian.com/docs/getting-started/learn-the-development-platform-by-example/create-a-plugin-skeleton

\[ERROR\] The project com.atlassian.plugins.tutorial.refapp.adminUI:.... has 1 error

\[ERROR\] Non-resolvable import POM: Failure to find com.atlassian.refapp.atlassian-platform:pom:2.23 in https://maven.atlassian.com/repository/public was cached in the local repository, resoluation will not be reattempted until the update interval of atlassian-public has elapsed or updates are forced (at) line 70, column... blah blah

I did go through some of these answers, but non seemed to apply to my version (5.0.13) of the SDK. Maven version is 3.2.1. The steps that I attempted include

-) complete bombing of ~/.m2

-) changing amps version in atlastutorials/adminUI/pom.xml and other version numbers

help?

1 answer

1 accepted

1 vote
Volodymyr Krupach Community Champion Jan 29, 2015

Hi Stephen,

The error says that maven can not find appropriate entry in the atlassain maven repo and that's true, since there is no entry for version 2.23. Please take a look: https://maven.atlassian.com/content/groups/public/com/atlassian/refapp/atlassian-platform/

Suggest you to put version 2.22.0 in your pom for com.atlassian.refapp.atlassian-platform

Thanks Vologymyr! I can confirm that this approach works for their latest SDK (5.0.13) and refapp launches successfully.

It works but it shows a different error now. Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\vibhav.sarraf>cd Desktop\atlastutorial\adminUI C:\Users\vibhav.sarraf\Desktop\atlastutorial\adminUI>atlas-run Executing: "C:\Users\vibhav.sarraf\atlassian-plugin-sdk\apache-maven-3.2.1\bin\m vn.bat" com.atlassian.maven.plugins:maven-amps-dispatcher-plugin:5.0.13:run -gs C:\Users\vibhav.sarraf\atlassian-plugin-sdk\apache-maven-3.2.1/conf/settings.xml Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=256M; support wa s removed in 8.0 [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for com.atlassian.plugins.tutorial.refapp:adminUI:atlassian-plugin:1.0-SNAPSHOT [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-comp iler-plugin is missing. @ line 91, column 21 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten t he stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support buildin g such malformed projects. [WARNING] [INFO] [INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethrea ded.SingleThreadedBuilder with a thread count of 1 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building adminUI 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] >>> maven-amps-dispatcher-plugin:5.0.13:run (default-cli) @ adminUI >>> [INFO] [INFO] --- maven-refapp-plugin:5.0.13:copy-bundled-dependencies (default-copy-bu ndled-dependencies) @ adminUI --- [INFO] gson-2.2.2-atlassian-1.jar already exists in destination. [INFO] slf4j-simple-1.5.8.jar already exists in destination. [INFO] slf4j-api-1.6.4.jar already exists in destination. [INFO] [INFO] --- maven-refapp-plugin:5.0.13:compress-resources (default-compress-resou rces) @ adminUI --- [WARNING] File encoding has not been set, using platform encoding windows-1252, i.e. build is platform dependent! [INFO] Compiling javascript using YUI [INFO] 0 Javascript file(s) were minified into target directory C:\Users\vibhav. sarraf\Desktop\atlastutorial\adminUI\target\classes [INFO] 0 CSS file(s) were minified into target directory C:\Users\vibhav.sarraf\ Desktop\atlastutorial\adminUI\target\classes [INFO] Compressing XML files [INFO] 0 XML file(s) were minified into target directory C:\Users\vibhav.sarraf\ Desktop\atlastutorial\adminUI\target\classes [INFO] [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ adminUI -- - [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 6 resources [INFO] [INFO] --- maven-refapp-plugin:5.0.13:filter-plugin-descriptor (default-filter-p lugin-descriptor) @ adminUI --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ adminUI --- [INFO] Changes detected - recompiling the module! [WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. b uild is platform dependent! [INFO] Compiling 2 source files to C:\Users\vibhav.sarraf\Desktop\atlastutorial\ adminUI\target\classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? [INFO] 1 error [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.534 s [INFO] Finished at: 2015-05-06T18:20:24+05:30 [INFO] Final Memory: 14M/35M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3. 3:compile (default-compile) on project adminUI: Compilation failure [ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? [ERROR] -> [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/MojoFailureExc eption C:\Users\vibhav.sarraf\Desktop\atlastutorial\adminUI>

i am also getting the same error after replacing refapp version to 2.22.0

When I now load lh:5990/refapp im getting 404ed. Thoughts?

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,305 views 14 20
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot