You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by edward eric pedersson <cp...@googlemail.com> on 2009/04/20 11:38:23 UTC

maven not passing on java system properties

Hi

We use the command line to pass on system properties to the java
virtual machine when running our Hudson builds on a Linux box. It used
to work quite well in 2.0.9 by since we upgraded to 2.1.0 it has
stopped working altogether. The system properties just never make it
to the java virtual machine.

I have created a small test project and indeed it does not work at
all. I have attached it in case you want to give it a go.

This should work just fine with maven 2.0.9

mvn2.0.9 -Dsystem.test.property=test test

But this will fail

mvn2.1 -Dsystem.test.property=test test

The java code simply does this

assertTrue( System.getProperty("system.test.property") != null);


Any thoughts
-- 


-- e