Re: Adding a directory to maven-surefire-plugin's classpath

2009-05-01 Thread Kalle Korhonen
Ah all the wonderful tricks people sometimes resort to. Maybe setting the systemproperties for surefire then? http://maven.apache.org/plugins/maven-surefire-plugin/examples/system-properties.html- though no guarantees how it behaves. Kalle On Fri, May 1, 2009 at 2:40 PM, Andrew Bayer wrote: >

Re: Adding a directory to maven-surefire-plugin's classpath

2009-05-01 Thread Andrew Bayer
Whoops - left off "classpath" from the subject. A. On Fri, May 1, 2009 at 1:27 PM, Andrew Bayer wrote: > Hi - > > I'm working on transitioning a large multi-module project from Ant to > Maven, and have encountered a truly bizarre use case for Surefire. The unit > tests in a number of the module

Re: Adding a directory to maven-surefire-plugin's classpath

2009-05-01 Thread Andrew Bayer
Sadly, no - that gets passed to the JVM running the tests. The problem here is that I need it in the classpath of the Maven JVM itself - Surefire's calling junit's Request.aClass(testClass).getRunner() on our test classes before it forks. Really, I need to get the developer to rewrite the code, but

Re: Adding a directory to maven-surefire-plugin's classpath

2009-05-01 Thread Kalle Korhonen
Hey Andrew, would these help? org.apache.maven.plugins maven-surefire-plugin always target -Djava.library.path=lib ${project.build.directory}/conf Kalle PS. And y