I am using openjdk 17.6(temurin 17) and maven 3.9.3 to run my karate framework and I am getting following error while executing men command
Unknown lifecycle phase .env. You must specify valid lifecycle phase
Maven command Mvn clean test -Dkarate.env=“qa” -Dkarate.options=“—-tags@sampletest”
Not sure why mvn command is failing.please help
Adding additional detials
following changes have been made to pom file
<maven.compiler.version>3.10.1</maven.compiler.version>
<maven.surefire.plugin>3.1.0</maven.surefire.plugin>
<karate.version>1.4.1RC2</karate.version>
<aspectj.version>1.8.10</aspectj.version>
getting following issue Failed to execute goal org.apache.maven.plugin:3.10.1:testCompile Fatal error compiling: Invalid target release 17