Kaj,
The short answer is, no, you are not doing anything wrong :-)
Seriously speaking, there are few issues here.
First, these "source" folders are there just to make resource folders
visible in Package Explorer view. They are not involved in resource
filtering or build and this is why they have excluding="**". Personally,
I find it useful in some cases but certainly confusing at first. Open
enhancement request to get rid of this feature if you feel strong enough.
Second, deleted resources are indeed not removed from build output
folder during incremental build. This is almost by design, but I've
opened MNGECLIPSE-573 to keep an eye on this. In the meantime, use clean
build (Project -> Clean...) as a workaround.
Third, test resources seem to get filtered during clean build only. I've
opened MNGECLIPSE-574 to track this.
Kaj Hejer wrote:
Hi!
In my pom.xml I have turned on filtering for src/test/resources:
<testResources>
<testResource>
<directory>src/test/resources</directory>
<filtering>true</filtering>
<includes>
<include>**/*</include>
</includes>
</testResource>
</testResources>
When I update source folders using m2eclipse with eclipse 3.4M5 and
m2eclipse 0.9.3.20080421-2351 I get the following in my .classpath file:
<classpathentry excluding="**" kind="src"
output="src/test/resources" path="src/test/resources"/>
Is this output path corrent?
What is strange is that some files under src/test/resources is removed,
f.x. db.properties which is one of the files which should be filtered.
The non filtered version of this file which belongs under
src/test/resources is removed and I find a filtered one under
./target/test-classes/
Am I doing someting wrong here?
I include my .classpath file bellow:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target-eclipse/classes"
path="src/main/java"/>
<classpathentry kind="src" output="target-eclipse/test-classes"
path="src/test/java">
<attributes>
<attribute name="maven.type" value="test"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src"
output="src/main/resources" path="src/main/resources"/>
<classpathentry excluding="**" kind="src"
output="src/main/webapp/WEB-INF/classes"
path="src/main/webapp/WEB-INF/classes"/>
<classpathentry excluding="**" kind="src"
output="src/test/resources" path="src/test/resources"/>
<classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con"
path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="output" path="target-eclipse/classes"/>
</classpath>
-Kaj :)
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email