4.0.0
com.pc DA_Refactoring_Parent 0.0.1-SNAPSHOT pom
DA_Refactoring_Parent http://maven.apache.org
UTF-8 Finchley.SR4 UTF-8 1.8 org.springframework.boot spring-boot-starter-parent 2.0.9.RELEASE org.springframework.cloud spring-cloud-dependencies ${spring-cloud.version} pom import ../eurekaserver ../bs ../dqservernode ../dqc ../ds ../common-node ../common-driver ../gateway ../md ../mg ../sp ../ss
common-driver依赖common-node dqc和mg依赖common-driver eureka和gateway单独不依赖其它
因为common-node和common-driver没有springboot的主启动类,所以只能使用maven插件的build,不能使用上图中的spring-boot-maven-plugin打包。否则会报错common-node和common-drvier中没有springboot的主启动类,其他各个节点中自己都有spring-boot-maven-plugin。
子模块中的pom.xml中引用父工程的内容,以下2种都可以,建议选第一种,第二种我提交代码到git后,同事更新下来后编译时候报错,同事使用eclipse的luna,我使用spring tool suits。
com.pc DA_Refactoring_Parent 0.0.1-SNAPSHOT ../DA_Refactoring_Parent ss ss
com.pc DA_Refactoring_Parent 0.0.1-SNAPSHOT com.pc bs 0.0.1-SNAPSHOT bs bs