安装Maven之后提示:
控制台出现:
Eclipse is running in a JRE, but a JDK is required
Some Maven plugins may not work when importing projects or updating source folders.
解决办法:
To create a Windows shortcut to an installed Eclipse:
Navigate to eclipse.exe in Windows Explorer and use Create Shortcut on the content menu.
Select the shortcut and edit its Properties. In the Target: field append the command line arguments.
-vm C:\Java\jdk1.6.0_05\bin\javaw
Opening this shortcut launches Eclipse. (You can drag the shortcut to the Windows Desktop if you want to keep it in easy reach.)
example:
C:\Eclipse\eclipse.exe -vm C:\Java\jdk1.6.0_05\bin\javaw.exe
解决Maven在Eclipse中运行问题
本文介绍了解决Maven在Eclipse中遇到的问题的方法。当使用JRE而非JDK运行Eclipse时,可能会导致某些Maven插件无法正常工作。文章提供了一个创建Eclipse快捷方式并设置正确JDK路径的解决方案。
370

被折叠的 条评论
为什么被折叠?



