elharo commented on issue #442:
URL: 
https://github.com/apache/maven-resources-plugin/issues/442#issuecomment-5143741597

   Clause sonnet thinks it found the root cause though my monthly credits ran 
out before it could send a fix. I'll try again tomorrow. 
   
   ```                                                                 
        Found the root cause. The ACCESSIBLE_FIELD_CACHE in 
EnhancedCompositeBeanHelper uses Field.equals() for lookup,    
        but setAccessible(true) must be called on each specific Field object. 
When CopyResourcesMojoFactory/               
        TestResourcesMojoFactory use different Field instances (from separate 
getDeclaredFields() calls) for the same      
        ResourcesMojo fields, the cache returns true (from the first 
execution's field), skips setAccessible, and field.   
        set() throws IllegalAccessException silently — leaving all field-path 
parameters at their defaults.                
                                                                                
                                           
        The fix: add explicit setters for all @Parameter fields in 
ResourcesMojo so the ECHB uses the method path (no      
        setAccessible needed). Also override setSkip in TestResourcesMojo so it 
writes to the correct skip field (fixing   
        MRESOURCES-131).
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to