jvm - Maven 2.1.0 not passing on system properties to Java virtual machine -


We use the command line to pass system properties on the Java virtual machine while running our build on the Linux box. It worked very well in 2.0.9, as we upgraded to 2.1.0, it has been completely stopped working. System properties do not just make Java virtual machines.

I have created a small test project and in fact it does not work at all.

It should work fine with 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 just does it

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

I do not think this is a problem in Maven or Suffey plug-in. Otherwise there are definitely different behaviors. It looks like now, when surely forked, parents will not take all the system properties from JVM.

That is why you should pass whatever system property you want for logic. Therefore, both should work

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

or

  mvn2.1 exam - darjline = "--desist.txt.property = test"  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -