Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to execute goal com.thoughtworks.gauge.maven:gauge-maven-plugin:1.3.0:execute #5

Open
vkumarv opened this issue Mar 8, 2019 · 12 comments

Comments

@vkumarv
Copy link

vkumarv commented Mar 8, 2019

@Apoorva-GA

Observed below error while running in IntelliJ for java-maven-selenium framework. Please let me know solution for this issue

[ERROR] Failed to execute goal com.thoughtworks.gauge.maven:gauge-maven-plugin:1.3.0:execute (default) on project active_admin: Gauge Specs execution failed -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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 read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

@Apoorva-GA
Copy link
Contributor

@vkumarv I see that you are using a old version of gauge-maven-plugin please use the latest and check if you still face the same issue.

@vkumarv
Copy link
Author

vkumarv commented Mar 12, 2019

@Apoorva-GA
I have upgraded to latest version of gauge-maven-plugin still I am getting same issue. please let me know solution for this.

[ERROR] Failed to execute goal com.thoughtworks.gauge.maven:gauge-maven-plugin:1.4.1:execute (default) on project gauge-groovy-example: Gauge Specs execution failed. null: GaugeExecutionFailedException -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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 read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Process finished with exit code 1

@vkumarv
Copy link
Author

vkumarv commented Mar 14, 2019

@Apoorva-GA
Any updates on this issue also please let me know, where should I mention chrome driver exe path in framework.

@NivedhaSenthil
Copy link
Member

@vkumarv I did not see the error you are facing, but there was an issue with the version of webdrivermanager that was used in the sample project. Have updated that to latest and the tests run fine now. Can you please pull in the changes and check if it works for you ?

@vkumarv
Copy link
Author

vkumarv commented Mar 15, 2019

@NivedhaSenthil Thanks for your input after downloading latest framework I am getting below issue.

OS: Windows 7
Gauge version: 1.0.4
Commit Hash: 3a9a647

Plugins

html-report (4.0.6)
java (0.7.1)
screenshot (0.0.1)

