You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Maarten Billemont (JIRA)" <ji...@codehaus.org> on 2009/11/24 10:34:55 UTC
[jira] Created: (MECLIPSE-620) Resource rules on test source paths
cause implicit **/*.java exclusion
Resource rules on test source paths cause implicit **/*.java exclusion
-----------------------------------------------------------------------
Key: MECLIPSE-620
URL: http://jira.codehaus.org/browse/MECLIPSE-620
Project: Maven 2.x Eclipse Plugin
Issue Type: Bug
Components: Core : Dependencies resolution and build path (.classpath)
Affects Versions: 2.5.1
Reporter: Maarten Billemont
As soon as I add the following to my pom.xml:
{code:xml}
<resource>
<directory>src/test/java</directory>
</resource>
{code}
A rule gets added to {{.classpath}}:
{code:xml}
<classpathentry kind="src" path="src/test/java" excluding="**/*.java"/>
{code}
The {{excluding="**/*.java"}} seems to appear out of nowhere causing all java files in eclipse to become unmanaged.
Without this rule resource files in this directory are not added to the eclipse JUnit classpath (we need this since we have wicket HTML files alongside java files). I expect to be able to use this:
{code:xml}
<resource>
<filtering>false</filtering>
<directory>src/test/java</directory>
<includes>
<include>**</include>
</includes>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
{code}
The same way I use this (and this one DOES work!):
{code:xml}
<resource>
<filtering>false</filtering>
<directory>src/main/java</directory>
<includes>
<include>**</include>
</includes>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
{code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira