Re: Set system property by -Dxxx=xxx vs. in java source file. Why it does not work if setting in java source file ?

2014-12-30 Thread 李响
Hi Bernd, Thanks for the reply and I found why. As you mentioned, I put the code in a wrong place in @BeforeClass, the connection has been started before I can set it. THANKS !! The reason why I would like to set that system property into the java code is that only one single @Test needs to set

Re: Set system property by -Dxxx=xxx vs. in java source file. Why it does not work if setting in java source file ?

2014-12-30 Thread Stephen Connolly
You could have multiple executions of surefire and put the tests needing the system property in one class leaving all the rest without. that way the JVM forked for the first execution would not have the system property while the JVM forked for the second would. HTH On 30 December 2014 at 08:03,

Re: maven site plugin 3.4 failing to resolve from reactor when run in release cycle

2014-12-30 Thread Hervé BOUTEMY
what's the mvn command launched? Regards, Hervé Le lundi 29 décembre 2014 22:33:24 Benson Margulies a écrit : This is in release:perform; [INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.4:site (default-site) on project ws-bus: failed to get report for

Re: maven site plugin 3.4 failing to resolve from reactor when run in release cycle

2014-12-30 Thread Benson Margulies
mvn release:perform I've done some archaeology, and this is a very old story with just about all the projects we have at my job; we generally turn off site-deploy from release:perform to avoid it, but I accidently lost that configuration and hit this again. I could capture a -X, but I have no