On Fri, Apr 15, 2011 at 4:42 PM, bvahdat <babak.vah...@swissonline.ch> wrote: > Hi Claus, > >> Are there anything from 2.8 you need ASAP? > > not really, we're already riding on 2.7.1. and that's all good for the > moment. > > Still got another question: since weeks while running "mvn test" on the > checked out trunk on my box, it fails by the tests of "Camel :: Test" > component like: > > ------------------------------------------------------------------------------- > Test set: org.apache.camel.test.patterns.DebugJUnit4Test > ------------------------------------------------------------------------------- > Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.359 sec > <<< FAILURE! > testDebugger(org.apache.camel.test.patterns.DebugJUnit4Test) Time elapsed: > 0.312 sec <<< ERROR! > java.lang.NoClassDefFoundError: > org/apache/camel/core/xml/CamelJMXAgentDefinition > at > org.apache.camel.spring.CamelBeanPostProcessor.canPostProcessBean(CamelBeanPostProcessor.java:160) > > The reason for my understanding is clear, as "camel-test" has a compile > dependency to "camel-spring" which has a dependency to "camel-core-xml", > however of a "provided scope" type. So that 'CamelJMXAgentDefinition' > doesn't exist on the classpath while the test is running, as the provided > scope dependencies are not transitiv. > > However when you run the same test case inside an IDE (like eclipse) of > course that behaviour doesn't appear anymore, as eclipse and also "mvn > eclipse:eclipse" has no notion of a "maven's provided scope", so that > "camel-core-xml" comes into the list of projects "camel-spring" can see on > it's classpath, see > http://camel.465427.n5.nabble.com/file/n4305723/eclipse.jpg eclipse.jpg . > > Am I missing something? >
Thats a bit odd. What OS and Maven are you using? Works fine for me davsclaus:/workspace/camel-git/components/camel-test$ mvn --version Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100) Maven home: /opt/apache-maven-3.0.3 Java version: 1.6.0_24, vendor: Apple Inc. Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Default locale: en_US, platform encoding: MacRoman OS name: "mac os x", version: "10.6.7", arch: "x86_64", family: "mac" If I cd components/camel-itest And do a mvn:test ------------------------------------------------------- T E S T S ------------------------------------------------------- Running org.apache.camel.test.patterns.DebugJUnit4Test Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.333 sec Running org.apache.camel.test.patterns.DebugTest Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.744 sec Running org.apache.camel.test.patterns.FilterJUnit4Test Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.584 sec Running org.apache.camel.test.patterns.FilterTest Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.569 sec Running org.apache.camel.test.patterns.IsMockEndpointsFileTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.47 sec Running org.apache.camel.test.patterns.IsMockEndpointsJUnit4Test Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.317 sec Running org.apache.camel.test.patterns.IsMockEndpointsTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.302 sec Results : Tests run: 11, Failures: 0, Errors: 0, Skipped: 0 [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 11.580s [INFO] Finished at: Fri Apr 15 16:50:15 CEST 2011 [INFO] Final Memory: 9M/81M [INFO] ------------------------------------------------------------------------ > Regards, Babak > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-release-2-8-tp4305340p4305723.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Claus Ibsen ----------------- FuseSource Email: cib...@fusesource.com Web: http://fusesource.com CamelOne 2011: http://fusesource.com/camelone2011/ Twitter: davsclaus Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/