Maven Spring入门问题:Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:exec (default-cli)
最近在学习Spring,进度非常咸鱼
火上浇油
在运行时遇到了一个错误
Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:exec (default-cli) on project spring-02-hellospring: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1]
图片如下:
想了想应该正常情况下的运行应该是
…\jdk8\bin\java.exe…
但我的控制台显示的是
Java\jdk1.8.0_181\bin\java.exe" -Dmaven.multiModuleProjectDirectory=D:\ssm学习项目\springstudy\spring-02-hellospring “-Dmaven.home=C:\Program Files\JetBrains\IntelliJ IDEA 2018.3\plugins\maven\lib\maven3” “-Dclassworlds.conf=C:\Program Files\JetBrains\IntelliJ IDEA 2018.3\plugins\maven\lib\maven3\bin\m2.conf” “-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2018.3\lib\idea_rt.jar=51219:C:\Program Files\JetBrains\IntelliJ IDEA 2018.3\bin” -Dfile.encoding=UTF-8 -classpath "C:\Program Files\JetBrains\IntelliJ IDEA 2018.3\plugins\maven\lib\maven3\boot\p
废话不多说,上我的修改方法
File ->Settings -> Build, Execution, Deployment -> Build Tools -> Maven -> Runner
然后把右上角的Delegate IDE build /run actions to maven打勾去掉就行
别忘了点OK
然后运行一下试试
问题解决,希望能对你有所帮助