title: Not enough space, maven
body: <p>So I'm doing this <a href="http://ecmarchitect.com/alfresco-developer-series-tutorials/content/tutorial/tutorial.html#setting-up" rel="nofollow noreferrer">tutorial</a> but when I try to run my Alfresco maven repo it tells me :</p>
  
  <pre><code>C:\Users\admin\Desktop\tutorial_home\content-tutorial-repo&gt;run.bat    
  Error occurred during initialization of VM
  Could not reserve enough space for 2097152KB object heap
  </code></pre>
  
  <p>So I added those lines in my pom.xml :</p>
  
  <pre><code>&lt;plugin&gt; 
     &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; 
     &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt; 
     &lt;configuration&gt; 
        &lt;argLine&gt;-Xmx512m&lt;/argLine&gt; 
        &lt;forkMode&gt;pertest&lt;/forkMode&gt; 
        &lt;childDelegation&gt;true&lt;/childDelegation&gt; 
     &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>But it didn't work.</p>
  
  <p>Moreover, when i try to run.bat, it gives me the error. But then when I try to mvn -version or any maven command it gives me the same error. If I want to execute a mvn command I have to restart my console.</p>
  
  <p>P.S : my mvn -version gives me this, so I think it's ok right ?</p>
  
  <pre><code>C:\Users\admin\Desktop\tutorial_home\content-tutorial-repo&gt;mvn -version
  Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
  Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-03T21:39:06+02:00)
  Maven home: C:\apache-maven-3.5.0\bin\..
  Java version: 1.8.0_121, vendor: Oracle Corporation
  Java home: C:\Program Files (x86)\Java\jdk1.8.0_121\jre
  Default locale: fr_FR, platform encoding: Cp1252
  OS name: "windows 10", version: "10.0", arch: "x86", family: "windows"
  </code></pre>
  
  <p>If anyone knows what I should do.. Thanks in advance !</p>