getgauge / gauge-mvn-archetypes

Maven archetypes for Gauge

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Should be able to execute a newly created project

sswaroopgupta opened this issue · comments

Expected behavior
Should be able to execute a newly created project

Actual behavior
Getting the error

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:testCompile (default-testCompile) on project art1: Fatal error compiling: error: invalid target release: 1.11

Steps to replicate

  • Java version -
java version "11.0.1" 2018-10-16 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.1+13-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.1+13-LTS, mixed mode)
  • Create a new java_maven project
    gauge init java_maven
  • Try running a scenario from the IDE

It runs a command mvn -q clean compile test-compile gauge:execute

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:testCompile (default-testCompile) on project art2: Fatal error compiling: error: invalid target release: 1.11 -> [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/MojoExecutionException
Error: Tests failed.

Blocks #201
Blocks getgauge/gauge-vscode#311

The fix should be available in nightly >= 28-12-2018

Tested the above scenarios, able to run using mvn -q clean compile test-compile gauge:execute command successfully.

Versions:

Gauge version: 1.0.4.nightly-2019-01-22
Commit Hash: 3a9a647

Plugins
-------
html-report (4.0.7.nightly-2019-01-11)
java (0.7.0.nightly-2019-01-24)
gauge-0.0.8.nightly-2019-01-24.vsix