问题
I have Maven parent project with children.
When I go to Run -> Run Configurations... in Java Application I see few launchers twice - the only difference is path in Common tab, section Save as... Shared file.
I can't even rename one of them without renaming the second.
Is there a way to at least hide one of two same-named entries? Because now it's a little confusing when you look at it without wider spectrum.
回答1:
Launch configurations appear as duplicates in Eclipse if the following conditions apply:
- the launch configurations are contained in a project
- the project is part of a Maven Module Project
- both projects are open in your workspace
Your hinted that "the only difference is path in Common tab". Comparing the paths will look like:
- "\moduleProject\containedProject"-path
- "\containedProject"-path
Solution: Close the Maven Module Project in your workspace.
来源:https://stackoverflow.com/questions/44026737/can-i-remove-duplicate-run-configurations-from-eclipse-view