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

Bug 353312

Summary: @requiresDependencyResolution is not honoured
Product: z_Archived Reporter: Igor Fedorenko <igor>
Component: m2eAssignee: Igor Fedorenko <igor>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Igor Fedorenko CLA 2011-07-28 08:14:59 EDT
m2e does not honour @requiresDependencyResolution mojo descriptor attribute and always passes test project dependencies to the mojo. This results in subtle and often hard to diagnose problems cased by presence of unexpected dependencies.

Implementation-wise, MavenImpl.execute needs to set appropriate artifact filter on the MavenProject instance and make sure to restore restore project artifacts back back to test scope because some clients, like DefaultClasspathManagerDelegate.addClasspathEntries, assume to see test dependencies.
Comment 2 Denis Roy CLA 2021-04-19 13:23:09 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/