Gauge test failing with maven execution

940 views
Skip to first unread message

Sreejith Edayillam

unread,
Apr 13, 2017, 3:54:51 AM4/13/17
to getgauge
Hi, 

I am getting the below error when try to run the Gauge test with maven

15:53:39 [INFO] BUILD FAILURE
15:53:39 [INFO] ------------------------------------------------------------------------
15:53:39 [INFO] Total time: 0.638s
15:53:39 [INFO] Finished at: Thu Apr 13 15:53:39 SGT 2017
15:53:39 [INFO] Final Memory: 10M/491M
15:53:39 [INFO] ------------------------------------------------------------------------
15:53:39 [ERROR] Failed to execute goal com.thoughtworks.gauge.maven:gauge-maven-plugin:1.2.0:execute (default-cli) on project gurutest-guage: Gauge Specs execution failed -> [Help 1]
15:53:39 org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.thoughtworks.gauge.maven:gauge-maven-plugin:1.2.0:execute (default-cli) on project gurutest-guage: Gauge Specs execution failed
15:53:39 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
15:53:39 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
15:53:39 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
15:53:39 	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
15:53:39 	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
15:53:39 	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
15:53:39 	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
15:53:39 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
15:53:39 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
15:53:39 	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
15:53:39 	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
15:53:39 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
15:53:39 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
15:53:39 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
15:53:39 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
15:53:39 	at java.lang.reflect.Method.invoke(Method.java:498)
15:53:39 	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
15:53:39 	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
15:53:39 	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
15:53:39 	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
15:53:39 Caused by: org.apache.maven.plugin.MojoFailureException: Gauge Specs execution failed
15:53:39 	at com.thoughtworks.gauge.maven.GaugeExecutionMojo.execute(GaugeExecutionMojo.java:108)
15:53:39 	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
15:53:39 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
15:53:39 	... 19 more
15:53:39 [ERROR] 
15:53:39 [ERROR] 
15:53:39 [ERROR] For more information about the errors and possible solutions, please read the following articles:


Sreejith Edayillam

unread,
Apr 13, 2017, 3:55:23 AM4/13/17
to getgauge
Can some please help me to resolve this. Let me know if you need more details.

Apoorva G A

unread,
Apr 13, 2017, 4:10:59 AM4/13/17
to getg...@googlegroups.com
Hi,

Can you give us more info as to where you are executing the specs. 
And also let us know what gauge version. Please execute 'gauge -v' and share the output.

--
You received this message because you are subscribed to the Google Groups "getgauge" group.
To unsubscribe from this group and stop receiving emails from it, send an email to getgauge+unsubscribe@googlegroups.com.
To post to this group, send email to getg...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/getgauge/9dbf4645-b214-4470-a6b2-71a037d834ce%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Regards,
Apoorva G A

Sreejith Edayillam

unread,
Apr 13, 2017, 5:27:39 AM4/13/17
to getgauge
Hi Apoorva,

Thank you for looking into the issue.

The root cause was permission issue. I changed the file owner of .gauge folder and it started working.

Thank You,
Sreejith.
To unsubscribe from this group and stop receiving emails from it, send an email to getgauge+u...@googlegroups.com.

To post to this group, send email to getg...@googlegroups.com.

Krish Murthy

unread,
Apr 25, 2017, 3:25:11 AM4/25/17
to getgauge
@sreejith,
I am having the same issue like yours. I have reached out to thoughtworks and they havent got back to me yet. You have somehow found a solution to it.Can you let me know what was the permission issue on .gauge folder so that I can do the same. 

Thanks
Krish 

Krish Murthy

unread,
Apr 25, 2017, 4:12:42 AM4/25/17
to getgauge
Hi,
I think the below issue that I am getting in jenkins is somewhat related to this conversation. I have also looked into Jenkins box and the job that I am running definitely has permission. I am still unsure on how to get this fixed. Any suggestions? Have been stuck for about a week in getting this to work. It works perfectly fine when I run mvn test on local. But the same setup fails in Jenkins
Just for more clarity - this is what i am getting when I run mvn test -P <profile name> in jenkins 

Reply all
Reply to author
Forward
0 new messages