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

Bug 330408

Summary: Process-Resources doesn't always process generated-sources
Product: z_Archived Reporter: David Carver <d_a_carver>
Component: m2eAssignee: Project Inbox <m2e.core-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: igor, pascal
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description David Carver CLA 2010-11-16 16:34:11 EST
When importing a large number of modules, that do codegeneration, and specifying in the maven preferences to process-resources in the goals to run on import, m2eclipse will fail to add the resources to the project.

Even going to Maven->Update Project Configuration will fail to add the folders to the build path as source folders.   

If there are a smaller number of projects it seems to work correctly.
Comment 1 Pascal Rapicault CLA 2010-11-21 16:00:41 EST
Do you have a reproducible test case or is the source code for this large project available? Thx
Comment 2 David Carver CLA 2010-11-21 16:22:17 EST
(In reply to comment #1)
> Do you have a reproducible test case or is the source code for this large
> project available? Thx

Unfortunately, nothing I can share at this time.  I'll see if I can get something reproducable.   If it helps, once this happens, you can't even do an Update Configuration on the project to force it to add the generated-sources as source folders.
Comment 3 Igor Fedorenko CLA 2011-01-21 12:52:04 EST
All known outstanding m2e *core* issues related to resources processing and code generation have been addressed.

As of 0.13.0 M5, resource processing is expected to work for projects using maven-resources-plugin 2.4.1 or better (there will be an error marker for projects using earlier/unsupported resources plugin version). Source code generation maven plugin generally require corresponding m2e extension, which are not part of m2e core and will have to be explicitly installed. The core will provide a quick-fix to help users find required extensions.

Please reopen if you still have problems
Comment 4 Denis Roy CLA 2021-04-19 13:23:10 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/