How come the Test Classpath (same as maven-surefire-plugin classpathElements?) is different when I run 'mvn test -X' and 'mvn install -X'? The funny thing is the JUnit tests execute correct when running 'mvn test' and NOT when running 'mvn install'. I'm not sure if this is the problem but my tests depend on some resources (Spring bean definition files) where the classpath differ. When running 'mvn test' the classpath looks like: "[some other paths], C:\dev\SalesTool\ST2.0_WS2\ST2.0\configuration\target\classes, [some other paths]" When running 'mvn install' the classpath looks like: "[some other paths], C:\dev\SalesTool\ST2.0_WS2\ST2.0\configuration\target\configuration-0.1.jar, [some other paths]" Both paths exists and contains my Spring config, but as far as I can see this is the only difference between the two Maven goals. Can I add a path to the Test Classpath just to make sure? Does anyone else have this problem?
thanks -Martin -- View this message in context: http://www.nabble.com/-M2--different-classpathElements-in-test-phases-tf2507245.html#a6990839 Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
