336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.
메이븐에서 테스트에 대한 보고서를 만들어주는 플러그인 surefire에 버그가 있습니다.
JIRA : http://jira.codehaus.org/browse/SUREFIRE-341
문제
pom.xml에 surefire 관한 설정을 한 후, 메이븐 빌드 실행 중 surefire:test 단계에서 아래와 같은 에러 메세지가 나옵니다.
org.apache.maven.surefire.booter.SurefireExecutionException: Unable to instantiate and execute Surefire; nested exception is java.lang.ClassNotFoundException: org.apache.maven.surefire.Surefire
java.lang.ClassNotFoundException: org.apache.maven.surefire.Surefire
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.apache.maven.surefire.booter.IsolatedClassLoader.loadClass(IsolatedClassLoader.java:103)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:281)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
원인
위 지라의 보고내용과 제 경우를 볼 때 로컬 저장소 경로에 영문 외의 멀티 바이트 문자가 들어있는 경우 클래스 로딩을 하지 못하는 것으로 보입니다.
해결책
기본적으로 지정된 로컬 저장소 C:\Documents and Settings\{사용자명}\.m2 를 영문만으로 이루어진 다른 경로로 바꾸어 주면 됩니다.
로컬 저장소 위치 바꾸는 방법
메이븐을 직접 설치하여 콘솔에서 사용하는 경우에는 "메이븐 홈 디렉토리/conf/settings.xml"의 <localRepository></localRepository> 태그 안의 값을 알맞게 고쳐주면 됩니다.
이클립스에서 subeclipse 플러그인(현 2007/11/07일 최신버젼 기준)을 이용하는 경우에는 Window -> Preferences -> Maven -> Global Settings File 에서 위 localRepository가 재설정 된 settings.xml 파일을 선택해주면 됩니다.
JIRA : http://jira.codehaus.org/browse/SUREFIRE-341
문제
pom.xml에 surefire 관한 설정을 한 후, 메이븐 빌드 실행 중 surefire:test 단계에서 아래와 같은 에러 메세지가 나옵니다.
org.apache.maven.surefire.booter.SurefireExecutionException: Unable to instantiate and execute Surefire; nested exception is java.lang.ClassNotFoundException: org.apache.maven.surefire.Surefire
java.lang.ClassNotFoundException: org.apache.maven.surefire.Surefire
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.apache.maven.surefire.booter.IsolatedClassLoader.loadClass(IsolatedClassLoader.java:103)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:281)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
원인
위 지라의 보고내용과 제 경우를 볼 때 로컬 저장소 경로에 영문 외의 멀티 바이트 문자가 들어있는 경우 클래스 로딩을 하지 못하는 것으로 보입니다.
해결책
기본적으로 지정된 로컬 저장소 C:\Documents and Settings\{사용자명}\.m2 를 영문만으로 이루어진 다른 경로로 바꾸어 주면 됩니다.
로컬 저장소 위치 바꾸는 방법
메이븐을 직접 설치하여 콘솔에서 사용하는 경우에는 "메이븐 홈 디렉토리/conf/settings.xml"의 <localRepository></localRepository> 태그 안의 값을 알맞게 고쳐주면 됩니다.
이클립스에서 subeclipse 플러그인(현 2007/11/07일 최신버젼 기준)을 이용하는 경우에는 Window -> Preferences -> Maven -> Global Settings File 에서 위 localRepository가 재설정 된 settings.xml 파일을 선택해주면 됩니다.
WRITTEN BY
- 차민창
르세상스 엔지니어가 사회를 이끌어나가는 상상을 하며!
,