Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 356568

Summary: Package rendering in resources in combination with excluding="**"
Product: z_Archived Reporter: Ulli Hafner <Knut.Friedhelm>
Component: m2eAssignee: Project Inbox <m2e.core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: digulla, igor, jnord, st.mailinglists, stephen.k.cooper
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard: stalebug
Attachments:
Description Flags
proposed patch none

Description Ulli Hafner CLA 2011-09-02 06:14:26 EDT
Build Identifier: I20110613-1736

m2e changes the build path for resources to excluding="**" (see FAQ). While this seems to be required for m2e it destroys the package rendering in the package explorer (see image in MNGECLIPSE-997).

Please get in touch with the JDT team on how to enable/correct the rendering such that packages will be shown again. If this is not possible then please provide an option to disable the creation of the excluding="**" part in the .classpath file as this feature/requirement is not used by a lot of Maven users and everything is working anyway (even with no excluding). 

Please also see:

http://jira.codehaus.org/browse/MNGECLIPSE-784,
http://jira.codehaus.org/browse/MNGECLIPSE-997,
http://jira.codehaus.org/browse/MNGECLIPSE-864,
http://jira.codehaus.org/browse/MNGECLIPSE-823,
http://jira.codehaus.org/browse/MNGECLIPSE-696,
http://jira.codehaus.org/browse/MNGECLIPSE-457).  Also
http://stackoverflow.com/questions/5137584/maven-eclipse-the-default-build-path-for-resources-excluded-everything
and other similar ones found when searching.


Reproducible: Always
Comment 1 James Nord CLA 2012-03-23 12:46:49 EDT
Created attachment 213113 [details]
proposed patch
Comment 2 Igor Fedorenko CLA 2012-03-23 19:53:15 EDT
I just to any possible confusion, there are no plans to change resources folders include/exclusion patterns to actually include any resources. All resource processing must be delegated to m2e. Any proposed patch must only affect presentation of resource folders. I do not believe JDT Package Explorer view allows this level of customization, but it may be possible to provide maven-specific models for the common navigator.
Comment 3 James Nord CLA 2012-03-26 12:05:00 EDT
The patch doesn't add add any includes to be handled by JDT - unless you have the dummy file present?
Comment 4 Stephen Cooper CLA 2012-05-07 13:00:12 EDT
Please see https://bugs.eclipse.org/bugs/show_bug.cgi?id=369296 for an example of how the ** exclusion filter breaks NLS tooling provided by Eclipse.
Comment 5 Igor Fedorenko CLA 2013-09-29 09:46:08 EDT
I'll keep this open for future references, but it is WONTFIX as indicated in comment #2
Comment 6 Igor Fedorenko CLA 2013-09-29 09:46:43 EDT
*** Bug 349525 has been marked as a duplicate of this bug. ***
Comment 7 Eclipse Genie CLA 2014-12-01 15:49:19 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 8 Denis Roy CLA 2021-04-19 13:21:55 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/