he fully error message that you might get is as follows:
The Maven Integration requires that Eclipse be running in a JDK, because a
number of Maven core plugins are using jars from the JDK.
Please make sure the -vm option in eclipse.ini is pointing to a JDK and verify
that Installed JREs are also using JDK installs.
To solve this problem add a new option into your eclipse.ini (which is located in your Eclipse installation folder):
-vm C:\Program Files\Java\jdk1.6.0_06\bin\javaw.exe
It is important to have this line on the correct location, otherwise Eclipse will have no clue about this setting:
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256M
-vm
C:\Program Files\Java\jdk1.6.0_06\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
It has to be before the -vmargs
argument.
在eclipse中安装了m2eclipse(maven插件)
在安装后,出现下列警告:
The Maven Integration requires that Eclipse be running in a JDK,
because a number of Maven core plugins are using jars from the JDK.
Please make sure the -vm option in eclipse.ini is pointing to a JDK
and verify that Installed JRE’s are also using JDK installs.
解决:
(1)set your JDK as a default Java environment in eclipse (default installed JRE)
Open eclipse. Click on ‘Window’ -> ‘Preferences’ -> ‘Java’ -> ‘Installed JREs’.
If you can’t find any JDK on the list -> click ‘Add’ -> ‘Standard VM’ -> set all paths and click ‘Finish’.
After that – check this JDK on the list of installed JREs and click ‘OK’.
(2)add path to your SDK in eclipse.ini
open ‘eclipse.ini’ and add there: -vm path_to_javaw_on_your_machine,so in my example it will be (jdk1.6.0_17 on Windows):
-vm
D:\\Java\jdk1.6.0_13\jre\bin\javaw
Notice 1: Do not use paths with spaces! Replace all dir names with spaces to their shortcuts. For example: ‘Program Files’ is ‘Progra~1′.
Notice 2: ‘-vm’ is in the first line, path is in the second line
your ‘eclipse.ini’ looks like this:
-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm
D:\Java\jdk1.6.0_13\jre\bin\javaw
-vmargs
-Xms40m
-Xmx256m
Notice : ‘-vm’ must be "-vmargs" above
Restart eclipse and everything should be fine.
分享到:
相关推荐
m2eclipse这个工具比较有用,在官网上弄,费劲。
m2eclipse provides comprehensive Maven integration for Eclipse. You can use m2eclipse to manage both simple and ... With m2eclipse, you can use Maven within Eclipse in a natural and intuitive interface.
m2e 适合 eclipse3.X jdk1.6 (maven2eclipse)
When you install this component you will be installing all of the core Wizards, the POM Editor, Maven Repository integration, and Maven integration m2eclipse Core Update Site: ...
maven3.2.3+eclipse4.4+JDK1.8环境搭建.Maven 除了以程序构建能力为特色之外,还提供高级项目管理工具。由于 Maven 的缺省构建规则有较高的可重用性,所以常常用两三行 Maven 构建脚本就可以构建简单的项目。
When you install this component you will be installing all of the core Wizards, the POM Editor, Maven Repository integration, and Maven integration m2eclipse Core Update Site: ...
eclipse更新maven时,项目原本设定的jdk版本发生改变,本例给出具体原因及解决办法。
linux 最新环境搭建,jdk1.7,maven2.2,tomcat7,eclipse4.3整合 安装,maven环境搭建,maven插件,eclipse配置maven.linux 配置 安装jdk linux配置tomcat
eclipse 创建maven项目设置默认jdk版本.rar
MAVEN-3.5.4,需要jdk7及以上版本 MAVEN-3.5.4,需要jdk7及以上版本
Maven in action.pdf Maven2+Eclipse开发J2EE.pdf Maven2_基础教程.pdf maven2之m2eclipse使用手册.doc Maven2使用.ppt maven2完全使用手册.docx Maven_介绍培训.pptx Maven学习指南.pdf Maven实战.doc Maven实战....
eclipse-maven3-plugin插件 包含apache-maven-3.3.9和eclipse-maven3-plugin
maven2的eclipse插件 for eclipse 3.5+。 插件安装时,我们只需在eclipse根目录下新建一个【links】目录,然后在里面创建【.link】扩展名的文件,在里面写上类似于【path=F:\\IDE\\eclipsePlugin\\maven2】这样的...
ECLIPSE MAVEN3插件文件(eclipse-maven3-plugin工具)
eclipse支持jdk 1.8 compiler 支持JDK1.8 project facets 支持JDK1.8 找了很久终于找到了,免安装的,拿过去就可以用,集成svn,maven,git等工具
maven2的插件,用于在eclipse下进行maven2的快速配置 打开eclipse .选择菜单 window ->preferences ; 在新打开的对话框的左边的一列会看到一个名为Maven2的选项。鼠标单击,然后点击右边的Local Repository Folder ...
下过好多maven,但是版本与jdk版本对应存在问题,本版本对应jdk1.7,相当稳定~
maven-3.0.5安装包&eclipse-maven插件. ide:eclipse3.5以上.本人是eclipse4.2 jdk:1.6
Eclipse新建和部署maven项目,每一步都有详细的截图