创建多模块项目

1.首先创建一个空的项目

image

接下来是这个

image

点击加号new modules

image

新建一个空白标准maven project

image

写项目坐标

image

填写maven项目名并finish

image

之前的步骤再来一遍

image

写项目坐标(上面全部选为none)

image

改写自己的路径

image

结束

配置xml

   <properties>
       <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
       <maven.compiler.source>1.8</maven.compiler.source>
       <maven.compiler.target>1.8</maven.compiler.target>
       <spring.version>5.0.10.RELEASE</spring.version>
   </properties>

   <dependencies>
       <dependency>
           <groupId>junit</groupId>
           <artifactId>junit</artifactId>
           <version>4.12</version>
           <scope>test</scope>
       </dependency>

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容