0
votes

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.

enter image description here

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.

enter image description here

2
Add a blank beween -Xms256m and -Xmx ...Jens

2 Answers

1
votes

Your global maven options (environment variable MAVEN_OPTS) is invalid. You must separate the options with a space:

MAVEN_OPTS = -Xms256m -Xmx512m
1
votes

Generally no need to add MAVEN_OPTS but as you added you have to give space between two arguments.

 MAVEN_OPTS=-Xms256m -Xmx512m