所以我正在做这个tutorial但当我尝试运行我的Alfresco maven回购时它告诉我:
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命令,我必须重启我的控制台。
P.S:我的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"
如果有人知道我应该做什么......提前致谢!
答案 0 :(得分:0)
好的,问题来自我的JDK版本。我重新安装了x64版本,一切都运行得更好。