Can I use the combination of fork, maven.junit.jvmargs, and MAVEN_OPTS simutanousely for a same project? For example, I am adding the maven.junit.jvmargs=-Djava.security.debug=true to the project.properties file and as well as setting MAVEN_OPTS=-Djava.security.policy=c:\temp\myAdditional.policy to the system environemont? [My observation of using this coming is not working as expected, do you know why?]
I also learned that using maven.junit.jvmargs option may not correctly parse (read) all the content of myAdditional.policy file for the JVM. Do you know why? If I am using MAVEN_OPTS, myAdditional.policy's content is correctly read. However, the painfulness is using either of maven.junit.jvmargs or MAVEN_OPTS, my project' test throws java.lang.StackOverFlowError.
Hence, in order to make my project run successfully, I used neither of MAVEN_OPTS nor maven.junit.jvmargs within my project. Intead of us them to additoinal policy information, I move all contents of myAddition.policy to java/jre/lib/security/java.policy.
Sincerely,
Ming Cheung
WebSphere Web Services Developer
Address: IBM, Inc. 11501 Burnet Road, Austin, TX 78758
Tie Line: 678-0733
Email: [EMAIL PROTECTED]
"Arnaud HERITIER" <[EMAIL PROTECTED]>
08/29/2006 05:30 AM
|
|
If you don't fork your tests you have to set these options in the
environment variable MAVEN_OPTS.
If fork is enabled you have to use the property maven.junit.jvmargs
http://maven.apache.org/maven-1.x/plugins/test/properties.html
Arnaud
On 8/28/06, Ming Cheung <[EMAIL PROTECTED]> wrote:
>
>
>
> I am using maven 1.1-beta 3. When I added the
> -Dmaven.junit.jvmargs=-Djava.security.debug=all, I am unable to see the
> debug information. Could someone please tell me how to pass jvm arguments
> [ie. -Djava.security.debug=all] to a test/project/junit test?
>
> Sincerely,
>
> Ming Cheung
> WebSphere Web Services Developer
>
> Address: IBM, Inc. 11501 Burnet Road, Austin, TX 78758
> Tie Line: 678-0733
> Email: [EMAIL PROTECTED]
>
