ubuntu 16.04上maven测试项目的Jenkins构建错误

ubuntu 16.04上maven测试项目的Jenkins构建错误,maven,ubuntu,jenkins,Maven,Ubuntu,Jenkins,我在Ubuntu 16.04上运行maven测试项目时遇到以下错误。当我从终端运行项目时,它运行良好。但我现在需要通过詹金斯检查一下。 我已授予jenkins用户的所有权限。我似乎无法理解此错误的原因,以便进一步排除故障。有人能帮我吗?因为我对Devops和learning还不熟悉 控制台输出 `EnvInject]-加载节点环境变量。 在工作空间中构建/var/lib/jenkins/workspace/Maven测试解析POMs在43944[IceScrum]上建立了TCP套接字$/usr/

我在Ubuntu 16.04上运行maven测试项目时遇到以下错误。当我从终端运行项目时,它运行良好。但我现在需要通过詹金斯检查一下。 我已授予jenkins用户的所有权限。我似乎无法理解此错误的原因,以便进一步排除故障。有人能帮我吗?因为我对Devops和learning还不熟悉

控制台输出
`EnvInject]-加载节点环境变量。
在工作空间中构建/var/lib/jenkins/workspace/Maven测试解析POMs在43944[IceScrum]上建立了TCP套接字$/usr/lib/jvm/java-8-oracle//bin/java-cp/var/lib/jenkins/plugins/maven plugin/WEB-INF/lib/maven33-agent-1.12-alpha-1.jar:/usr/share/maven/boot/plexus-classworlds-2.x.jar:/usr/share/maven/conf/logging jenkins.maven3.agent.Maven33Main/usr/share/maven///var/cache/jenkins/war/WEB-INF/lib/remoting-3.10.jar/var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven33-interceptor-1.12-alpha-1.jar/var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.12-alpha-1.jar通道开始执行maven:-B-f/opt/IceScrum/pom.xml验证[信息]项目扫描`
`[警告]工件org.apache.commons:commons io:jar:1.3.2已重新定位到commons io:commons io:jar:1.3.2[INFO][INFO]——maven资源插件:2.6:resources(默认资源)@cxm7---[警告]使用平台编码(实际上是UTF-8)复制过滤后的资源,即构建依赖于平台!
[INFO]跳过不存在的resourceDirectory/opt/IceScrum/src/main/resources[INFO][INFO]——maven编译器插件:3.5.1:compile(默认编译)@cxm7---[INFO]没有要编译的源[INFO][INFO]——maven资源插件:2.6:testResources(默认测试资源)@cxm7---[WARNING]使用平台编码(实际上是UTF-8)复制过滤后的资源,即构建依赖于平台!
[INFO]跳过不存在的resourceDirectory/opt/IceScrum/src/test/resources[INFO][INFO]——maven编译器插件:3.5.1:testCompile(默认testCompile)@cxm7---[INFO]没有要编译的源代码[INFO][INFO]——maven surefire插件:2.17:test(默认测试)@cxm7---[INFO]没有要运行的测试。
[信息]Surefire报告目录:/opt/IceScrum/target/Surefire报告`
`[错误]无法在项目cxm7上执行目标org.apache.maven.plugins:maven surefire plugin:2.17:test(默认测试):创建分叉属性文件时出错:权限被拒绝->[Help 1][ERROR][ERROR ERROR]若要查看错误的完整堆栈跟踪,请使用-e开关重新运行maven。
[错误]使用-X开关重新运行Maven以启用完整调试日志记录。
[JENKINS]存档/opt/IceScrum/pom.xml到cxm/cxm7/0.0.1-SNAPSHOT/cxm7-0.0.1-SNAPSHOT.pom
/opt/IceScrum/pom.xml不在/var/lib/jenkins/workspace/Maven Test/opt/IceScrum/内;将在单独的过程中存档[ERROR][ERROR]有关错误和可能的解决方案的更多信息,请阅读以下文章:
[错误][帮助1]http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
通道停止
完成:失败`
在我使用-X开关运行脚本之后。我得到了以下结果