INFO] --- gauge-maven-plugin:1.4.0:execute (default) @ active_admin ---
[WARNING] Error injecting: com.thoughtworks.gauge.maven.GaugeExecutionMojo
java.lang.TypeNotPresentException: Type com.thoughtworks.gauge.maven.GaugeExecutionMojo not present
at org.eclipse.sisu.space.URLClassSpace.loadClass(URLClassSpace.java:147)
at org.eclipse.sisu.space.NamedClass.load(NamedClass.java:46)
at org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClass.java:48)
at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:81)
at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:53)
at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:65)
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115)
at org.eclipse.sisu.bean.BeanScheduler$Activator.onProvision(BeanScheduler.java:176)
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:126)
at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:68)
at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:63)
at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:45)
at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012)
at org.eclipse.sisu.inject.Guice4$1.get(Guice4.java:162)
at org.eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.java:81)
at org.eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.java:51)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:263)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:255)
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:517)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:121)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
Caused by: java.lang.UnsupportedClassVersionError: com/thoughtworks/gauge/maven/GaugeExecutionMojo has been compiled by a more recent version of the Java Runtime (class file version 54.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClassFromSelf(ClassRealm.java:401)
at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:42)
at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
at org.eclipse.sisu.space.URLClassSpace.loadClass(URLClassSpace.java:139)
... 43 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.239 s
[INFO] Finished at: 2019-03-15T05:53:10-04:00
[INFO] Final Memory: 19M/46M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.thoughtworks.gauge.maven:gauge-maven-plugin:1.4.0:execute (default) on project active_admin: Execution default of goal com.thoughtworks.gauge.maven:gauge-maven-plugin:1.4.0:execute failed: Unable to load the mojo 'execute' in the plugin 'com.thoughtworks.gauge.maven:gauge-maven-plugin:1.4.0' due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException: com/thoughtworks/gauge/maven/GaugeExecutionMojo has been compiled by a more recent version of the Java Runtime (class file version 54.0), this version of the Java Runtime only recognizes class file versions up to 52.0
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>com.thoughtworks.gauge.maven:gauge-maven-plugin:1.4.0
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/C:/Users/E004657/.m2/repository/com/thoughtworks/gauge/maven/gauge-maven-plugin/1.4.0/gauge-maven-plugin-1.4.0.jar
[ERROR] urls[1] = file:/C:/Users/E004657/.m2/repository/javax/enterprise/cdi-api/1.0/cdi-api-1.0.jar
[ERROR] urls[2] = file:/C:/Users/E004657/.m2/repository/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar
[ERROR] urls[3] = file:/C:/Users/E004657/.m2/repository/org/codehaus/plexus/plexus-utils/3.1.0/plexus-utils-3.1.0.jar
[ERROR] urls[4] = file:/C:/Users/E004657/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.25/plexus-interpolation-1.25.jar
[ERROR] urls[5] = file:/C:/Users/E004657/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.4/plexus-sec-dispatcher-1.4.jar
[ERROR] urls[6] = file:/C:/Users/E004657/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[7] = file:/C:/Users/E004657/.m2/repository/org/apache/maven/maven-builder-support/3.6.0/maven-builder-support-3.6.0.jar
[ERROR] urls[8] = file:/C:/Users/E004657/.m2/repository/org/apache/maven/maven-resolver-provider/3.6.0/maven-resolver-provider-3.6.0.jar
[ERROR] urls[9] = file:/C:/Users/E004657/.m2/repository/org/apache/maven/resolver/maven-resolver-impl/1.3.1/maven-resolver-impl-1.3.1.jar
[ERROR] urls[10] = file:/C:/Users/E004657/.m2/repository/org/apache/maven/resolver/maven-resolver-api/1.3.1/maven-resolver-api-1.3.1.jar
[ERROR] urls[11] = file:/C:/Users/E004657/.m2/repository/org/apache/maven/resolver/maven-resolver-spi/1.3.1/maven-resolver-spi-1.3.1.jar
[ERROR] urls[12] = file:/C:/Users/E004657/.m2/repository/org/apache/maven/resolver/maven-resolver-util/1.3.1/maven-resolver-util-1.3.1.jar
[ERROR] urls[13] = file:/C:/Users/E004657/.m2/repository/org/apache/maven/shared/maven-shared-utils/3.2.1/maven-shared-utils-3.2.1.jar
[ERROR] urls[14] = file:/C:/Users/E004657/.m2/repository/commons-io/commons-io/2.5/commons-io-2.5.jar
[ERROR] urls[15] = file:/C:/Users/E004657/.m2/repository/org/eclipse/sisu/org.eclipse.sisu.inject/0.3.3/org.eclipse.sisu.inject-0.3.3.jar
[ERROR] urls[16] = file:/C:/Users/E004657/.m2/repository/com/google/inject/guice/4.2.1/guice-4.2.1-no_aop.jar
[ERROR] urls[17] = file:/C:/Users/E004657/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar
[ERROR] urls[18] = file:/C:/Users/E004657/.m2/repository/com/google/guava/guava/25.1-android/guava-25.1-android.jar
[ERROR] urls[19] = file:/C:/Users/E004657/.m2/repository/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar
[ERROR] urls[20] = file:/C:/Users/E004657/.m2/repository/org/checkerframework/checker-compat-qual/2.0.0/checker-compat-qual-2.0.0.jar
[ERROR] urls[21] = file:/C:/Users/E004657/.m2/repository/com/google/errorprone/error_prone_annotations/2.1.3/error_prone_annotations-2.1.3.jar
[ERROR] urls[22] = file:/C:/Users/E004657/.m2/repository/com/google/j2objc/j2objc-annotations/1.1/j2objc-annotations-1.1.jar
[ERROR] urls[23] = file:/C:/Users/E004657/.m2/repository/org/codehaus/mojo/animal-sniffer-annotations/1.14/animal-sniffer-annotations-1.14.jar
[ERROR] urls[24] = file:/C:/Users/E004657/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.7.1/plexus-component-annotations-1.7.1.jar
[ERROR] urls[25] = file:/C:/Users/E004657/.m2/repository/org/apache/commons/commons-lang3/3.3/commons-lang3-3.3.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
[ERROR]
[ERROR] -----------------------------------------------------
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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 read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException

Process finished with exit code 1

@iskoc9002
Copy link

iskoc9002 commented May 2, 2019

Hi,
My porject is Maven Project. On locally I've not any error. But when I tried with Jenkins, I get the error. You can find error details below.

16:40:34 Specifications: 1 executed 1 passed 0 failed 0 skipped
16:40:34 Scenarios: 1 executed 1 passed 0 failed 0 skipped
16:40:34
16:40:34 Total time taken: 2m14.17s
16:40:34
16:40:34 Telemetry
16:40:34 ---------
16:40:34
16:40:34 This installation of Gauge collects usage data in order to help us improve your experience.
16:40:34 The data is anonymous and doesn't include command-line arguments.
16:40:34 To turn this message off opt in or out by running 'gauge telemetry on' or 'gauge telemetry off'.
16:40:34
16:40:34 Read more about Gauge telemetry at https://gauge.org/telemetry
16:40:34
16:40:34 [INFO] ------------------------------------------------------------------------
16:40:34 [INFO] BUILD FAILURE
16:40:34 [INFO] ------------------------------------------------------------------------
16:40:34 [INFO] Total time: 02:25 min
16:40:34 [INFO] Finished at: 2019-05-02T16:40:34+03:00
16:40:34 [INFO] ------------------------------------------------------------------------
16:40:34 [ERROR] Failed to execute goal com.thoughtworks.gauge.maven:gauge-maven-plugin:1.4.1:execute (default-cli) on project XXXX-automation: Gauge Specs execution failed. null: GaugeExecutionFailedException -> [Help 1]
16:40:34 [ERROR]

