重命名Maven项目中的模块? [英] Renaming module in maven project?

查看:485
本文介绍了重命名Maven项目中的模块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下面有多模块maven项目.

I have below multi module maven project.

Parent
      pom.xml
      artifactId1
            pom.xml
      artifactId2
            pom.xml

现在我想重命名artifactId2.我该怎么办?

now i want to rename artifactId2. how can i do this?

谢谢!

推荐答案

这是一个两步过程:

It's a two step procedure:

1)在Eclipse中重命名项目(F2或Refactor->重命名)
2)更新父pom.xml和artifactId2 pom.xml中的artifactId

1) Rename the project in Eclipse (F2 or Refactor -> Rename)
2) Update the artifactId in the parent pom.xml and in the artifactId2 pom.xml

这篇关于重命名Maven项目中的模块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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