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.
分享到:
相关推荐
** Maven Integration for Eclipse 插件详解 ** "Maven Integration for Eclipse",简称m2eclipse,是Eclipse集成开发环境中的一个强大插件,旨在帮助开发者无缝地在Eclipse中管理和构建基于Maven的Java项目。这个...
eclipse更新maven,jdk改变解决办法 eclipse更新maven时,项目原本设定的jdk版本发生改变,这是由于maven的编译器插件的默认设置所致。编译器插件用来编译项目的源文件,从3.0版本开始,默认编译器是javax.tools....
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(Maven Integration for Eclipse)是Eclipse集成开发环境中的一个插件,用于支持Maven构建系统。它为Eclipse提供了对Maven项目无缝集成的能力,使得开发者在Eclipse环境中可以方便地创建、管理和构建基于Maven的...
在已经安装好JDK和Maven的Eclipse中,可以通过“Install New Software”选项安装Maven插件,或者直接使用命令`mvn eclipse:eclipse`生成Eclipse项目文件,然后导入Eclipse进行开发。 2. **Eclipse的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的插件M2E(Maven Integration for Eclipse)。在Eclipse Marketplace中搜索并安装即可。 接下来,我们来创建一个Maven项目: 1. 启动Eclipse,点击菜单栏的“File” -> “New” -...
在Eclipse中使用Maven创建项目时,你可能会遇到一个常见的问题,即默认的JDK版本被设置为较旧的1.5。这可能会导致一些现代Java特性无法使用,或者与你的开发环境不兼容。以下是解决这个问题的详细步骤: 首先,我们...
- 选择合适的 Maven 插件版本进行安装,确保只选择 `maven Integration for Eclipse` - 完成下载和安装后,重启 Eclipse,检查是否成功集成 Maven 一旦完成上述步骤,你便能在 Eclipse 中使用 Maven 进行项目构建...
Maven的生命周期包括清理(Clean)、构建(Compile)、测试(Test)、打包(Package)、验证(Verify)、集成测试(Integration Test)、部署(Deploy)等阶段。开发者可以通过执行对应的命令如`mvn clean compile`来执行特定阶段...
4. 在列表中找到"Maven Integration for Eclipse",勾选并继续安装流程。 安装完Maven插件后,你需要配置Maven的本地仓库和settings.xml文件。Eclipse会在你的用户目录下创建一个`.m2`文件夹,其中包含settings.xml...
3. **安装插件**:Eclipse Marketplace提供了多种方式安装Maven插件,如M2E(Maven Integration for Eclipse)。通过搜索并按照提示安装即可。 4. **同步项目**:安装插件后,可以选择已有的Maven项目导入到Eclipse...
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,选择`Help` -> `Eclipse Marketplace`,在搜索框中输入`m2e`,找到`Maven Integration for Eclipse`插件并安装。 2. **配置Maven**: - 启动Eclipse,进入`Window` -> `Preferences` -> `Maven`。 -...
【标题】"Maven兼容jdk1.7版本"指出的核心知识点是关于Apache Maven的一个特定版本——3.0.5,这个版本与Java Development Kit (JDK) 1.7(也称为Java 7)有着良好的兼容性。在软件开发过程中,构建工具如Maven与...
对于4.4以下版本,可以通过Eclipse Marketplace安装Maven Integration for Eclipse Luna插件。 2. **配置Eclipse**: - 在Eclipse中,选择`Window > Preferences`,找到Maven选项。 - 在Maven的`Installations`中...
(1)制作原因: ...把dropins目录下的Maven文件夹复制到Eclipse安装目录的dropins文件夹里。 因为eclipse 3.4以后才有dropin安装方式,所以3.4以下版本的就不要折腾了,可以到网上找找其他的安装方式。
- 在搜索框中输入“maven”,找到“Maven Integration for Eclipse”插件并点击“Install”按钮进行安装。 - 完成安装后,重启Eclipse。 2. **配置Maven插件** - 重启Eclipse后,点击“Window” -> ...
maven2的eclipse插件 for eclipse 3.5+。 插件安装时,我们只需在eclipse根目录下新建一个【links】目录,然后在里面创建【.link】扩展名的文件,在里面写上类似于【path=F:\\IDE\\eclipsePlugin\\maven2】这样的...