Tuesday, June 12, 2012

mvn (maven) 2.2.1 error at command prompt

When running mvn at the command prompt, if you get this error message "files was unexpected at this time" check value of the JAVA_HOME variable. The JAVA_HOME value should not contain any quotes in it.

JAVA_HOME=C:\"Program files (x86)"\java\jre6
should be changed to

JAVA_HOME=C:\Program files (x86)\java\jre6