Community
Participate
Working Groups
Build Identifier: 20100917-0705 Under project settings, under maven, under 'Active Maven Profiles', ! does not work to turn OFF a profile which is otherwise activated by default. The maven console shows that it is actually trying to activate a profile with a ! in its name. Reproducible: Always
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)
Moved to https://github.com/eclipse-m2e/m2e-core/issues/