ApacheMaven 3.3.9
Maven主页:/usr/share/Maven
Java版本:1.8.0\u 151,供应商:Oracle Corporation Java home:/usr/lib/jvm/Java-8-Oracle/jre默认语言环境:en\u-IN,平台编码:UTF-8操作系统名称:“linux”,版本:“4.4.0-101-generic”,arch:“amd64”,系列:“unix”
[DEBUG]填充类领域maven.api[INFO]错误堆栈跟踪已打开。[DEBUG]从/usr/share/maven/conf/settings.xml读取全局设置
[DEBUG]从/root/.m2/settings.xml读取用户设置[DEBUG]从/usr/share/maven/conf/toolschains.xml读取全局工具链[DEBUG]使用位于/root/.m2/repository[DEBUG]的本地存储库从/root/.m2/toolschains.xml读取用户工具链使用优先级为10.0的manager EnhancedLocalRepositoryManager for/root/.m2/repository[INFO]扫描项目
[DEBUG]project org.apache.maven的扩展域:standalone pom:pom:1:(无)[DEBUG]从ClassRealm[plexus.core,parent:null][INFO]`[INFO]BUILD FAILURE``[ERROR]指定的目标需要执行一个项目,但此目录(/home/cyberadmin)中没有pom。请验证您从正确的目录调用了Maven。->[Help 1]org.apache.maven.lifecycle.MissingProjectException:您指定的目标需要执行一个项目,但此目录(/home/cyberadmin)中没有POM。
请验证您从正确的目录调用了maven。
位于org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:84)
在org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
在org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
位于org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
位于org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
位于org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
位于org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)处
位于sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)中
位于java.lang.reflect.Method.invoke(Method.java:498)
位于org.codehaus.plexus.classworlds.launcher.launcher.launchEnhanced(launcher.java:289)
位于org.codehaus.plexus.classworlds.launcher.launcher.launch(launcher.java:229)
位于org.codehaus.plexus.classworlds.launcher.launcher.mainWithExitCode(launcher.java:415)
位于org.codehaus.plexus.classworlds.launcher.launcher.main(launcher.java:356)
[错误]有关错误和可能的解决方案的更多信息,请阅读以下文章:
[错误][帮助1
`EnvInject] - Loading node environment variables.
Building in workspace /var/lib/jenkins/workspace/Maven Test Parsing POMs                      Established TCP socket on 43944 [IceScrum] $ /usr/lib/jvm/java-8-oracle    //bin/java -cp /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven33-agent-1.12-alpha-1.jar:/usr/share/maven/boot/plexus-classworlds-2.x.jar:/usr/share/maven/conf/logging jenkins.maven3.agent.Maven33Main /usr/share/maven/ /var/cache/jenkins/war/WEB-INF/lib/remoting-3.10.2.jar /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven33-interceptor-1.12-alpha-1.jar /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.12-alpha-1.jar 43944 <===[JENKINS REMOTING CAPACITY]===>channel started Executing Maven:  -B -f /opt/IceScrum/pom.xml verify [INFO] Scanning for projects...`

`[WARNING] The artifact org.apache.commons:commons-io:jar:1.3.2 has been relocated to commons-io:commons-io:jar:1.3.2 [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ cxm7 --- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /opt/IceScrum/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @ cxm7 --- [INFO] No sources to compile [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ cxm7 --- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /opt/IceScrum/src/test/resources [INFO] [INFO] --- maven-compiler-plugin:3.5.1:testCompile (default-testCompile) @ cxm7 --- [INFO] No sources to compile [INFO] [INFO] --- maven-surefire-plugin:2.17:test (default-test) @ cxm7 --- [INFO] No tests to run.
[INFO] Surefire report directory: /opt/IceScrum/target/surefire-reports`

`[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on project cxm7: Error creating properties files for forking: Permission denied -> [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.
[JENKINS] Archiving /opt/IceScrum/pom.xml to cxm/cxm7/0.0.1-SNAPSHOT/cxm7-0.0.1-SNAPSHOT.pom
/opt/IceScrum/pom.xml is not inside /var/lib/jenkins/workspace/Maven Test/opt/IceScrum/; will archive in a separate pass [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/MojoFailureException
channel stopped
Finished: FAILURE`