maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edward eric pedersson <cpsmadn...@googlemail.com>
Subject Re: maven 2.1.0 not passing on system properties to java virtual machine
Date Mon, 20 Apr 2009 11:57:54 GMT
yes you are right.

It seems 2.4.3 of the plugin is broken but 2.4.2 works just fine.

will lock down the version is the pom.

thanks for your help

2009/4/20 Stephen Connolly <stephen.alan.connolly@gmail.com>:
> Have you locked down the version of surefire you are using in your pom?
>
> if you have not locked it down, then you will be picking up a newer
> version of surefire with 2.1.0.
>
> AFAIK, a newer version of surefire has issues passing system
> properties to the forked process.
>
> in any case you should always lock down the versions of plugins that
> you are using or else your build is not fully reproducible
>
> -Stephen
>
> 2009/4/20 edward eric pedersson <cpsmadness@googlemail.com>:
>> 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. [it got
>> blocked so sending without attachment]
>>
>> 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
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>



-- 


-- e

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message