当我通过Jenkins运行我的pom.xml时出现以下错误并且无法编译该程序。
Building in workspace C:\Users\test\.jenkins\workspace\mavenBuild
Installing C:\Users\test\.jenkins\tools\hudson.model.JDK\C_Program_Files_x86_Java_jdk1.8.0_25\jdk.exe
[C_Program_Files_x86_Java_jdk1.8.0_25] $ C:\Users\test\.jenkins\tools\hudson.model.JDK\C_Program_Files_x86_Java_jdk1.8.0_25\jdk.exe /s ADDLOCAL="ToolsFeature" REBOOT=ReallySuppress INSTALLDIR=C:\Users\test\.jenkins\tools\hudson.model.JDK\C_Program_Files_x86_Java_jdk1.8.0_25 /L C:\Users\test\.jenkins\tools\hudson.model.JDK\install5805825604689233021log
ERROR: Failed to parse POMs
java.io.IOException: Cannot run program "C:\Users\test\.jenkins\tools\hudson.model.JDK\C_Program_Files_x86_Java_jdk1.8.0_25\jdk.exe" (in directory "C:\Users\test\.jenkins\tools\hudson.model.JDK\C_Program_Files_x86_Java_jdk1.8.0_25"): CreateProcess error=740, The requested operation requires elevation
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at hudson.Proc$LocalProc.<init>(Proc.java:245)
at hudson.Proc$LocalProc.<init>(Proc.java:214)
at hudson.Launcher$LocalLauncher.launch(Launcher.java:846)
hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:635)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
at hudson.model.Run.execute(Run.java:1728)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:544)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:405)
Caused by: java.io.IOException: CreateProcess error=740, The requested operation requires elevation
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
at java.lang.ProcessImpl.start(ProcessImpl.java:137)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 22 more
Finished: FAILURE