1.新建一个空白的maven项目

  创建父子工程_数据

   创建父子工程_maven项目_02

   创建父子工程_配置文件_03

   删除src文件夹,在pom中新建<packaging>pom</packaging>

 

2.创建springboot项目模块

  创建父子工程_配置文件_04

   创建父子工程_spring_05

  创建父子工程_数据_06

   创建父子工程_spring_07

   修改配置文件pom.xml

  创建父子工程_spring_08

  在父工程的pom.xml中引入mqtt-driver项目

  <modules>   
     <module>mqtt-driver</module>
  </modules>

3.重复第二步创建model模块

  在driver的pom.xml中引入model模块

  <dependency>
  <groupId>com.example.agan</groupId>
  <artifactId>mqtt-model</artifactId>
  <version>3.2.0</version>
  </dependency>

  在父工程的pom.xml中引入mqtt-driver项目

  <modules>   
     <module>mqtt-model</model>
  </modules>

4.测试项目

  创建父子工程_数据_09

   创建父子工程_xml_10