Maven出现以下问题:The Maven Integration requires that Eclipse be running in a JDK, because a number of Maven core plugins are using ja

修改eclipse目录下的eclipse.ini文件

从原先的

 

-startup

plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar

--launcher.library

plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.2.R36x_v20101222

-product

org.eclipse.epp.package.java.product

--launcher.defaultAction

openFile

--launcher.XXMaxPermSize

256M

-showsplash

org.eclipse.platform

--launcher.XXMaxPermSize

256m

--launcher.defaultAction

openFile

-vmargs

-Dosgi.requiredJavaVersion=1.5

-Xms40m

-Xmx384m

 

修改到

 

-startup

plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar

--launcher.library

plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.2.R36x_v20101222

-product

org.eclipse.epp.package.java.product

--launcher.defaultAction

openFile

--launcher.XXMaxPermSize

256M

-showsplash

org.eclipse.platform

--launcher.XXMaxPermSize

256m

--launcher.defaultAction

openFile

-vm

D:/Program Files/Java/jdk1.6.0_24/bin/javaw.exe

-vmargs

-Dosgi.requiredJavaVersion=1.5

-Xms40m

-Xmx384m

 

-vm

D:/Program Files/Java/jdk1.6.0_24/bin/javaw.exe

放置的位置应该放在上述位置,放在其他位置很可能有问题,导致启动还是有问题。

btw,换行后路径的空格无所谓。

 

以及根据Maven的提示:

    We need to change the installed JRE's in Eclipse preferences

参照参考文献的设置。

 

参考文献:

http://www.webspheretools.com/sites/webspheretools.nsf/docs/The%20Maven%20Integration%20requires%20that%20Eclipse%20be%20running%20in%20a%20JDK%20because%20a%20number%20of%20Maven%20core%20plugins%20are%20using%20jars%20from%20the%20JDK

你可能感兴趣的:(eclipse,jdk,maven,plugins,2010)