[ https://jira.codehaus.org/browse/MNG-5569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=340260#comment-340260 ]
Robert Scholte commented on MNG-5569: ------------------------------------- That's not a Maven question, but a Windows OS question. try to do the following: {noformat} C:\>set MAVEN_BATCH_ECHO=on C:\>mvn -v {noformat} When the quotes are placed on the wrong spots, you can't execute Maven (or any program through commandline) > JAVA_HOME "Program Files (x86)" gives error > ------------------------------------------- > > Key: MNG-5569 > URL: https://jira.codehaus.org/browse/MNG-5569 > Project: Maven 2 & 3 > Issue Type: Bug > Components: Command Line > Environment: Apache Maven 3.1.1 > (0728685237757ffbf44136acec0402957f723d9a; 2013-09- > Maven home: d:\DATA\apache-maven-3.1.1\bin\.. > Java version: 1.6.0_45, vendor: Sun Microsystems Inc. > Java home: d:\data\java\jdk1.6.0_45\jre > Default locale: nl_NL, platform encoding: Cp1252 > OS name: "windows 7", version: "6.1", arch: "x86", family: "windows" 64-bit > Reporter: Casper Roubos > Assignee: Robert Scholte > > _as_ a programmer with a Windows 7 64-bits OS, > _I want_ Maven to work with a JAVA_HOME path containing "c:\Program Files > (x86)\Java\jdk1.6.0_45", > _so that_ I do not get a wierd error like "Files not expected at this time" > * Unzip maven-3.1.1.zip in a folder like "d:\data\maven-3.1.1" > * Install JDK at "c:\Program Files (x86)\Java" > * set JAVA_HOME accordingly" > * enter "mvn --version" > ** _result_: an error "Files not expected at this time" > ** _expected_: maven returning the version details > * Copy JDK to an other directory, like "d:\data\Java\jdk1.6.0_45" > * set JAVA_HOME accordingly > ** _result_: maven returning the version details > ** _conclusion_: maven does not like "c:\Program Files (x86)\Java" -- This message was sent by Atlassian JIRA (v6.1.6#6162)