Hello. I'm having trouble when building CXF. I follow instructions from http://cxf.apache.org/building.html.
When I execute "mvn install" (this is not the first time I do this), I get the following error message and stack trace (see below). Can somebody please help me with building CXF since I'd like to do some modifications to it. But the first step would be to build a clean unmodified version of it. I checked out the source code using the git plugin for eclipse. The version I have has the label '19581f4d217be2e52b4c611e48f8674aa839ecf9' (a commit by Sergey Beryozkin, 'Re-enabling a couple of UriBuilderTests', git-svn-id: https://svn.apache.org/repos/asf/cxf/trunk@1508424) Thanks for any help! [snip -- many lines of output cut] [INFO] Apache CXF System Tests for Maven Plugins ......... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 20.218s [INFO] Finished at: Tue Jul 30 14:59:01 CEST 2013 [INFO] Final Memory: 72M/175M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.14:test (default-test) on project cxf-api: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.14:test failed: There was an error in the forked process [ERROR] java.lang.NoClassDefFoundError: AnnotationVisitor [ERROR] at java.lang.Class.getDeclaredMethods0(Native Method) [ERROR] at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) [ERROR] at java.lang.Class.getDeclaredMethods(Class.java:1791) [ERROR] at org.apache.maven.surefire.common.junit4.JUnit4TestChecker.checkforTestAnnotatedMethod(JUnit4TestChecker.java:85) [ERROR] at org.apache.maven.surefire.common.junit4.JUnit4TestChecker.isValidJUnit4Test(JUnit4TestChecker.java:74) [ERROR] at org.apache.maven.surefire.common.junit4.JUnit4TestChecker.accept(JUnit4TestChecker.java:51) [ERROR] at org.apache.maven.surefire.util.DefaultScanResult.applyFilter(DefaultScanResult.java:97) [ERROR] at org.apache.maven.surefire.junit4.JUnit4Provider.scanClassPath(JUnit4Provider.java:206) [ERROR] at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:103) [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [ERROR] at java.lang.reflect.Method.invoke(Method.java:597) [ERROR] at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:208) [ERROR] at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:158) [ERROR] at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:86) [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153) [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:95) [ERROR] Caused by: java.lang.ClassNotFoundException: AnnotationVisitor [ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:202) [ERROR] at java.security.AccessController.doPrivileged(Native Method) [ERROR] at java.net.URLClassLoader.findClass(URLClassLoader.java:190) [ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:306) [ERROR] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) [ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:247) [ERROR] ... 18 more
