我在Selenium testng Maven项目中使用Jenkins。但是,当运行构建时,我得到的是控制台输出。我添加了正确的MAVEN_HOME路径,但仍然收到此错误-
Running as SYSTEM
Building in workspace /Users/priyanka.kadam/.jenkins/workspace/Ecommerce1
ERROR: Failed to parse POMs
java.io.IOException: hudson.maven.MavenEmbedderException: Couldn't find maven version information in '/Users/priyanka.kadam/Downloads/apache-maven-3.6.3'. Are you sure that this is a valid maven home?
at hudson.maven.MavenVersionCallable.call(MavenVersionCallable.java:73)
at hudson.maven.MavenVersionCallable.call(MavenVersionCallable.java:41)
at hudson.FilePath.act(FilePath.java:1162)
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:641)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
at hudson.model.Run.execute(Run.java:1853)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:427)
Caused by: hudson.maven.MavenEmbedderException: Couldn't find maven version information in '/Users/priyanka.kadam/Downloads/apache-maven-3.6.3'. Are you sure that this is a valid maven home?
at hudson.maven.MavenEmbedderUtils.getMavenVersion(MavenEmbedderUtils.java:205)
at hudson.maven.MavenEmbedderUtils.getMavenVersion(MavenEmbedderUtils.java:185)
at hudson.maven.MavenVersionCallable.call(MavenVersionCallable.java:69)
... 8 more
Finished: FAILURE