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 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. For more information on JIRA, see: http://www.atlassian.com/software/jira