maven項目可以創建多個module,在IDEA中具體操作
1、在已經建好的maven項目上右鍵
2、新建:
效果如下:
這時在子pom.xml中
1
2
3
4
5
6
7
8
|
< parent > < artifactId >spring-shell</ artifactId > < groupId >cn.jiashubing</ groupId > < version >1.0-SNAPSHOT</ version > </ parent > < modelVersion >4.0.0</ modelVersion > < artifactId >cli</ artifactId > |
父 pom.xml中
1
2
3
|
< modules > < module >cli</ module > </ modules > |
以上就是本文的全部內容,希望對大家的學習有所幫助,也希望大家多多支持服務器之家。
原文鏈接:https://www.cnblogs.com/acm-bingzi/p/idea-new-module.html