[
https://jira.codehaus.org/browse/MNG-5139?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Scholte closed MNG-5139.
-------------------------------
Resolution: Not A Bug
Assignee: Robert Scholte
{{MAVEN_OPTS}} are used for passing options to the java executable ( try:
{{java -?}} ). By putting them behind the jar, they become arguments for the
Maven main-method.
So if it works with your adjustments, then those values are actually Maven
arguments and not java options for Maven.
> MAVEN_OPTS are not taked into account in Windows 7
> --------------------------------------------------
>
> Key: MNG-5139
> URL: https://jira.codehaus.org/browse/MNG-5139
> Project: Maven 2 & 3
> Issue Type: Bug
> Components: Command Line
> Affects Versions: 3.0.3
> Environment: Apache Maven 3.0.3 (r1075438; 2011-02-28 14:31:09-0300)
> Maven home: C:\productos\apache-maven-3.0.3
> Java version: 1.6.0_26, vendor: Sun Microsystems Inc.
> Java home: C:\Program Files\Java\jdk1.6.0_26\jre
> Default locale: es_AR, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"
> Reporter: Gabriel Belingueres
> Assignee: Robert Scholte
> Priority: Minor
>
> Hi,
> The mvn.bat file does not take into account the MAVEN_OPTS environment
> variable, but it does if I add it to the command line (ex. mvn %MAVEN_OPTS%).
> I fixed it by changing this line of the script:
> %MAVEN_JAVA_EXE% %MAVEN_OPTS% -classpath %CLASSWORLDS_JAR%
> "-Dclassworlds.conf=%M2_HOME%\bin\m2.conf" "-Dmaven.home=%M2_HOME%"
> %CLASSWORLDS_LAUNCHER% %MAVEN_CMD_LINE_ARGS%
> to this (changed the location of the env var only):
> %MAVEN_JAVA_EXE% -classpath %CLASSWORLDS_JAR%
> "-Dclassworlds.conf=%M2_HOME%\bin\m2.conf" "-Dmaven.home=%M2_HOME%"
> %CLASSWORLDS_LAUNCHER% %MAVEN_OPTS% %MAVEN_CMD_LINE_ARGS%
> For the record, I used the MAVEN_OPTS variable to pass the http.proxyHost and
> http.proxyPort to maven, because it seems that the settings.xml is not enough
> for certaing plugins for checking XML files against its DTDs.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira