You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Gabriel Goïc (JIRA)" <ji...@codehaus.org> on 2011/12/15 15:49:02 UTC

[jira] (MECLIPSE-706) [regression] Resources are excluded if resource dir is declared twice

Gabriel Goïc created MECLIPSE-706:
-------------------------------------

             Summary: [regression] Resources are excluded if resource dir is declared twice
                 Key: MECLIPSE-706
                 URL: https://jira.codehaus.org/browse/MECLIPSE-706
             Project: Maven 2.x Eclipse Plugin
          Issue Type: Bug
          Components: Core : Dependencies resolution and build path (.classpath)
    Affects Versions: 2.6
            Reporter: Gabriel Goïc
            Assignee: Barrie Treloar
             Fix For: 2.7


{code:xml}
<build>
  <resources>
    <resource>
      <directory>src/main/java</directory>
      <includes>
        <include>**/*.properties</include>
      </includes>
    </resource>
  </resources>
</build>
{code}

For a non-standard project layout like sketched above where some resource files reside next to the source files (e.g. Messages.properties in Mercury), the change for MECLIPSE-443 causes these resources files to be excluded from the build path since they don't match the filter "**/*.java". This can for instance cause test failures in Eclipse due to resources missing on the class path.

When source and resource directories equal, the includes/excludes need to be merged.

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

       

[jira] (MECLIPSE-706) [regression] Resources are excluded if resource dir is declared twice

Posted by "Gabriel Goïc (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MECLIPSE-706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gabriel Goïc closed MECLIPSE-706.
---------------------------------

       Resolution: Incomplete
    Fix Version/s:     (was: 2.7)

wrongly cloned, will create a proper new one
                
> [regression] Resources are excluded if resource dir is declared twice
> ---------------------------------------------------------------------
>
>                 Key: MECLIPSE-706
>                 URL: https://jira.codehaus.org/browse/MECLIPSE-706
>             Project: Maven 2.x Eclipse Plugin
>          Issue Type: Bug
>          Components: Core : Dependencies resolution and build path (.classpath)
>    Affects Versions: 2.6
>            Reporter: Gabriel Goïc
>            Assignee: Barrie Treloar
>
> {code:xml}
> <build>
>   <resources>
>     <resource>
>       <directory>src/main/java</directory>
>       <includes>
>         <include>**/*.properties</include>
>       </includes>
>     </resource>
>   </resources>
> </build>
> {code}
> For a non-standard project layout like sketched above where some resource files reside next to the source files (e.g. Messages.properties in Mercury), the change for MECLIPSE-443 causes these resources files to be excluded from the build path since they don't match the filter "**/*.java". This can for instance cause test failures in Eclipse due to resources missing on the class path.
> When source and resource directories equal, the includes/excludes need to be merged.

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