2

I want to disable the Update Project Configuration From Pom.xml and Refresh Workspace Resources from Local File System options so that whenever I have to Clean the Maven Projects, I won't have to select these options by mistake. Can Anybody please help me.

enter image description here

Marged
  • 10,577
  • 10
  • 57
  • 99
iLearn
  • 991
  • 1
  • 13
  • 27
  • Similar problem for me, instead I want to make these options to be _activated_ by default :) Have you found a solution or where to configure? – Xsasan Apr 04 '17 at 14:40
  • 1
    Not Yet, I even posted the same question in the IBM but no answers yet https://developer.ibm.com/answers/questions/356850/disable-options-available-in-the-update-maven-proj.html – iLearn Apr 04 '17 at 18:27
  • @greencheese Any news with this topic? Because I'm interested in disabling these checkboxes as well. – MuffinMICHI Dec 10 '18 at 15:52

1 Answers1

0

With current version (1.3.0-SNAPSHOT), this seems not to be configurable. See the source code: https://github.com/achingbrain/m2e-core/blob/master/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/UpdateMavenProjectsDialog.java

btnUpdateProjectConfiguration = new Button(optionsComposite, SWT.CHECK);
btnUpdateProjectConfiguration.setSelection(true);
btnUpdateProjectConfiguration.setText(Messages.UpdateMavenProjectDialog_btnUpdateProjectConfiguration_text);
//
btnCleanProjects = new Button(optionsComposite, SWT.CHECK);
btnCleanProjects.setSelection(true);
btnCleanProjects.setText(Messages.UpdateMavenProjectDialog_btnCleanProjects_text);

So we have to push your request on developers side :)

Xsasan
  • 400
  • 3
  • 14
  • I didn't try it myself, since it is not that urgent for me :) – Xsasan May 11 '17 at 08:12
  • You can find the code over here now https://git.eclipse.org/c/m2e/m2e-core.git/tree/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/UpdateMavenProjectsDialog.java and it still doesn't allow customisation – Bae May 24 '21 at 04:55