Can I remove duplicate run configurations from Eclipse view?

落爺英雄遲暮 提交于 2019-12-11 06:14:17

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!