You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "marc schipperheyn (JIRA)" <ji...@codehaus.org> on 2013/07/06 17:25:06 UTC

[jira] (MECLIPSE-443) Only include **/*.java in Java source directories

    [ https://jira.codehaus.org/browse/MECLIPSE-443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=328103#comment-328103 ] 

marc schipperheyn commented on MECLIPSE-443:
--------------------------------------------

This fix has a really annoying side effect of force including **/*.java on src/main/resources folders every time you maven-update the project. I haven't been able to turn this off by specifying <sourceIncludes><sourceInclude>**/src/main/resources/**/*</sourceInclude></sourceIncludes> in the configuration of the plugin.
                
> Only include **/*.java in Java source directories
> -------------------------------------------------
>
>                 Key: MECLIPSE-443
>                 URL: https://jira.codehaus.org/browse/MECLIPSE-443
>             Project: Maven 2.x Eclipse Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.5.1
>            Reporter: Michael Johns
>            Assignee: Barrie Treloar
>            Priority: Minor
>             Fix For: 2.6
>
>         Attachments: MECLIPSE-443.2.patch, MECLIPSE-443.patch
>
>
> Since Maven only recognizes *.java files in Java source directories (src/main/java, or src/test/java, for example), it would be nice if the plugin produced .classpath files configured the same way.  Right now, a developer can inadvertently leave a non-Java resource in one of those directories, and everything will work fine in Eclipse.  But when the time comes to produce a package, that artifact will be missing since Maven won't pick it up.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira