If i have pom.xmllike
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>test-project</artifactId>
<version>0.0.1-SNAPSHOT</version>
<properties>
<resource.filtering>true</resource.filtering>
</properties>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>${resource.filtering}</filtering>
<includes>
<include>environment.properties</include>
</includes>
</resource>
</resources>
</build>
</project>
Eclipse marks a line <filtering>${resource.filtering}</filtering>with a validation error because the schema reports what it should be booleanand it doesn't look like boolean. I would prefer not to turn off validation pom.xml, and it is annoying to see an error in the project. My goal is to be able to control whether resource filtering is based on Maven profiles. Is there a way to do this that passes the Eclipse check? I am using Eclipse Luna (4.4).
source
share