pom.xml 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  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. <groupId>com.diagbot</groupId>
  7. <artifactId>cdss</artifactId>
  8. <version>0.0.1-SNAPSHOT</version>
  9. <packaging>jar</packaging>
  10. <name>cdss</name>
  11. <description>临床决策支持系统</description>
  12. <parent>
  13. <groupId>org.springframework.boot</groupId>
  14. <artifactId>spring-boot-starter-parent</artifactId>
  15. <version>2.2.1.RELEASE</version>
  16. <relativePath/>
  17. </parent>
  18. <properties>
  19. <maven.compiler.source>1.8</maven.compiler.source>
  20. <maven.compiler.target>1.8</maven.compiler.target>
  21. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  22. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  23. <java.version>1.8</java.version>
  24. <spring-cloud.version>Hoxton.RELEASE</spring-cloud.version>
  25. <mybatis-plus-boot-starter.version>3.2.0</mybatis-plus-boot-starter.version>
  26. <mybatis-spring-boot.version>2.1.1</mybatis-spring-boot.version>
  27. <druid.version>1.1.21</druid.version>
  28. <swagger.version>2.9.2</swagger.version>
  29. <easypoi.version>4.2.0</easypoi.version>
  30. <docker-maven-plugin.version>1.2.1</docker-maven-plugin.version>
  31. <aggregator.version>1.1.3</aggregator.version>
  32. </properties>
  33. <dependencyManagement>
  34. <dependencies>
  35. <dependency>
  36. <groupId>org.springframework.cloud</groupId>
  37. <artifactId>spring-cloud-dependencies</artifactId>
  38. <version>${spring-cloud.version}</version>
  39. <type>pom</type>
  40. <scope>import</scope>
  41. </dependency>
  42. </dependencies>
  43. </dependencyManagement>
  44. <dependencies>
  45. <dependency>
  46. <groupId>com.diagbot</groupId>
  47. <artifactId>common</artifactId>
  48. <version>0.0.1-SNAPSHOT</version>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.jolokia</groupId>
  52. <artifactId>jolokia-core</artifactId>
  53. </dependency>
  54. <!-- 开启web-->
  55. <dependency>
  56. <groupId>org.springframework.boot</groupId>
  57. <artifactId>spring-boot-starter-web</artifactId>
  58. <exclusions>
  59. <exclusion>
  60. <groupId>org.springframework.boot</groupId>
  61. <artifactId>spring-boot-starter-tomcat</artifactId>
  62. </exclusion>
  63. </exclusions>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.springframework.boot</groupId>
  67. <artifactId>spring-boot-starter-undertow</artifactId>
  68. </dependency>
  69. <!-- 开启feign-->
  70. <dependency>
  71. <groupId>org.springframework.cloud</groupId>
  72. <artifactId>spring-cloud-starter-openfeign</artifactId>
  73. </dependency>
  74. <!-- dashboard -->
  75. <!-- actuator-->
  76. <dependency>
  77. <groupId>org.springframework.boot</groupId>
  78. <artifactId>spring-boot-starter-actuator</artifactId>
  79. </dependency>
  80. <!--hystrix -->
  81. <dependency>
  82. <groupId>org.springframework.cloud</groupId>
  83. <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
  84. </dependency>
  85. <!--swagger-->
  86. <dependency>
  87. <groupId>io.springfox</groupId>
  88. <artifactId>springfox-swagger2</artifactId>
  89. <version>${swagger.version}</version>
  90. </dependency>
  91. <dependency>
  92. <groupId>io.springfox</groupId>
  93. <artifactId>springfox-swagger-ui</artifactId>
  94. <version>${swagger.version}</version>
  95. </dependency>
  96. <!--database-->
  97. <dependency>
  98. <groupId>mysql</groupId>
  99. <artifactId>mysql-connector-java</artifactId>
  100. <scope>runtime</scope>
  101. </dependency>
  102. <!--security-->
  103. <dependency>
  104. <groupId>org.springframework.cloud</groupId>
  105. <artifactId>spring-cloud-starter-oauth2</artifactId>
  106. </dependency>
  107. <!-- easypoi -->
  108. <dependency>
  109. <groupId>cn.afterturn</groupId>
  110. <artifactId>easypoi-spring-boot-starter</artifactId>
  111. <version>${easypoi.version}</version>
  112. </dependency>
  113. <dependency>
  114. <groupId>org.projectlombok</groupId>
  115. <artifactId>lombok</artifactId>
  116. <optional>true</optional>
  117. </dependency>
  118. <!-- mybatis-plus begin -->
  119. <dependency>
  120. <groupId>com.baomidou</groupId>
  121. <artifactId>mybatis-plus-boot-starter</artifactId>
  122. <version>${mybatis-plus-boot-starter.version}</version>
  123. </dependency>
  124. <dependency>
  125. <groupId>com.baomidou</groupId>
  126. <artifactId>mybatis-plus-generator</artifactId>
  127. <version>${mybatis-plus-boot-starter.version}</version>
  128. </dependency>
  129. <!-- mybatis-plus end -->
  130. <!-- 阿里巴巴druid数据库连接池 -->
  131. <dependency>
  132. <groupId>com.alibaba</groupId>
  133. <artifactId>druid-spring-boot-starter</artifactId>
  134. <version>${druid.version}</version>
  135. </dependency>
  136. <!-- springboot整合mybatis(核心就这一个) -->
  137. <!-- 注意顺序,这个一定要放在最下面 -->
  138. <dependency>
  139. <groupId>org.mybatis.spring.boot</groupId>
  140. <artifactId>mybatis-spring-boot-starter</artifactId>
  141. <version>${mybatis-spring-boot.version}</version>
  142. </dependency>
  143. <!--redis设置-->
  144. <dependency>
  145. <groupId>org.springframework.boot</groupId>
  146. <artifactId>spring-boot-starter-data-redis</artifactId>
  147. </dependency>
  148. <dependency>
  149. <groupId>org.apache.commons</groupId>
  150. <artifactId>commons-pool2</artifactId>
  151. </dependency>
  152. <!-- 文件上传相关架包 -->
  153. <dependency>
  154. <groupId>commons-fileupload</groupId>
  155. <artifactId>commons-fileupload</artifactId>
  156. <version>1.3.1</version>
  157. </dependency>
  158. <dependency>
  159. <groupId>commons-io</groupId>
  160. <artifactId>commons-io</artifactId>
  161. <version>2.4</version>
  162. </dependency>
  163. <dependency>
  164. <groupId>com.squareup.okhttp3</groupId>
  165. <artifactId>okhttp</artifactId>
  166. </dependency>
  167. <dependency>
  168. <groupId>io.github.lvyahui8</groupId>
  169. <artifactId>spring-boot-data-aggregator-starter</artifactId>
  170. <version>${aggregator.version}</version>
  171. </dependency>
  172. </dependencies>
  173. <build>
  174. <plugins>
  175. <plugin>
  176. <artifactId>maven-dependency-plugin</artifactId>
  177. <executions>
  178. <execution>
  179. <id>copy</id>
  180. <phase>package</phase>
  181. <goals>
  182. <goal>copy-dependencies</goal>
  183. </goals>
  184. <configuration>
  185. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  186. </configuration>
  187. </execution>
  188. </executions>
  189. </plugin>
  190. <plugin>
  191. <artifactId>maven-resources-plugin</artifactId>
  192. <executions>
  193. <execution>
  194. <id>copy-resources</id>
  195. <phase>package</phase>
  196. <goals>
  197. <goal>copy-resources</goal>
  198. </goals>
  199. <configuration>
  200. <resources>
  201. <resource>
  202. <directory>src/main/resources</directory>
  203. </resource>
  204. </resources>
  205. <outputDirectory>${project.build.directory}/resources</outputDirectory>
  206. </configuration>
  207. </execution>
  208. </executions>
  209. </plugin>
  210. <plugin>
  211. <artifactId>maven-jar-plugin</artifactId>
  212. <configuration>
  213. <excludes>
  214. <exclude>mapper</exclude>
  215. <exclude>*.**</exclude>
  216. <exclude>**/*.xml</exclude>
  217. <exclude>**/*.yml</exclude>
  218. </excludes>
  219. <archive>
  220. <manifest>
  221. <mainClass>${main-class}</mainClass>
  222. <addClasspath>true</addClasspath>
  223. <classpathPrefix>lib/</classpathPrefix>
  224. <useUniqueVersions>false</useUniqueVersions>
  225. </manifest>
  226. </archive>
  227. <outputDirectory>${project.build.directory}</outputDirectory>
  228. </configuration>
  229. </plugin>
  230. </plugins>
  231. </build>
  232. </project>