maven插件问题

每次装的时候,都忘记怎么处理,转一个解决办法http://hi.baidu.com/hwp0710/blog/item/e3142aa41b223be59052ee16.html

Eclipse is running in a JRE, but a JDK is required
关键字: eclipse is running in a jre, but a jdk is required

安装Maven之后提示:
eclipse is running in a jre, but a jdk is required
控制台出现:
Java代码

   1. Eclipse is running in a JRE, but a JDK is required  
   2.   Some Maven plugins may not work when importing projects or updating source folders.  

Eclipse is running in a JRE, but a JDK is required
  Some Maven plugins may not work when importing projects or updating source folders.

 

解决办法:
Java代码

   1. To create a Windows shortcut to an installed Eclipse:  
   2.   
   3. Navigate to eclipse.exe in Windows Explorer and use Create Shortcut on the content menu.  
   4. Select the shortcut and edit its Properties. In the Target: field append the command line arguments.  
   5. -vm C:\Java\jdk1.6.0_05\bin\javaw  
   6. Opening this shortcut launches Eclipse. (You can drag the shortcut to the Windows Desktop if you want to keep it in easy reach.)  
   7.   
   8. example:  

   9. C:\Eclipse\eclipse.exe -vm C:\Java\jdk1.6.0_05\bin\javaw.exe

另一解决办法:

把myeclipse快捷方式发送到桌面,右击快捷方式,点属性,修改目标为(红色为修改的jdk)

"C:\MyEclipse 6.6\eclipse\eclipse.exe" -vm "D:\Program Files\Java\jdk1.6.0_07\bin\javaw.exe"

ok!!!

<dependency>
            <groupId>com.sun</groupId>
            <artifactId>tools</artifactId>
            <version>1.5.0</version>
            <scope>system</scope>
            <systemPath>
                D:\Program Files\Java\jdk1.6.0_07\lib\tools.jar
            </systemPath>
</dependency>

原文地址:https://www.cnblogs.com/highriver/p/1941366.html