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

This widget could not be displayed.
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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

119 views 2 0
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