Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-dev] M2E exclude folders in main/resource by default with a Excluded=**

Thanks Fred

On Sat, Nov 3, 2018 at 7:29 PM Fred Bricon <fbricon@xxxxxxxxx> wrote:

"

Why do Resource Folders in Java Project Have excluded="*"

Many users are confused that when Java project is configured in Eclipse, resource folders gets excluded="*". This is done intentionally, because those resources are processed by the “Maven Builder” registered to the project. This builder provides special resource handling, that includes filtering, as well as execution of other Maven plugins for processing resources. See Maven build lifecycle for more details.

If you manually remove resource exclusion, JDT will copy resources and overwrite filtered resources generated by Maven plugins.

Actually project resource folder doesn'™t really need to be added to the buildpath (Maven Builder is going to work without it), but it been considered convenient and look better in the Package Explorer and other Eclipse views.

Also note, that classpath used for JUnit and Java Application launch configurations for projects that have Maven support enabled is also calculated in a special way and excluded resources does not affect it either.

"

On Sat, Nov 3, 2018 at 9:56 AM Gayan Perera <gayanper@xxxxxxxxx> wrote:
When importing the maven project using M2E, under the Java Build Path > Source tab the src/main/resources has the Included=ALL and Excluded=** which cause all the folders inside the resources directory to be excluded. Any reason for this ? how can i get to include all the sub folder by default ?

Best regards,
GAP
_______________________________________________
m2e-dev mailing list
m2e-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/m2e-dev


--
"Have you tried turning it off and on again" - The IT Crowd
And if that fails, then http://goo.gl/tnBgH5
_______________________________________________
m2e-dev mailing list
m2e-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/m2e-dev

Back to the top