IDEA 新建 module

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

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

  

2、新建:

效果如下:


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

  

猜你喜欢

转载自www.cnblogs.com/acm-bingzi/p/idea-new-module.html