【发布时间】:2017-10-27 15:29:15
【问题描述】:
我有一个这样的多模块项目:
parent
|
+-- childA
| +-- src/main/resources/application.properties
|
+-- childB
+-- src/main/resources/application.properties
+-- src/main/filters/filter.properties
我正在使用 childB 中的 filter.properties 过滤 childA 和 childB 中的 application.properties。
我跟着this strategy将过滤器文件附加到childB的工件上,然后在childA的目标上解压:
childA/target/filters/filter.properties
childA 有这样的资源过滤:
<build>
<filters>
<filter>target/filters/filter.properties</filter>
</filters>
</build>
Eclipse 在childA/pom.xml 上标记错误:
加载属性文件时出错 '父\childA\target\filters\filter.properties' (org.apache.maven.plugins:maven-resources-plugin:3.0.2:copy-resources:default-resources:process-resources)
过滤器文件在我构建应用程序时可用,所以我不关心那里。
如何更新 childA 的 pom.xml 以永久忽略此错误?
【问题讨论】:
标签: java eclipse maven maven-3 maven-resources-plugin