Community
Participate
Working Groups
Build Identifier: 20110609-2236 When adding a dependency to a Maven project, the dependency is incorrectly added to the latest opened pom in the editor. Reproducible: Always Steps to Reproduce: 1. I have 2 Maven projects in my workspace. 2. Open the pom of project A in the editor 3. Right click on project B -> Maven -> Add dependency 4. Search a dependency in the dialog then OK 5. Dependency is added to project A !
the most likely culprit is MavenActionSupport.getPomFileFromPomEditorOrViewSelection()
http://git.eclipse.org/c/m2e/m2e-core.git/commit/?id=20333002e8e521f399d661449f4d05ba82447e2a current selection needs to be processed primarily, the active editor is a relict of time when we had actions in main menu (and back even then it was wrong)
Moved to https://github.com/eclipse-m2e/m2e-core/issues/