【发布时间】:2012-09-08 19:24:51
【问题描述】:
这个问题与MyBatis 3.0.5 and mappers loading problem和How to suppress Maven "Unable to find resource" messages?不一样
我在 org.org.wpse.db.config.db.config 包中有 xml 文件,但是为什么即使在我运行 mvn 之后我也无法在 target/classes/org/wpse/db/config/ 目录中找到这些 xml 文件编译。
当我使用 mybatis 时,这个错误会导致以下失败:
Could not find resource
导致此错误的问题是 .xml 文件未复制到构建目录,即使我使用 mvn compile 显式
【问题讨论】:
-
这个包在哪里 - 在
src/main/java或src/main/resources?
标签: xml eclipse maven buildpath eclipse-project-file