| Summary: | [patch] Cannot use ! to disable a profile | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | benson margulies <bimargulies> | ||||||||||
| Component: | m2e | Assignee: | Project Inbox <m2e.core-inbox> | ||||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||||
| Severity: | normal | ||||||||||||
| Priority: | P3 | CC: | hute37, igor | ||||||||||
| Version: | unspecified | ||||||||||||
| Target Milestone: | --- | ||||||||||||
| Hardware: | PC | ||||||||||||
| OS: | Mac OS X - Carbon (unsup.) | ||||||||||||
| Whiteboard: | |||||||||||||
| Attachments: |
|
||||||||||||
|
Description
benson margulies
Created attachment 206542 [details]
Test case to reproduce the issue
Created attachment 206543 [details]
Proposed patch to fix the issue
Inactive profiles are ignored when creating Maven requests. ResolverConfiguration treats all profiles as active profiles, instead of splitting them into active / inactive ones.
Proposed patch deprecates getActiveProfiles() in ResolverConfiguration and replaces it with getSelectedProfiles(). getActiveProfileList() and getInctiveProfileList() return the proper profiles wrt their activation state.
Although I agree the proposed change is generally useful, the patch needs little more work 1. all references to now deprecated getActiveProfiles/setActiveProfiles should be removed from m2e-core and m2e-core-test 2. the attached test fails due to missing surefire-plugin version when run against current m2e-core 1.1 (hint: use org.eclipse.m2e.test:m2e-test-parent:1.0.0 parent to make sure test projects use available versions of maven core plugins). Created attachment 208683 [details]
Updated Patch fixing the issue
Created attachment 208684 [details]
Updated test case
applied the patches, thank you. (I amended m2e-core-tests patch not to change tycho version, which is unrelated to ! profile change) |