I started noticing these attributes in my .classpath file after running Maven -> Update Project...
tool with Update project configuration from pom.xml
option checked:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
...
</classpathentry>
The attribute that made me raise my eyebrows the most was this: <attribute name="optional" value="true"/>
.
What does it do? It looks mighty suspicious as I find nothing optional about my java source files in a project.
optional
, the classpath configuration above would break for such projects. – Orose