I'm developing a web application using Maven and Eclipse. I'm also using m2e plugin and its wtp connector to publish changes into the server on the fly. These plugins are creating a folder into the Maven's target folder, called target/m2e-wtp/web-resources.
My problem is when I am editing a xhtml file from my project and have a link to another file, when I go through it doing ctrl+click is bringing me to this target folder, when I obviusly want to go to the file which is into webapp directory. If I try to edit the file, Eclipse is warning me that is a derived file.
Is there a way to avoid that issue?
EDITED
That's my project's classpath content:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources/bundles"/>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources/classes/interna"/>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources/hibernate-mappings"/>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources/styles/headers/premium"/>
<classpathentry excluding="**" including="**/*.java" kind="src" output="target/classes" path="src/main/resources/styles/css/premium"/>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>