这里只提供部分pom内容,全手写,请勿粘贴使用,仅供参考。主module:
<groupId>com.xxx.a</groupId>
<artifactId>Master</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>Master</name>
<modules>
<module>aName</module>
<module>bName</module>
<module>cName</module>
<module>dName</module>
</modules>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.1.RELEASE</version>
</parent>
<properties>
<mybatis-spring-boot.version>1.1.1</mybatis-spring-boot.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<dependency>
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>${mybatis-spring-boot.version}</version>
<dependency>
<dependencies>
module a的pom内容如下(module b,module c,module d同理):
<parent>
<groupId>com.xxx.a</groupId>
<artifactId>Master</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<artifactId>aName</artifactId>
<name>aName</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>