You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dominique Jean-Prost (JIRA)" <ji...@codehaus.org> on 2010/06/21 15:22:12 UTC

[jira] Commented: (MECLIPSE-580) sourceExcludes is applied to src/test/java, not to src/main/java

    [ http://jira.codehaus.org/browse/MECLIPSE-580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=225975#action_225975 ] 

Dominique Jean-Prost commented on MECLIPSE-580:
-----------------------------------------------

same problem with eclipse:eclipse.

Please note that M2Eclipse does import the project correctly : exclusion is setup for src/main/java

> sourceExcludes is applied to src/test/java, not to src/main/java
> ----------------------------------------------------------------
>
>                 Key: MECLIPSE-580
>                 URL: http://jira.codehaus.org/browse/MECLIPSE-580
>             Project: Maven 2.x Eclipse Plugin
>          Issue Type: Bug
>    Affects Versions: 2.7
>            Reporter: nicolas de loof
>
> With 
> <plugin>
>          <artifactId>maven-eclipse-plugin</artifactId>
>          <version>2.7</version>
>          <configuration>
>            <sourceExcludes>
>              <sourceExclude>**/emul/**/*.java</sourceExclude>
>            </sourceExcludes>
>          </configuration>
>       </plugin>
> runing mvn eclipse:m2eclipse the generated .classpath file is 
> <classpath>
>   <classpathentry kind="src" path="src/test/java" output="target/test-classes" including="**/*.java" excluding="**/emul/**/*.java"/>
>   <classpathentry kind="src" path="src/test/resources" output="target/test-classes" excluding="**/*.java"/>
>   <classpathentry kind="src" path="src/main/java"/>
> ...
> The excluding attribute is set but not on the expected element

-- 
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