I want to learn more about JSF framework but its first step is to install MAVEN. I followed all the steps in installing Maven here . I've downloaded the file "apache-maven-3.3.3-bin.zip" here . When I open the command prompt and typed "mvn --version" I got the following error.
I've also set my environment variables on system variables panel.
The M2_HOME full directory is C:\\Program Files\\Apache Software Foundation\\apache-maven-3.3.3
and the JAVA_HOME directory C:\\Program Files\\Java\\jre1.8.0_51
And I checked also the version of JAVA I'm using.
Your global maven options (environment variable MAVEN_OPTS
) is invalid. You must separate the options with a space:
MAVEN_OPTS = -Xms256m -Xmx512m
通常,不需要添加MAVEN_OPTS
但是在添加时必须在两个参数之间MAVEN_OPTS
空格。
MAVEN_OPTS=-Xms256m -Xmx512m
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.