pom.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>org.springframework.boot</groupId>
  8. <artifactId>spring-boot-starter-parent</artifactId>
  9. <version>1.5.9.RELEASE</version>
  10. </parent>
  11. <groupId>com.yihu.jw</groupId>
  12. <artifactId>wlyy-parent-pom</artifactId>
  13. <version>2.0.0</version>
  14. <packaging>pom</packaging>
  15. <developers>
  16. <developer>
  17. <id>cwd</id>
  18. <name>陈伟达</name>
  19. <email>494679975@qq.com</email>
  20. <organizationUrl>localhost</organizationUrl>
  21. <roles>
  22. <role>Project programmer</role>
  23. </roles>
  24. </developer>
  25. </developers>
  26. <!--deploy 的时候发布到这个服务器-->
  27. <distributionManagement>
  28. <repository>
  29. <id>jkzlRepositories</id>
  30. <name>jkzlRepositories</name>
  31. <url>http://172.19.103.43:8081/nexus/content/repositories/jkzlRepositories/</url>
  32. </repository>
  33. </distributionManagement>
  34. <!-- 私有仓库 -->
  35. <repositories>
  36. <repository>
  37. <id>public</id>
  38. <name>public</name>
  39. <url>http://172.19.103.43:8081/nexus/content/groups/public/</url>
  40. <releases>
  41. <enabled>true</enabled>
  42. </releases>
  43. <snapshots>
  44. <enabled>false</enabled>
  45. </snapshots>
  46. </repository>
  47. </repositories>
  48. <modules>
  49. <!-- 基础组件服务 -->
  50. <module>../server/svr-configuration</module> <!--配置服务-->
  51. <module>../server/svr-discovery</module><!--发现服务-->
  52. <!-- 暂时保留 -->
  53. <!--<module>../server/svr-dashboard</module>--><!--监控服务-->
  54. <!--<module>../server/svr-log-server</module>--><!--分布式追踪服务-->
  55. <!-- 暂时保留 -->
  56. <!-- 网关服务 -->
  57. <module>../gateway/basic-gateway</module> <!-- web网关 -->
  58. <!--业务微服务-->
  59. <module>../svr/svr-base</module><!-- 基础微服务 -->
  60. <module>../svr/svr-iot</module><!--物联网平台-->
  61. <!--<module>../svr/svr-wlyy</module>--> <!-- i健康微服务 -->
  62. <module>../svr/svr-wlyy-health-bank</module> <!-- 健康银行 -->
  63. <module>../svr/svr-wlyy-specialist</module> <!-- 啥玩意? -->
  64. <!--<module>../svr/svr-manage</module>--> <!-- 后台管理系统 -->
  65. <module>../svr/svr-rehabilitation</module> <!--专科医生康复计划-->
  66. <!-- 应用 -->
  67. <module>../app/app-iot-server</module>
  68. <module>../app/public-health-server</module>
  69. </modules>
  70. <properties>
  71. <!-- Version start -->
  72. <version.wlyy-common>2.0.0</version.wlyy-common>
  73. <version.jackson>2.8.1</version.jackson>
  74. <verion.fastjson>1.2.17</verion.fastjson>
  75. <version.json>20160212</version.json>
  76. <version.net-json>2.4</version.net-json>
  77. <version.logback>1.2.3</version.logback>
  78. <version.quartz>2.3.0</version.quartz>
  79. <version.swagger>2.7.0</version.swagger>
  80. <version.swagger-ui>2.7.0</version.swagger-ui>
  81. <version.swagger-annotations>1.5.20</version.swagger-annotations>
  82. <version.springside>4.2.3-GA</version.springside>
  83. <version.zipkin>1.24.0</version.zipkin>
  84. <version.joda-time>2.8.2</version.joda-time>
  85. <version.yihu.admin>1.2.0</version.yihu.admin>
  86. <version.spring-boot-admin>1.5.7</version.spring-boot-admin>
  87. <!-- Version end -->
  88. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  89. <asciidoctor.maven.plugin.version>1.5.5</asciidoctor.maven.plugin.version>
  90. <asciidoctorj.version>1.5.5</asciidoctorj.version>
  91. <maven.build.timestamp.format>yyyy-MM-dd HH:mm:ss</maven.build.timestamp.format>
  92. </properties>
  93. <!-- 子配置不写版本默认继承父配置 -->
  94. <dependencyManagement>
  95. <dependencies>
  96. <!-- Spring Cloud -->
  97. <dependency>
  98. <groupId>org.springframework.cloud</groupId>
  99. <artifactId>spring-cloud-dependencies</artifactId>
  100. <version>Edgware.SR2</version>
  101. <type>pom</type>
  102. <scope>import</scope>
  103. </dependency>
  104. <!-- wlyy common -->
  105. <dependency>
  106. <groupId>com.yihu.jw</groupId>
  107. <artifactId>common-fegin</artifactId>
  108. <version>${version.wlyy-common}</version>
  109. </dependency>
  110. <dependency>
  111. <groupId>com.yihu.jw</groupId>
  112. <artifactId>common-entity</artifactId>
  113. <version>${version.wlyy-common}</version>
  114. </dependency>
  115. <dependency>
  116. <groupId>com.yihu.jw</groupId>
  117. <artifactId>common-entity-es</artifactId>
  118. <version>${version.wlyy-common}</version>
  119. </dependency>
  120. <dependency>
  121. <groupId>com.yihu.jw</groupId>
  122. <artifactId>common-request-mapping</artifactId>
  123. <version>${version.wlyy-common}</version>
  124. </dependency>
  125. <dependency>
  126. <groupId>com.yihu.jw</groupId>
  127. <artifactId>common-exception</artifactId>
  128. <version>${version.wlyy-common}</version>
  129. </dependency>
  130. <dependency>
  131. <groupId>com.yihu.jw</groupId>
  132. <artifactId>common-rest-model</artifactId>
  133. <version>${version.wlyy-common}</version>
  134. </dependency>
  135. <dependency>
  136. <groupId>com.yihu.jw</groupId>
  137. <artifactId>common-rest-model-es</artifactId>
  138. <version>${version.wlyy-common}</version>
  139. </dependency>
  140. <dependency>
  141. <groupId>com.yihu.jw</groupId>
  142. <artifactId>svr-base</artifactId>
  143. <version>${version.wlyy-common}</version>
  144. </dependency>
  145. <dependency>
  146. <groupId>com.yihu.jw</groupId>
  147. <artifactId>common-util</artifactId>
  148. <version>${version.wlyy-common}</version>
  149. </dependency>
  150. <dependency>
  151. <groupId>com.yihu.jw</groupId>
  152. <artifactId>common-web</artifactId>
  153. <version>${version.wlyy-common}</version>
  154. </dependency>
  155. <!-- Jkzl Starter -->
  156. <dependency>
  157. <groupId>com.yihu</groupId>
  158. <artifactId>swagger-starter</artifactId>
  159. <version>2.0.0</version>
  160. </dependency>
  161. <dependency>
  162. <groupId>com.yihu</groupId>
  163. <artifactId>mysql-starter</artifactId>
  164. <version>2.0.0</version>
  165. </dependency>
  166. <dependency>
  167. <groupId>com.yihu</groupId>
  168. <artifactId>fastdfs-starter</artifactId>
  169. <version>2.0.0</version>
  170. </dependency>
  171. <dependency>
  172. <groupId>com.yihu</groupId>
  173. <artifactId>utils</artifactId> <!-- 此依赖包含大部分常用工具类 -->
  174. <version>2.0.0</version>
  175. </dependency>
  176. <!-- Alibaba -->
  177. <dependency>
  178. <groupId>com.alibaba</groupId>
  179. <artifactId>fastjson</artifactId>
  180. <version>${verion.fastjson}</version>
  181. </dependency>
  182. <!-- Json library -->
  183. <dependency>
  184. <groupId>org.json</groupId>
  185. <artifactId>json</artifactId>
  186. <version>${version.json}</version>
  187. </dependency>
  188. <!-- Net json library -->
  189. <dependency>
  190. <groupId>net.sf.json-lib</groupId>
  191. <artifactId>json-lib</artifactId>
  192. <version>${version.net-json}</version>
  193. </dependency>
  194. <!-- Log start -->
  195. <dependency>
  196. <groupId>ch.qos.logback</groupId>
  197. <artifactId>logback-classic</artifactId>
  198. <version>${version.logback}</version>
  199. </dependency>
  200. <dependency>
  201. <groupId>ch.qos.logback</groupId>
  202. <artifactId>logback-core</artifactId>
  203. <version>${version.logback}</version>
  204. </dependency>
  205. <dependency>
  206. <groupId>ch.qos.logback</groupId>
  207. <artifactId>logback-access</artifactId>
  208. <version>${version.logback}</version>
  209. </dependency>
  210. <!-- Quartz start -->
  211. <dependency>
  212. <groupId>org.quartz-scheduler</groupId>
  213. <artifactId>quartz</artifactId>
  214. <version>${version.quartz}</version>
  215. </dependency>
  216. <dependency>
  217. <groupId>org.quartz-scheduler</groupId>
  218. <artifactId>quartz-jobs</artifactId>
  219. <version>${version.quartz}</version>
  220. </dependency>
  221. <!-- Swagger ui -->
  222. <dependency>
  223. <groupId>io.springfox</groupId>
  224. <artifactId>springfox-swagger2</artifactId>
  225. <version>${version.swagger}</version>
  226. </dependency>
  227. <dependency>
  228. <groupId>io.springfox</groupId>
  229. <artifactId>springfox-swagger-ui</artifactId>
  230. <version>${version.swagger-ui}</version>
  231. </dependency>
  232. <dependency>
  233. <groupId>io.swagger</groupId>
  234. <artifactId>swagger-annotations</artifactId>
  235. <version>${version.swagger-annotations}</version>
  236. </dependency>
  237. <!-- Springside -->
  238. <dependency>
  239. <groupId>org.springside</groupId>
  240. <artifactId>springside-core</artifactId>
  241. <version>${version.springside}</version>
  242. <classifier>GA</classifier>
  243. </dependency>
  244. <!-- Zipkin 日志追踪 -->
  245. <!--<dependency>
  246. <groupId>io.zipkin.java</groupId>
  247. <artifactId>zipkin-server</artifactId>
  248. <version>${version.zipkin}</version>
  249. </dependency>
  250. <dependency>
  251. <groupId>io.zipkin.java</groupId>
  252. <artifactId>zipkin-autoconfigure-ui</artifactId>
  253. <version>${version.zipkin}</version>
  254. </dependency>
  255. <dependency>
  256. <groupId>io.zipkin.java</groupId>
  257. <artifactId>zipkin-autoconfigure-storage-elasticsearch-http</artifactId>
  258. <version>${version.zipkin}</version>
  259. </dependency>-->
  260. <!-- Scala -->
  261. <!--<dependency>
  262. <groupId>org.scala-lang</groupId>
  263. <artifactId>scala-library</artifactId>
  264. <version>${version.scala}</version>
  265. </dependency>
  266. <dependency>
  267. <groupId>org.scala-lang</groupId>
  268. <artifactId>scala-compiler</artifactId>
  269. <version>${version.scala}</version>
  270. </dependency>-->
  271. <!-- Joda -->
  272. <!--<dependency>
  273. <groupId>joda-time</groupId>
  274. <artifactId>joda-time</artifactId>
  275. <version>${version.joda-time}</version>
  276. </dependency>-->
  277. <!--服务器监监听-->
  278. <!--<dependency>
  279. <groupId>com.yihu</groupId>
  280. <artifactId>admin-client-starter</artifactId>
  281. <version>${version.yihu.admin}</version>
  282. </dependency>
  283. <dependency>
  284. <groupId>com.yihu</groupId>
  285. <artifactId>admin-server-starter</artifactId>
  286. <version>${version.yihu.admin}</version>
  287. </dependency>
  288. <dependency>
  289. <groupId>com.yihu</groupId>
  290. <artifactId>admin-server-ui-starter</artifactId>
  291. <version>${version.yihu.admin}</version>
  292. </dependency>
  293. <dependency>
  294. <groupId>de.codecentric</groupId>
  295. <artifactId>spring-boot-admin-server</artifactId>
  296. <version>${version.spring-boot-admin}</version>
  297. </dependency>
  298. <dependency>
  299. <groupId>de.codecentric</groupId>
  300. <artifactId>spring-boot-admin-server-ui</artifactId>
  301. <version>${version.spring-boot-admin}</version>
  302. </dependency>
  303. <dependency>
  304. <groupId>de.codecentric</groupId>
  305. <artifactId>spring-boot-admin-server-ui-hystrix</artifactId>
  306. <version>${version.spring-boot-admin}</version>
  307. </dependency>
  308. <dependency>
  309. <groupId>de.codecentric</groupId>
  310. <artifactId>spring-boot-admin-server-ui-turbine</artifactId>
  311. <version>${version.spring-boot-admin}</version>
  312. </dependency>-->
  313. </dependencies>
  314. </dependencyManagement>
  315. <build>
  316. <plugins>
  317. <!--编译插件 start-->
  318. <plugin>
  319. <groupId>org.apache.maven.plugins</groupId>
  320. <artifactId>maven-compiler-plugin</artifactId>
  321. <configuration>
  322. <source>1.8</source>
  323. <target>1.8</target>
  324. </configuration>
  325. <version>3.1</version>
  326. </plugin>
  327. <plugin>
  328. <groupId>org.apache.maven.plugins</groupId>
  329. <artifactId>maven-source-plugin</artifactId>
  330. <configuration>
  331. <attach>true</attach>
  332. </configuration>
  333. <executions>
  334. <execution>
  335. <phase>compile</phase>
  336. <goals>
  337. <goal>jar</goal>
  338. </goals>
  339. </execution>
  340. </executions>
  341. </plugin>
  342. <!--编译插件 end-->
  343. <plugin>
  344. <groupId>org.asciidoctor</groupId>
  345. <artifactId>asciidoctor-maven-plugin</artifactId>
  346. <version>${asciidoctor.maven.plugin.version}</version>
  347. <configuration>
  348. <sourceDirectory>build</sourceDirectory>
  349. <outputDirectory>build/asciidoc/${project.version}</outputDirectory>
  350. <headerFooter>true</headerFooter>
  351. <doctype>book</doctype>
  352. <sourceHighlighter>coderay</sourceHighlighter>
  353. <attributes>
  354. <toc>left</toc>
  355. <toclevels>3</toclevels>
  356. <sectnums>true</sectnums>
  357. <revnumber>${project.version}</revnumber>
  358. <revdate>${maven.build.timestamp}</revdate>
  359. <organization>厦门健康之路</organization>
  360. <sourcedir>${project.build.sourceDirectory}</sourcedir>
  361. </attributes>
  362. </configuration>
  363. <executions>
  364. <execution>
  365. <id>output-html</id>
  366. <phase>generate-resources</phase>
  367. <goals>
  368. <goal>process-asciidoc</goal>
  369. </goals>
  370. <configuration>
  371. <backend>html5</backend>
  372. </configuration>
  373. </execution>
  374. <execution>
  375. <id>output-docbook</id>
  376. <phase>generate-resources</phase>
  377. <goals>
  378. <goal>process-asciidoc</goal>
  379. </goals>
  380. <configuration>
  381. <backend>docbook</backend>
  382. </configuration>
  383. </execution>
  384. </executions>
  385. </plugin>
  386. </plugins>
  387. <pluginManagement>
  388. <plugins>
  389. <!--打成war包插件 还需要
  390. 1.配置类继承SpringBootServletInitializer
  391. 2.把所有tomcat相关的包的生命周期改成provide
  392. start-->
  393. <plugin>
  394. <artifactId>maven-war-plugin</artifactId>
  395. <configuration>
  396. <failOnMissingWebXml>false</failOnMissingWebXml>
  397. </configuration>
  398. </plugin>
  399. <!--打成war包插件 end-->
  400. <!--springboot插件 start-->
  401. <plugin>
  402. <groupId>org.springframework.boot</groupId>
  403. <artifactId>spring-boot-maven-plugin</artifactId>
  404. <executions>
  405. <execution>
  406. <goals>
  407. <goal>repackage</goal>
  408. </goals>
  409. </execution>
  410. </executions>
  411. </plugin>
  412. <!--springboot插件 en-->
  413. </plugins>
  414. </pluginManagement>
  415. </build>
  416. </project>