所以我正在做这个教程,但是当我尝试运行我的 Alfresco maven repo 时,它告诉我:
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
所以我在 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>
但它没有用。
此外,当我尝试 run.bat 时,它给了我错误。但是当我尝试 mvn -version 或任何 maven 命令时,它给了我同样的错误。如果我想执行 mvn 命令,我必须重新启动控制台。
PS:我的 mvn -version 给了我这个,所以我认为没关系?
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"
如果有人知道我应该做什么..提前谢谢!