-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
jenkins version 2.90
maven version 3.3.9
linux version 2.6.32-431.el6.x86_64
Use maven build java project ,I am sure there is a pom.xml file in this diectory , but I get error :
[Pipeline] withMaven[withMaven] Options: [] [withMaven] Available options: [withMaven] using JDK installation JDK-1.8 [withMaven] using Maven installation 'maven-3.3.9' [Pipeline] {[Pipeline] sh[pipeline_job_for_SCM] Running shell script + mvn clean package ----- withMaven Wrapper script ----- Picked up JAVA_TOOL_OPTIONS: -Dmaven.ext.class.path="/data/.jenkins/workspace/.../pipeline_job_for_test_env/pipeline_job_for_SCM@tmp/withMavena780b9e4/pipeline-maven-spy.jar" -Dorg.jenkinsci.plugins.pipeline.maven.reportsFolder="/data/.jenkins/workspace/.../pipeline_job_for_test_env/pipeline_job_for_SCM@tmp/withMavena780b9e4" Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-11T00:41:47+08:00) Maven home: /opt/module/maven Java version: 1.8.0_101, vendor: Oracle Corporation Java home: /usr/java/jdk1.8.0_101/jre Default locale: en_US, platform encoding: ANSI_X3.4-1968 OS name: "linux", version: "2.6.32-431.el6.x86_64", arch: "amd64", family: "unix" [WARNING] [WARNING] Some problems were encountered while building the effective settings [WARNING] Unrecognised tag: 'enabled' (position: START_TAG seen ...</id> \n <enabled>... @71:18) @ /root/.m2/settings.xml, line 71, column 18 [WARNING] [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.187 s [INFO] Finished at: 2018-09-27T17:19:15+08:00 [INFO] Final Memory: 16M/966M [INFO] ------------------------------------------------------------------------ [WARNING] The requested profile "downloadSources" could not be activated because it does not exist. [ERROR] {color:#de350b}The goal you specified requires a project to execute but there is no POM in this directory{color} ({color:#de350b}/data/.jenkins/workspace/???????????????????????????????????????/pipeline_job_for_test_env/pipeline_job_for_SCM{color}). Please verify you invoked Maven from the correct directory. -> [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/MissingProjectException][Pipeline] }