java.lang.reflect.InvocationTargetException和DEFAULT_USER_SETTINGS_FILE

时间:2017-08-01 12:00:38

标签: maven jenkins selenium-webdriver

当我在Jenkins中尝试构建maven项目来执行selenium脚本时,我得到了java.lang.reflect.InvocationTargetException和DEFAULT_USER_SETTINGS_FILE以下内容 Sun.reflect.DeativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)的java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Method.java:498)org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330)org.codehaus.plexus.classworlds.launcher.Launcher。在sun.reflect.NativeMethodAccessorImpl.invoke的sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)的jenkins.maven3.agent.Maven31Main.launch(Maven31Main.java:181)上发布(Launcher.java:238)(NativeMethodAccessorImpl.java: 62)在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:498)at hudson.maven.Maven3Builder.call(Maven3Builder.java:136)at at hudson.maven.Maven3Builder.call(Maven3Builder.java:71)at hudson.remoting.UserRequest.perform (UserRequest.java:120)hudson.remoting.UserRequest.perform(UserRequest.java:48)at hudson.remoting.Request $ 2.run(Request.java:332)at hudson.remoting.InterceptingExecutorService $ 1.call(InterceptingExecutorService。 java:68)at java.util.concurrent.FutureTask.run(FutureTask.java:266)at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)at java.util.concurrent.ThreadPoolExecutor $ Worker.run (ThreadPoolExecutor.java:617)java.lang.Thread.run(Thread.java:748)引起:java.lang.NoSuchFieldError:org.apache.maven.cli.DefaultMavenExecutionRequestBuilder.settings中的DEFAULT_USER_SETTINGS_FILE(DefaultMavenExecutionRequestBuilder.java:653) )org.apache.maven.cli.DefaultMavenExecutionRequestBuilder.getMavenExecutionRequest(DefaultMavenExecutionRequestBuilder.java:171)org.jvnet.hudson.maven3.launcher.Maven31Launcher.getMavenExecutionRequest(maven31Launcher.java:153)org.jvnet.hudson.maven3。 launcher.Maven31Launcher.main(Maven31Launcher.java:130)... 21 mor e channel stopped ERROR:无法在hudson.maven.Maven3Builder.call(Maven3Builder.java)的hudson.maven.Maven3Builder.call(Maven3Builder.java:180)解析POM hudson.util.IOException2:java.lang.reflect.InvocationTargetException。 71)at hudson.remoting.UserRequest.perform(UserRequest.java:120)at hudson.remoting.UserRequest.perform(UserRequest.java:48)at hudson.remoting.Request $ 2.run(Request.java:332)at hudson .remoting.InterceptingExecutorService $ 1.call(InterceptingExecutorService.java:68)at java.util.concurrent.FutureTask.run(FutureTask.java:266)at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)at java .util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:617)at java.lang.Thread.run(Thread.java:748)at ......远程调用Channel to Maven [C:\ Program Files \ Java \ jdk1.8.0_131 / bin / java,-cp,C:\ Users \ User.jenkins \ plugins \ maven-plugin \ WEB-INF \ lib \ maven31-agent-1.5.jar; F:\ sambaselenium \ jarfiles中\ Apache的行家-3.5.0 \启动\丛,classworlds -2.5.2.jar; F:\ sambaselenium \ jarfiles \ apache-maven-3.5.0 / conf / logging,jenkins.maven3.agent.Maven31Main,F:\ sambaselenium \ jarfiles \ apache-maven-3.5.0,C :\ Users \ User.jenkins \ war \ WEB-INF \ lib \ remoting-2.56.jar,C:\ Users \ User.jenkins \ plugins \ maven-plugin \ WEB-INF \ lib \ maven31-interceptor-1.5.jar ,C:\ Users \ User.jenkins \ plugins \ maven-plugin \ WEB-INF \ lib \ maven3-interceptor-commons-1.5.jar,53935](本机方法),位于hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java) :1416)hudson.remoting.UserResponse.retrieve(UserRequest.java:220)at hudson.remoting.Channel.call(Channel.java:781)at hudson.maven.ProcessCache $ MavenProcess.call(ProcessCache.java:161) at hudson.maven.MavenModuleSetBuild $ MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:840)at hudson.model.AbstractBuild $ AbstractBuildExecution.run(AbstractBuild.java:534)at hudson.model.Run.execute(Run.java:1738)at at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)at hudson.model.ResourceController.execute(Reso urceController.java:98)at hudson.model.Executor.run(Executor.java:410)由sun.reflect.NativeMethodAccessorImpl的sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)引起的java.lang.reflect.InvocationTargetException。在hudson.maven.Maven3Builder.call(Maven3Builder)的java.lang.reflect.Method.invoke(Method.java:498)的sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)中调用(NativeMethodAccessorImpl.java:62) .java:136)at hudson.maven.Maven3Builder.call(Maven3Builder.java:71)at hudson.remoting.UserRequest.perform(UserRequest.java:120)at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request $ 2.run(Request.java:332)at hudson.remoting.InterceptingExecutorService $ 1.call(InterceptingExecutorService.java:68)at java.util.concurrent.FutureTask.run(FutureTask.java:266)at at Java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolE) xecutor.java:617)at java.lang.Thread.run(Thread.java:748)引起:java.lang.Exception:jenkins.maven3.agent.Maven31Main.launch中的java.lang.reflect.InvocationTargetException(Maven31Main。 java:184)... 14更多引起:sun.reflect的sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)的sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)的java.lang.reflect.InvocationTargetException 。在org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330)的java.lang.reflect.Method.invoke(Method.java:498)中删除了MethodAethorAccess.Iv.Invoke(DelegatingMethodAccessorImpl.java:43) org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)at jenkins.maven3.agent.Maven31Main.launch(Maven31Main.java:181)... 14更多引起:java.lang.NoSuchFieldError :org.apache.maven.cli中的orga.apache.maven.cli.DefaultMavenExecutionRequestBuilder.settings(DefaultMavenExecutionRequestBuilder.java:653)中的DEFAULT_USER_SETTINGS_FILE。 DefaultMavenExecutionRequestBuilder.getMavenExecutionRequest(DefaultMavenExecutionRequestBuilder.java:171)org.jvnet.hudson.maven3.launcher.Maven31Launcher.getMavenExecutionRequest(Maven31Launcher.java:153)org.jvnet.hudson.maven3.launcher.Maven31Launcher.main(Maven31Launcher.java: 130)... 21更多完成:失败

我的詹金斯版本是1.658 maven是3.5.0和jdk 1.8 我配置好一切,我无法构建

0 个答案:

没有答案