Plugin fails while running maven build over team city
sumitpahwa18 opened this issue · comments
Describe the bug
When I run the maven build locally, It works fine. but when i run the maven build over team city then the cluecumber plugin fails to execute and gives below error.
Failed to execute goal com.trivago.rta:cluecumber-report-plugin:1.10.2:reporting (report) on project automation: Execution report of goal com.trivago.rta:cluecumber-report-plugin:1.10.2:reporting failed: Unable to load the mojo 'reporting' (or one of its required components) from the plugin 'com.trivago.rta:cluecumber-report-plugin:1.10.2'
[Step 1/1] [ERROR] 1) Could not find a suitable constructor in com.trivago.cluecumber.CluecumberReportPlugin. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.
[13:35:45][Step 1/1] [ERROR] at com.trivago.cluecumber.CluecumberReportPlugin.class(Unknown Source)
[13:35:45][Step 1/1] [ERROR] while locating com.trivago.cluecumber.CluecumberReportPlugin
[13:35:45][Step 1/1] [ERROR] at ClassRealm[plugin>com.trivago.rta:cluecumber-report-plugin:1.10.2, parent: sun.misc.Launcher$AppClassLoader@4e25154f]
[13:35:45][Step 1/1] [ERROR] while locating org.apache.maven.plugin.Mojo annotated with @com.google.inject.name.Named(value=com.trivago.rta:cluecumber-report-plugin:1.10.2:reporting)
[13:35:45][Step 1/1] [ERROR]
[13:35:45][Step 1/1] [ERROR] 1 error
[13:35:45][Step 1/1] [ERROR] role: org.apache.maven.plugin.Mojo
[13:35:45][Step 1/1] [ERROR] roleHint: com.trivago.rta:cluecumber-report-plugin:1.10.2:reporting
[13:35:45][Step 1/1] [ERROR] -> [Help 1]
Hi! Your Cluecumber plugin is very outdated. The current version is 2.3.1.
Also, please make sure you use a Maven version of at least 3.3.9.
This solved it.