<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>易水博客 &#187; maven</title>
	<atom:link href="http://easwy.com/blog/archives/tag/maven/feed/" rel="self" type="application/rss+xml" />
	<link>http://easwy.com/blog</link>
	<description>关注Linux, Scala, Android, Java, 开源软件和嵌入式系统</description>
	<lastBuildDate>Mon, 12 Mar 2012 02:03:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>使用mvn eclipse:eclipse生成eclipse工程文件失败</title>
		<link>http://easwy.com/blog/archives/maven-build-eclipse-project-failed/</link>
		<comments>http://easwy.com/blog/archives/maven-build-eclipse-project-failed/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 06:20:35 +0000</pubDate>
		<dc:creator>Easwy</dc:creator>
				<category><![CDATA[Web开发]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[maven]]></category>

		<guid isPermaLink="false">http://easwy.com/blog/?p=1003</guid>
		<description><![CDATA[刚刚使用mvn eclipse:eclipse生成eclipse工程文件失败，maven提示：
Request to merge when 'filtering' is not identical <a href="http://easwy.com/blog/archives/maven-build-eclipse-project-failed/">Continue reading <span class="meta-nav">&#8594;</span></a><div class="fixed"></div><div id="related_posts"><h3  class="related_post_title">相关文章</h3><ul class="related_post">
<li><a href='http://easwy.com/blog/archives/vim-taglist-plugin-not-work-after-installing-eclim/' rel='bookmark' title='解决安装Eclim后Vim Taglist插件工作不正常的问题'>解决安装Eclim后Vim Taglist插件工作不正常的问题</a></li>
<li><a href='http://easwy.com/blog/archives/set-file-directory-attribute-for-linux-samba/' rel='bookmark' title='Linux使用笔记: 设置Samba服务器中新建文件/目录的权限'>Linux使用笔记: 设置Samba服务器中新建文件/目录的权限</a></li>
<li><a href='http://easwy.com/blog/archives/install-ubuntu-on-thinkpad-t400-aa1/' rel='bookmark' title='在Thinkpad T400上安装Ubuntu'>在Thinkpad T400上安装Ubuntu</a></li>
</div><div class="fixed"></div>]]></description>
			<content:encoded><![CDATA[<p>
    刚刚使用下面的命令生成eclipse的工程文件：
  </p>
<pre class="programlisting">
mvn eclipse:eclipse </pre>
<p>
    但maven提示：
  </p>
<pre class="programlisting">
$ mvn eclipse:eclipse
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building AppFuse Struts 2 Application
[INFO]    task-segment: [eclipse:eclipse]
[INFO] ------------------------------------------------------------------------
[INFO] Preparing eclipse:eclipse
[INFO] [aspectj:compile {execution: default}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}]
[INFO] [eclipse:eclipse {execution: default-cli}]
[INFO] Adding support for WTP version 1.5.
[INFO] Using Eclipse Workspace: null
[INFO] Adding default classpath container: org.eclipse.jdt.launching.JRE_CONTAINER
[INFO] Resource directory's path matches an existing source directory. Resources will be merged with the source directory src/main/resources
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Request to merge when 'filtering' is not identical. Original=resource src/main/resources: output=target/classes, include=[], exclude=[ApplicationResources_de.properties|ApplicationResources_fr.properties|ApplicationResources_ko.properties|ApplicationResources_nl.properties|ApplicationResources_no.properties|ApplicationResources_pt*.properties|ApplicationResources_tr.properties|ApplicationResources_zh*.properties|applicationContext-resources.xml|struts.xml|**/*.java], test=false, filtering=true, merging with=resource src/main/resources: output=target/classes, include=[applicationContext-resources.xml|struts.xml], exclude=[**/*.java], test=false, filtering=false
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10 seconds
[INFO] Finished at: Tue Jan 19 13:10:19 CST 2010
[INFO] Final Memory: 28M/50M
[INFO] ------------------------------------------------------------------------ </pre>
<p>
    在网上搜了一下，似乎是maven的2.7版本eclipse插件的问题，使用下面的命令可以解决此问题：
  </p>
<pre class="programlisting">
mvn org.apache.maven.plugins:maven-eclipse-plugin:2.6:eclipse </pre>
<p>
    上面的命令会调用maven eclipse插件的2.6版本来生成eclipse项目文件，可以build正常。
  </p>
<p>
    更多内容，请阅读<a class="ulink" href="http://easwy.com/blog/" target="_top">Easwy的博客</a>上的其它文章。
  </p>
<p><span class="bold"><strong>[ 参考文档 ]</strong></span></p>
<div class="itemizedlist">
<ul class="itemizedlist" type="disc">
<li class="listitem">
      <a class="ulink" href="http://forums.atlassian.com/thread.jspa?threadID=34952" target="_top">eclipse:eclipse failing </a>
    </li>
</ul>
</div>
<div class="posturl">
<p><span class="bold"><strong>原创文章，请阅读页脚的<a href="#license">许可方式</a>，转载请注明：</strong></span>转载自<a class="link" href="http://easwy.com/blog/" target="_top">易水博客</a> [ <a class="link" href="http://easwy.com/blog/" target="_top">http://easwy.com/blog/</a> ]</p>
<p><span class="bold"><strong>本文链接地址:</strong></span> <a class="link" href="http://easwy.com/blog/archives/maven-build-eclipse-project-failed/" target="_top">http://easwy.com/blog/archives/maven-build-eclipse-project-failed/</a></p>
</div>
<p style="margin-top: 0; margin-bottom: 15px; color: #888888; font-size: 80%; font-style: italic">文章的脚注信息由WordPress的<a href="http://easwy.com/blog/wordpress/wp-posturl/" style="color: #8888FF; text-decoration: underline;">wp-posturl插件</a>自动生成</p>
<div class="fixed"></div><div id="related_posts"><h3  class="related_post_title">相关文章</h3><ul class="related_post">
<li><a href='http://easwy.com/blog/archives/vim-taglist-plugin-not-work-after-installing-eclim/' rel='bookmark' title='解决安装Eclim后Vim Taglist插件工作不正常的问题'>解决安装Eclim后Vim Taglist插件工作不正常的问题</a></li>
<li><a href='http://easwy.com/blog/archives/set-file-directory-attribute-for-linux-samba/' rel='bookmark' title='Linux使用笔记: 设置Samba服务器中新建文件/目录的权限'>Linux使用笔记: 设置Samba服务器中新建文件/目录的权限</a></li>
<li><a href='http://easwy.com/blog/archives/install-ubuntu-on-thinkpad-t400-aa1/' rel='bookmark' title='在Thinkpad T400上安装Ubuntu'>在Thinkpad T400上安装Ubuntu</a></li>
</div><div class="fixed"></div>]]></content:encoded>
			<wfw:commentRss>http://easwy.com/blog/archives/maven-build-eclipse-project-failed/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

