这次日食自动编译往往忽视资源目录 [英] The eclipse autobuilder often ignore the resource directory

查看:138
本文介绍了这次日食自动编译往往忽视资源目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Eclipse和Maven插件。我有一个大的多模块项目(〜在工作区中6个模块)。我经常有我的运行程序(码头:运行)当问题我的应用程序无法启动,因为资源文件丢失。展望目标文件夹,我注意到他们没有被复制。唯一的工程,整洁,帮助在这种情况下。

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.

干杯,

编辑:升级到日食太阳神帮助

Upgrade to eclipse Helios helped.

推荐答案

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

It sounds like you're using m2eclipse 0.10.0.

下面是可以找到一个链接在POM资源所需的配置:
https://docs.sonatype.org/pages/viewpage.action?pageId=2949459

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

您还可以发现,使用的 Maven的资源 - 插件的版本2.4.2或2.4.3可能比2.4更好地工作。

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

这篇关于这次日食自动编译往往忽视资源目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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