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

 

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

IDEA 新建 module

  

2、新建:

IDEA 新建 module

 

效果如下:

IDEA 新建 module


这时在子pom.xml中

<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中

<modules>
    <module>cli</module>
</modules>

  

相关文章:

  • 2021-11-09
  • 2022-12-23
  • 2021-07-23
  • 2021-10-10
  • 2021-04-25
  • 2021-11-24
  • 2021-08-09
猜你喜欢
  • 2021-05-06
  • 2021-10-21
  • 2021-10-17
  • 2022-12-23
  • 2021-07-31
  • 2022-01-22
  • 2022-01-12
相关资源
相似解决方案