多个版本的相同的多模块maven项目在eclipse下 [英] Multiple versions of the same multi-modules maven project under eclipse

查看:281
本文介绍了多个版本的相同的多模块maven项目在eclipse下的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在两种不同的版本下工作,相同的多模块maven项目在eclipse下。

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

不幸的是,当您在eclipse下导入多模块maven项目时,您可以自己更改父模块项目名称,以防止冲突,但不是子模块项目名称< STRONG>。子模块作为根项目导入,以模块名称命名。显然,在导入过程中没有办法重命名它们。

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.

在理想情况下,我希望保持pom 。显然,我想保持相同的eclipse工作区 ...

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

推荐答案

是的,你可以。您必须更改m2eclipse导入程序中的名称模式。所有模块都将具有此模式,并且您有一个无冲突的环境。

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.

这篇关于多个版本的相同的多模块maven项目在eclipse下的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