简体   繁体   English

重命名Maven项目中的模块?

[英]Renaming module in maven project?

I have below multi module maven project. 我下面有多模块Maven项目。

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

now i want to rename artifactId2 . 现在我想重命名artifactId2 how can i do this? 我怎样才能做到这一点?

Thanks! 谢谢!

It's a two step procedure: 这是一个两步过程:

1) Rename the project in Eclipse (F2 or Refactor -> Rename) 1)在Eclipse中重命名项目(F2或Refactor->重命名)
2) Update the artifactId in the parent pom.xml and in the artifactId2 pom.xml 2)更新父pom.xml和artifactId2 pom.xml中的artifactId

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM