Skip to content

Commit

Permalink
fix: the `Maven Project Builder' duplicate issue
Browse files Browse the repository at this point in the history
 uncheck it then do `maven -> Update Project...` we'll see the duplicate
  • Loading branch information
qxo authored and akurtakov committed Oct 4, 2024
1 parent 44c00e7 commit e51e38a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,10 @@ public boolean removeMavenBuilder(IProject project, IProjectDescription descript
}

private boolean isMavenBuilderCommand(ICommand command) {
return IMavenConstants.BUILDER_ID.equals(command.getBuilderName());
final String name = command.getBuilderName();
return IMavenConstants.BUILDER_ID.equals(name)
|| "org.eclipse.ui.externaltools.ExternalToolBuilder".equals(name)
&& command.getArguments().toString().contains("LaunchConfigHandle=<project>/.externalToolBuilders/org.eclipse.m2e.core.maven2Builder");
}

// project creation
Expand Down

0 comments on commit e51e38a

Please sign in to comment.