Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to ignore missing filter file error on pom.xml in Eclipse when using resource filtering?

I have a multi-module project like this:

parent
|
+-- childA
|   +-- src/main/resources/application.properties
|
+-- childB
    +-- src/main/resources/application.properties
    +-- src/main/filters/filter.properties

I am filtering the application.properties in both childA and childB using the filter.properties in childB.

I followed this strategy to attach the filter file to childB's artifact and then unpack it on childA's target:

childA/target/filters/filter.properties

childA has resource filtering like this:

<build>
  <filters>
    <filter>target/filters/filter.properties</filter>
  </filters>
</build>

Eclipse is flagging an error on childA/pom.xml:

Error loading property file 'parent\childA\target\filters\filter.properties' (org.apache.maven.plugins:maven-resources-plugin:3.0.2:copy-resources:default-resources:process-resources)

The filter file is available when I build the app, so I'm not concerned there.

How can I update the pom.xml of childA to permanently ignore this error?

like image 257
Zack Avatar asked May 26 '17 16:05

Zack


1 Answers

The issue went away after upgrading from Eclipse Luna to Neon.

like image 185
Zack Avatar answered Nov 16 '22 04:11

Zack