Open
Description
Hi,
I have setup my existing Java project with Gauge. When I use maven to execute the Gauge target with the following command:
mvn gauge:execute -DspecsDir=specs/example.spec
I get the following error:
[ERROR] Failed to execute goal com.thoughtworks.gauge.maven:gauge-maven-plugin:1.4.0:execute (default-cli) on project mobileproducts-test-client: Gauge Specs execution failed. null: GaugeExecutionFailedException -> [Help 1]
at org.reflections.Reflections.<init>(Reflections.java:126)
at com.thoughtworks.gauge.execution.parameters.parsers.base.ParameterParsingChain.createReflections(ParameterParsingChain.java:47)
at com.thoughtworks.gauge.execution.parameters.parsers.base.ParameterParsingChain.<init>(ParameterParsingChain.java:33)
[ERROR]
at com.thoughtworks.gauge.connection.MessageProcessorFactory.initializeExecutionMessageProcessors(MessageProcessorFactory.java:112)
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
at com.thoughtworks.gauge.connection.MessageProcessorFactory.getProcessor(MessageProcessorFactory.java:87)
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
at com.thoughtworks.gauge.RunnerServiceHandler.lambda$validateStep$17(RunnerServiceHandler.java:332)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
[ERROR]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
[ERROR] For more information about the errors and possible solutions, please read the following articles:
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.lang.ClassNotFoundException: org.jboss.annotation.ejb.Producers
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
at org.reflections.ReflectionUtils.forName(ReflectionUtils.java:388)
... 10 more
I tried to use older versions of the gauge maven plugin which still lead to exceptions (but maybe different ones). The error message is not meaningful to me and I don't know what to do. I is an existing Java project which I have initialized using gauge init. There are many additional classes in packages below the StepImplementation class and NOT in the "lib" folder. I want to use those classes later in the StepImplementation class. Maybe this is a problem?
Metadata
Metadata
Assignees
Labels
No labels
Activity