基于IDEA建立module操作步骤解析

时间:2021-11-28 16:00:39

maven项目可以创建多个module,在IDEA中具体操作

1、在已经建好的maven项目上右键

基于IDEA建立module操作步骤解析

2、新建:

基于IDEA建立module操作步骤解析

效果如下:

基于IDEA建立module操作步骤解析

这时在子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