[ https://issues.apache.org/jira/browse/SUREFIRE-1035?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tibor Digana closed SUREFIRE-1035. ---------------------------------- Resolution: Won't Fix It is not surefire bug. MAVEN_OPTS or JAVA_OPTS? Instead of fixing this issue use simple syntax {code} <argLine>${env.MAVEN_OPTS}</argLine> {code} > Use the same settings as the maven JVM when forking a JVM > --------------------------------------------------------- > > Key: SUREFIRE-1035 > URL: https://issues.apache.org/jira/browse/SUREFIRE-1035 > Project: Maven Surefire > Issue Type: Improvement > Components: Maven Surefire Plugin, process forking > Affects Versions: 2.16 > Reporter: Jifeng Zhang > Assignee: Tibor Digana > > When forking a JVM, JVM settings are not inherited from MAVEN_OPTS. And by > default, the forked JVM is a new instance of the same JVM used to start Maven. > Were there strong reasons for not using the same JVM settings as the > "parental" JVM, but using argLine explicitly? > I think for the users that are not aware of JVM forking, they would expect > the same JVM settings are used when running surefire plugin. Just like we > assumed it is the same JVM (new instance) forked as the one Maven runs on, > which was not true until version 2.3, and was fixed in > [SUREFIRE-135|https://jira.codehaus.org/browse/SUREFIRE-135] > So I propose when forking a JVM, the same settings from JVM that maven runs > on, is used; unless there is an argLine explicitly overwrites the settings. -- This message was sent by Atlassian JIRA (v6.3.4#6332)