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 vote
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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

546 views 6 12
Read article

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