eclipse autobuilder经常忽略资源目录 [英] The eclipse autobuilder often ignore the resource directory

查看:222
本文介绍了eclipse autobuilder经常忽略资源目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用eclipse和maven插件。我有一个大的多模块项目(在工作区中〜6个模块)。我经常遇到的问题是,当运行我的程序(jetty:运行)我的应用程序不启动,因为资源文件丢失。看目标文件夹,我注意到他们没有被复制。在这种情况下,只有项目干净有助于。



任何想法发生什么问题或哪里可以开始调试问题?真的减慢了我的发展。



干杯,



Jan



编辑:升级到eclipse Helios帮助。

解决方案

这听起来像你使用的是m2eclipse 0.10.0。



以下是POM中需要配置的链接:
https://docs.sonatype.org/pages/viewpage.action?pageId=2949459



您可能还会发现使用maven-resources-plugin 版本2.4.2或2.4.3可能会比2.4更好。


I use eclipse and the maven plugin. I have a big multi-module project (~6 modules in the workspace). I often have the problem that when running my program (jetty:run) my application does not start because resource files are missing. Looking in the target folder, I noticed they haven't been copied. Only "project" "clean" helps in this case.

Any idea what is going wrong or where I could start debugging the issue? It really slows down my development.

Cheers,

Jan

EDIT: Upgrade to eclipse Helios helped.

解决方案

It sounds like you're using m2eclipse 0.10.0.

Here is a link for the configuration required in the POM for resources to be found: https://docs.sonatype.org/pages/viewpage.action?pageId=2949459

You may also find that using maven-resources-plugin version 2.4.2 or 2.4.3 may work better than 2.4.

这篇关于eclipse autobuilder经常忽略资源目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