2014/01/06 10:31

hudson 사용시 maven 빌드 하는 경우 발생가능한 에러 Architect



hudson을 세팅하다가 발생한 에러,, 

-----------------------------------------------
===>Executing Maven:  -B -f /data/hudson/jobs/easyframe-portal/workspace/pom.xml clean compile pmd:pmd install cargo:redeployjava.lang.reflect.InvocationTargetException	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at java.lang.reflect.Method.invoke(Method.java:597)	at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330)	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)	at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:146)	at hudson.maven.Maven3Builder.call(Maven3Builder.java:124)	at hudson.maven.Maven3Builder.call(Maven3Builder.java:71)	at hudson.remoting.UserRequest.perform(UserRequest.java:114)	at hudson.remoting.UserRequest.perform(UserRequest.java:48)	at hudson.remoting.Request$2.run(Request.java:283)	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)	at java.util.concurrent.FutureTask.run(FutureTask.java:138)	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)	at java.lang.Thread.run(Thread.java:662)Caused by: java.lang.NoClassDefFoundError: org/apache/maven/cli/MavenLoggerManager	at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:73)	... 18 moreCaused by: java.lang.ClassNotFoundException: org.apache.maven.cli.MavenLoggerManager	at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)	at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:259)	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:242)	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:227)	... 19 morechannel stoppedERROR: Failed to parse POMshudson.util.IOException2: java.lang.reflect.InvocationTargetException	at hudson.maven.Maven3Builder.call(Maven3Builder.java:189)	at hudson.maven.Maven3Builder.call(Maven3Builder.java:71)	at hudson.remoting.UserRequest.perform(UserRequest.java:114)	at hudson.remoting.UserRequest.perform(UserRequest.java:48)	at hudson.remoting.Request$2.run(Request.java:283)	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)	at java.util.concurrent.FutureTask.run(FutureTask.java:138)	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)	at java.lang.Thread.run(Thread.java:662)Caused by: java.lang.Exception: java.lang.reflect.InvocationTargetException	at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:150)	at hudson.maven.Maven3Builder.call(Maven3Builder.java:124)	... 10 moreCaused by: java.lang.reflect.InvocationTargetException	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at java.lang.reflect.Method.invoke(Method.java:597)	at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330)	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)	at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:146)	... 11 moreCaused by: java.lang.NoClassDefFoundError: org/apache/maven/cli/MavenLoggerManager	at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:73)	... 18 moreCaused by: java.lang.ClassNotFoundException: org.apache.maven.cli.MavenLoggerManager	at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)	at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:259)	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:242)	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:227)	... 19 more[DEBUG] Skipping watched dependency update for build: easyframe-portal #9 due to result: FAILUREFinished: FAILURE
-----------------------------------------------

화려하기도 하여라.;;;

apache-maven 3.1.1 최신버전이 설치되어 있는 상태였고,
hudson은 2.1.1 버전을 사용하고 있다. 

구글링을 하다보니, 아래 사이트에서 버전을 변경해 보라는 답변을 확인,
maven 3.0.5로 변경하니 빌드 성공..
(http://www.eclipse.org/forums/index.php/t/628121/)

근본적인 해결책은 아니지만,
현재 3.1.1 버전에 문제가 있긴 한듯.. 


덧글

댓글 입력 영역