I have a problem runing tests under m2. I can compile my sources successfully but for some reason runing tests is a problem:
here is my output with -X flag on .... [INFO] Setting reports dir: c:\eclipse\workspace\domain-driven-aj\target/surefire-reports [DEBUG] Test Classpath : [DEBUG] c:\eclipse\workspace\domain-driven-aj\target\test-classes [DEBUG] c:\eclipse\workspace\domain-driven-aj\target\classes [DEBUG] c:\eclipse\workspace\domain-driven-aj\target\classes [DEBUG] c:\eclipse\workspace\domain-driven-aj\target\test-classes [DEBUG] C:\Documents and Settings\alex\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar [DEBUG] C:\Documents and Settings\alex\.m2\repository\org\springframework\spring-mock\2.0-m2\spring-mock-2.0-m2.jar [DEBUG] C:\Documents and Settings\alex\.m2\repository\org\springframework\spring\2.0-m2\spring-2.0-m2.jar [DEBUG] Adding to surefire test classpath: C:\Documents and Settings\alex\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar [DEBUG] Adding to surefire test classpath: C:\Documents and Settings\alex\.m2\repository\org\apache\maven\surefire\surefire\1. refire-1.5.2.jar [DEBUG] Adding to surefire test classpath: C:\Documents and Settings\alex\.m2\repository\org\apache\maven\surefire\surefire-bo .5.2\surefire-booter-1.5.2.jar [DEBUG] Adding to surefire test classpath: C:\cygwin\usr\local\maven-2.0.2\core\plexus-utils-1.1.jar ------------------------------------------------------- T E S T S ------------------------------------------------------- [surefire] Running org.domaindriven.service.caching.ThreadLocalCacheTest [surefire] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.13 sec [surefire] Running org.domaindriven.service.prettyprint.CircularReferencePrettyPrintServiceTest [surefire] Tests run: 2, Failures: 0, Errors: 2, Time elapsed: 0.05 sec <<<<<<<< FAILURE !! [surefire] Running org.domaindriven.service.prettyprint.PrettyPrintServiceTest [surefire] Tests run: 6, Failures: 0, Errors: 6, Time elapsed: 0.071 sec <<<<<<<< FAILURE !! [surefire] Running org.domaindriven.utils.ImmutableMapTest [surefire] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.01 sec Results : [surefire] Tests run: 12, Failures: 0, Errors: 8 .... the dependency on spring-m2 was declared and I see m2 downloading it. the errors I get are all the same java.lang.NoClassDefFoundError at org.springframework.beans.BeanUtils.getPropertyDescriptors(BeanUtils.java:364) at org.domaindriven.service.prettyprint.DefaultOutputProcessorProvider.isJavaBean(DefaultOutputProcessorProvider.java:100) at org.domaindriven.service.prettyprint.DefaultOutputProcessorProvider.participateInCircularExclusion(DefaultOutputProcessorProvider.java:83) at org.domaindriven.service.prettyprint.JavaBeanPrettyPrintService.print(JavaBeanPrettyPrintService.java:110) at org.domaindriven.service.prettyprint.JavaBeanPrettyPrintService.print(JavaBeanPrettyPrintService.java:103) at org.domaindriven.service.prettyprint.PrettyPrintServiceTest.testPrimitiveArray(PrettyPrintServiceTest.java:42) 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:585) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) 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:585) at org.apache.maven.surefire.battery.JUnitBattery.executeJUnit(JUnitBattery.java:242) at org.apache.maven.surefire.battery.JUnitBattery.execute(JUnitBattery.java:216) at org.apache.maven.surefire.Surefire.executeBattery(Surefire.java:215) at org.apache.maven.surefire.Surefire.run(Surefire.java:163) at org.apache.maven.surefire.Surefire.run(Surefire.java:87) 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:585) at org.apache.maven.surefire.SurefireBooter.runTestsInProcess(SurefireBooter.java:285) at org.apache.maven.surefire.SurefireBooter.run(SurefireBooter.java:201) at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:366) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:531) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) 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:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) The class above is a class in spring-m2. Does anyone have a clue as to what's wrong? -- Thanks, Alex. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]