﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-fenglin-文章分类-Maven</title><link>http://www.cppblog.com/fenglin/category/16643.html</link><description>创新、创意、挑战</description><language>zh-cn</language><lastBuildDate>Tue, 19 Apr 2011 05:11:47 GMT</lastBuildDate><pubDate>Tue, 19 Apr 2011 05:11:47 GMT</pubDate><ttl>60</ttl><item><title>安装Maven后，启动Eclipse时报警告</title><link>http://www.cppblog.com/fenglin/articles/144512.html</link><dc:creator>风林</dc:creator><author>风林</author><pubDate>Tue, 19 Apr 2011 02:06:00 GMT</pubDate><guid>http://www.cppblog.com/fenglin/articles/144512.html</guid><wfw:comment>http://www.cppblog.com/fenglin/comments/144512.html</wfw:comment><comments>http://www.cppblog.com/fenglin/articles/144512.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/fenglin/comments/commentRss/144512.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/fenglin/services/trackbacks/144512.html</trackback:ping><description><![CDATA[<p>在eclipse中安装了m2eclipse（maven插件）</p>
<p>在安装后，出现下列警告：</p>
<p style="COLOR: red">The Maven Integration requires that Eclipse be running in a JDK, because a number of Maven core plugins are using jars from the JDK.</p>
<p><span style="COLOR: red">Please make sure the -vm option in eclipse.ini is pointing to a JDK and verify that Installed JRE&#8217;s are also using JDK installs.</span> </p>
<p><span style="BACKGROUND-COLOR: #008000">解决方法：<br></span><span style="BACKGROUND-COLOR: #ffffff">1、检查Preferences-&gt;Java-&gt;Installed JREs里是否已添加正确的JRE配置，如果没有请添加正确。<br>2、在Eclipse启动配置文件eclipse.ini（此文件位于Eclipse安装目录里）里添加启动参数，将JDK里的javaw.exe路径指定进来：<br></span><span style="BACKGROUND-COLOR: #008000">-startup<br>plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar<br>--launcher.library<br>plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.2.R36x_v20101222<br>-product<br>org.eclipse.epp.package.jee.product<br>--launcher.defaultAction<br>openFile<br>--launcher.XXMaxPermSize<br>256M<br>-showsplash<br>org.eclipse.platform<br>--launcher.XXMaxPermSize<br>256m<br>--launcher.defaultAction<br>openFile<br><span style="BACKGROUND-COLOR: #ff0000">-vm<br>D:\Program Files\Java\jdk1.6.0_21\bin\javaw<br></span>-vmargs<br>-Dosgi.requiredJavaVersion=1.5<br>-Xms40m<br>-Xmx512m<br></span></p>
使用参数-vm来指定JDK路径，将下面的javaw所处位置修改为你自己的即可。<span style="COLOR: #ff0000"><strong>注意：-vm参数必须位置-vmargs参数之前。</strong></span>
<img src ="http://www.cppblog.com/fenglin/aggbug/144512.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/fenglin/" target="_blank">风林</a> 2011-04-19 10:06 <a href="http://www.cppblog.com/fenglin/articles/144512.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>