Jenkins构建控制台输出错误-找不到Maven版本信息

时间:2019-12-22 13:35:36

标签: maven selenium jenkins testng

我在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

0 个答案:

没有答案