16:40:34 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
16:40:34 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
16:40:34 [ERROR]
16:40:34 [ERROR] For more information about the errors and possible solutions, please read the following articles:
16:40:34 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
16:40:35 Build step 'Execute Windows batch command' marked build as failure

Jenkins command:
gauge:execute -DspecsDir=specs -DinParallel=true -Dnodes=3 -Dtags=DemoTestCase

@Pawan2018
Copy link

I am getting below issue while running with command prompt or CI tool.
"Failed to execute goal com.thoughtworks.gauge.maven:gauge-maven-plugin:1.3.0:execute (default) on project active_admin: Gauge Specs execution failed"

@Pawan2018
Copy link

@vkumarv I did not see the error you are facing, but there was an issue with the version of webdrivermanager that was used in the sample project. Have updated that to latest and the tests run fine now. Can you please pull in the changes and check if it works for you ?

I am getting below issue while running with command prompt or CI tool.
"Failed to execute goal com.thoughtworks.gauge.maven:gauge-maven-plugin:1.3.0:execute (default) on project active_admin: Gauge Specs execution failed"

@manojTest
Copy link

I was getting below error while executing the specs
"Failed to execute goal com.thoughtworks.gauge.maven:gauge-maven-plugin:1.4.1:execute : Gauge Specs execution failed. null: GaugeExecutionFailedException.
However for me the issue was due to [ParseError] for spec display at start which does not have any step. Other spec executed sucessfully provided with tags and at the end getting above error. I have resolved it adding step to [ParseError] steps. Hope this will help some one.

@mfaisalkhatri
Copy link

Can anyone help me on this??
I am getting the following error when I run mvn test :

Error ----------------------------------
[INFO] ------------------------------------------------------------------------
[java]
[INFO] BUILD FAILURE
process C:\Program Files\Java\jdk1.8.0_221\jre\bin\java.exe with pid 2460 quit unexpectedly. exit status 1
[INFO] ------------------------------------------------------------------------

[Gauge]
[INFO] Total time: 2.567 s
Failed to start gauge API: Runner with pid 7684 quit unexpectedly(exit status 1).
[INFO] Finished at: 2020-03-20T00:56:12+05:30

[INFO] ------------------------------------------------------------------------
Get Support ----------------------------
[ERROR] Failed to execute goal com.thoughtworks.gauge.maven:gauge-maven-plugin:1.4.2:execute (default) on project active_admin: Gauge Specs execution failed. null: GaugeExecutionFailedException -> [Help 1]
Docs: https://docs.gauge.org
[ERROR]
Bugs: https://github.com/getgauge/gauge/issues
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
Chat: https://gitter.im/getgauge/chat
[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]
Your Environment Information -----------
[ERROR] For more information about the errors and possible solutions, please read the following articles:
windows, 1.0.6, 2bc49db
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
html-report (4.0.8), java (0.7.3), screenshot (0.0.1)

@mertozyilmaz
Copy link

Can anyone help me on this??
I am getting the following error when I run mvn test :

Error ----------------------------------
[INFO] ------------------------------------------------------------------------
[java]
[INFO] BUILD FAILURE
process C:\Program Files\Java\jdk1.8.0_221\jre\bin\java.exe with pid 2460 quit unexpectedly. exit status 1
[INFO] ------------------------------------------------------------------------

[Gauge]
[INFO] Total time: 2.567 s
Failed to start gauge API: Runner with pid 7684 quit unexpectedly(exit status 1).
[INFO] Finished at: 2020-03-20T00:56:12+05:30

[INFO] ------------------------------------------------------------------------
Get Support ----------------------------
[ERROR] Failed to execute goal com.thoughtworks.gauge.maven:gauge-maven-plugin:1.4.2:execute (default) on project active_admin: Gauge Specs execution failed. null: GaugeExecutionFailedException -> [Help 1]
Docs: https://docs.gauge.org
[ERROR]
Bugs: https://github.com/getgauge/gauge/issues
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
Chat: https://gitter.im/getgauge/chat
[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]
Your Environment Information -----------
[ERROR] For more information about the errors and possible solutions, please read the following articles:
windows, 1.0.6, 2bc49db
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
html-report (4.0.8), java (0.7.3), screenshot (0.0.1)

Hello,

did you solve the problem? I have same issue with same maven plugin version (1.4.2)

@JohnsonManesh
Copy link

JohnsonManesh commented Feb 25, 2021

[ERROR] Failed to execute goal com.thoughtworks.gauge.maven:gauge-maven-plugin:1.4.1:execute (test) on project esg-ebi-acceptance: Gauge Specs execution failed. java.io.IOException: Canno
t run program "gauge": CreateProcess error=2, The system cannot find the file specified -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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 read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

I am facing the above mentioned issue. Let me know how to resolve it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants