error on Atlassian eventlistener tutorial

Kevin Chmiel September 28, 2017

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
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 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