Error loading Maven properties file

I get this error from the eclipse token when I try to load the filter file from pom.xml. It displays the message below.

Error loading property file 'src/main/filters/filter.properties' (org.apache.maven.plugins:maven-resources-plugin:2.6:resources:default-resources:process-resources) 

pom.xml:

  <execution> <id>default-resources</id> <phase>process-resources</phase> <goals> <goal>resources</goal> </goals> <configuration> <resources> <resource> <directory>src/main/resources</directory> <filtering>true</filtering> </resource> </resources> <filters> <filter>src/main/filters/filter.properties</filter> </filters> </configuration> </execution> 

this is mistake?

+3
java maven maven-resources-plugin
source share
1 answer

the solution is placed ${basedir}/src/main/filters/filter.properties instead of src/main/filters/filter.properties

 <execution> <id>default-resources</id> <phase>process-resources</phase> <goals> <goal>resources</goal> </goals> <configuration> <resources> <resource> <directory>src/main/resources</directory> <filtering>true</filtering> </resource> </resources> <filters> <filter>${basedir}/src/main/filters/filter.properties</filter> </filters> </configuration> </execution> 
+5
source share

All Articles