Multiple versions of the same multi-modules maven project under eclipse

元气小坏坏 提交于 2020-01-02 04:30:28

问题


I'd like to work on two different versions of the same multi-modules maven project under eclipse.

Unfortunately, when you import a multi-module maven project under eclipse, you can change the parent module project name yourself, to prevent conflicts, but not the child modules projects names. Child modules are imported as root projects, named after the module name. Apparently there is no way to rename them during import.

In an ideal scenario, I'd like to keep the pom as it is. Obviously I'd like to keep the same eclipse workspace...


回答1:


Yes, you can. You have to change the name pattern in the m2eclipse importer. All modules will have this pattern and you have a conflict-free env.



来源:https://stackoverflow.com/questions/10445252/multiple-versions-of-the-same-multi-modules-maven-project-under-eclipse

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