https://docs.sonatype.org/display/M2ECLIPSE/Project+FAQ#ProjectFAQ-WhyresourcefoldersinJavaprojecthaveexcluded%3D%22%22
Why resource folders in Java project have excluded="**"
Many users are confused that when Java project is configured in Eclipse, resource folders gets excluded="**". This is done intentionally, because those resources are processed by the "Maven Builder" registered to the project. This builder provides special resource handling, that includes filtering, as well as execution of other Maven plugins for processing resources. See Maven build lifecycle for more details.
If you manually remove resource exclusion, JDT will copy resources and overwrite filtered resources generated by Maven plugins.
Actually project resource folder doesn't really need to be added to the buildpath (Maven Builder is going to work without it), but it been considered convenient and look better in the Package Explorer and other Eclipse views.
Also note, that classpath used for JUnit and Java Application launch configurations for projects that have Maven support enabled is also calculated in a special way and excluded resources does not affect it either.
分享到:
相关推荐
Maven 2 Eclipse Plugin
插件安装时,我们只需在eclipse根目录下新建一个【links】目录,然后在里面创建【.link】扩展名的文件,在里面写上类似于【path=F:\\IDE\\eclipsePlugin\\maven2】这样的配置信息,不就可以统一管理我们自己的插件了...
m2e 适合 eclipse3.X jdk1.6 (maven2eclipse)
maven-eclipse-plugin-2.5.1为eclipse中的maven插件,别下错了哦...
Maven2Eclipse.解压后,直接把Maven文件夹整个复制到:eclipse-jee-helios-SR1-win32\eclipse\dropins下就行了。如果没有这个文件夹,你的Eclipse版本太低了,用老方法,link那种方式去折腾吧。
Maven2+Eclipse开发J2EE.pdf Maven2_基础教程.pdf maven2之m2eclipse使用手册.doc Maven2使用.ppt maven2完全使用手册.docx Maven_介绍培训.pptx Maven学习指南.pdf Maven实战.doc Maven实战.pdf Maven构建并管理...
Maven在eclipse中的项目启动命令
maven_eclipse_GEF-zest-3.7.1_m2e-extras_m2e.zip maven的eclipse插件
最新的maven集成eclipse书籍,使用maven和eclipse开发必看。
maven-eclipse-plugin-2.3.jar
支持maven2 maven3 通用版本eclipse插件,在maven官网下载apache-maven-3.2.1-bin.zip,解压插件压缩包到path=D:\m2e-0.12.0.20101115-1102 在eclipse新建links文件夹,新建文件maven23.link,内容为:path=D:/m2e-...
maven-eclipse-plugin-2.8.jar
maven-eclipse-plugin-2.2.jar
maven-eclipse-plugin-2.9.jar
maven与eclipse配置详解(含maven),详细说了怎么配置maven到eclipse,还包含maven的安装包等
maven2之m2eclipse使用手册.doc
介绍maven 安装,maven Eclipse环境集成。maven是apache出的能够方便工程构建的可代替ant的软件。
maven3.2.2 eclipse插件 离线包 使用eclipse联网安装插件失败的可以下载该离线包,解压后合并同名文件夹的内容,然后重启eclipse即可。