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

Bug 337355

Summary: Changing settings.xml not taken into account
Product: z_Archived Reporter: Pascal Rapicault <pascal>
Component: m2eAssignee: Project Inbox <m2e.core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3 CC: igor
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Pascal Rapicault CLA 2011-02-16 15:26:40 EST
Steps to reproduce:
- Fire up eclipse
- Import the following project org.eclipse.m2e.tests/projects/lifecyclemapping/lifecycleMappingMetadata/PluginExecutionActionsTest/testMojoExecutionErrorWithMessage
- Notice the error
- change the settings.xml to be the one in org.eclipse.m2e.tests/settings.xml
- Go back to the project, you will notice that the error is still there and still referring to RSO. I have tried to clean, the project and the error does not work. the only way to get rid of the error is to delete the project and reimport it.

When I point to a different settings.xml I would expect things to be rebuilt automatically or at least don't want to have to delete and import to get rid of an error
Comment 1 Igor Fedorenko CLA 2011-02-16 16:13:25 EST
Can you check if (right-click)->Maven->UpdateDependencies makes the problem go away?
Comment 2 Pascal Rapicault CLA 2011-02-16 16:19:29 EST
Yes, doing update dependencies make it go away. Should we prompt the user when the settings.xml is changed?
Comment 3 Igor Fedorenko CLA 2011-02-16 17:22:49 EST
Changes to settings.xml can change everything. Ideally, we need to completely re-resolve all dependencies and update configuration of all projects. Again ideally, we also need to monitor out-of-workspace changes to settings.xml and do the same complete update of everything.
Comment 4 Igor Fedorenko CLA 2011-09-13 21:40:44 EDT
As explained in comment 3, automatically and correctly reflecting changes to settings.xml is not practically possible.
Comment 5 Denis Roy CLA 2021-04-19 13:26:31 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/