error on Atlassian eventlistener tutorial

Hello, I'm trying to build a Eventlistener for my webhook and I'm following this tutorial : https://developer.atlassian.com/jiradev/jira-platform/guides/other/tutorial-writing-jira-event-listeners-with-the-atlassian-event-library

 

sadly on step 5 when trying to do atlas-run i get this error and i don't know what to do : 

 

[INFO] Manifest found, validating...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 33.419 s
[INFO] Finished at: 2017-09-28T10:59:40+01:00
[INFO] Final Memory: 30M/341M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.atlassian.maven.plugins:maven-jira-plugin:6.2
.11:validate-manifest (default-validate-manifest) on project new-listener-plugin
:
[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/atlass
ian-spring-scanner or https://developer.atlassian.com/display/DOCS/Configuration
+of+Instructions+in+Atlassian+Plugins for further details.
[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

 

I hope you can help with this problem, cheers.

1 answer

0 votes
Aleksandr Zuevich Community Champion Sep 30, 2017

Hi Kevin,

The tutorial is outdated. Don't use component and component-import in atlassian-plugin.xml. Use atlassian-spring-scanner instead: https://bitbucket.org/atlassian/atlassian-spring-scanner.

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

2,770 views 11 18
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