Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

"atlas-run" failing as part of "Create a plugin skeleton tutorial"

Joshua Lacey
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 13, 2023

I've installed all JDK and Atlassian SDK related stuff as recently as this week and on a fresh install of Ubuntu. I've reached this tutorial and it fails at the step that the hyperlink directly links to. Content below is the step. 

---------------------------------------------------------------------------------------------------------------------------------------

Step 2. Start up the RefApp

When you generated the skeleton for your plugin, you specified a RefApp plugin skeleton. Your plugin has access to the shared application services and developer tools for all Atlassian applications. Here you'll start up the RefApp and get better acquainted with your resources.

  1. Change directory to your project root. 

    1 $ cd adminUI
  2. Enter the following command to start up RefApp:
    1 $ atlas-run

---------------------------------------------------------------------------------------------------------------------------------------

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.315 s
[INFO] Finished at: 2023-06-13T10:38:40-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.atlassian.maven.plugins:refapp-maven-plugin:8.1.2:validate-manifest (default-validate-manifest) on project adminUI:
[ERROR]
[ERROR] atlassian-plugin.xml contains a definition of component-import. This is not allowed when Atlassian-Plugin-Key is set.
[ERROR]
[ERROR] Please check the documentation of https://bitbucket.org/atlassian/atlassian-spring-scanner or https://developer.atlassian.com/display/DOCS/Configuration+of+Instructions+in+Atlassian+Plugins for further details.
[ERROR]
[ERROR]
[ERROR] -> [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/MojoFailureException

Above is what is returned at the end after running "atlas-run". All other previous steps had been run several times and reached the same conclusion.

---------------------------------------------------------------------------------------------------------------------------------------

EDIT: Solved by commenting out this entire line from my atlassian-plugin.xml. 

<!-- import from the product container -->

<component-import key="applicationProperties" interface="com.atlassian.sal.api.ApplicationProperties" />

Can anyone explain what actually happened by me commenting this out? 

0 answers

Suggest an answer

Log in or Sign up to answer