So I'm doing this tutorial but when I try to run my Alfresco maven repo it tells me :
C:\Users\admin\Desktop\tutorial_home\content-tutorial-repo>run.bat
Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap
So I added those lines in my pom.xml :
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>-Xmx512m</argLine>
<forkMode>pertest</forkMode>
<childDelegation>true</childDelegation>
</configuration>
</plugin>
But it didn't work.
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.S : my mvn -version gives me this, so I think it's ok right ?
C:\Users\admin\Desktop\tutorial_home\content-tutorial-repo>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"
If anyone knows what I should do.. Thanks in advance !