所以我正在做这个教程,但是当我尝试运行我的alfresco maven repo时,它会告诉我:
C:UsersadminDesktoptutorial_homecontent-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>
但是它不起作用。
此外,当我尝试运行时,它给了我错误。但是,当我尝试进行MVN -version或任何Maven命令时,它给了我同样的错误。如果我想执行MVN命令,则必须重新启动控制台。
P.S:我的MVN -Version给了我这一点,所以我认为可以吗?
C:UsersadminDesktoptutorial_homecontent-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.0bin..
Java version: 1.8.0_121, vendor: Oracle Corporation
Java home: C:Program Files (x86)Javajdk1.8.0_121jre
Default locale: fr_FR, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "x86", family: "windows"
如果有人知道我该怎么办..预先感谢!
好,问题来自我的JDK版本。我重新安装了X64版本,一切效果更好。