pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  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. <logstash.version>5.2</logstash.version>
  30. <easypoi.version>4.2.0</easypoi.version>
  31. <docker-maven-plugin.version>1.2.1</docker-maven-plugin.version>
  32. <aggregator.version>1.1.3</aggregator.version>
  33. <docker.image.prefix>192.168.2.121:5000/diagbotcloud</docker.image.prefix>
  34. <registryUrl>http://192.168.2.121:5000/repository/diagbotcloud/</registryUrl>
  35. </properties>
  36. <dependencyManagement>
  37. <dependencies>
  38. <dependency>
  39. <groupId>org.springframework.cloud</groupId>
  40. <artifactId>spring-cloud-dependencies</artifactId>
  41. <version>${spring-cloud.version}</version>
  42. <type>pom</type>
  43. <scope>import</scope>
  44. </dependency>
  45. </dependencies>
  46. </dependencyManagement>
  47. <dependencies>
  48. <dependency>
  49. <groupId>com.diagbot</groupId>
  50. <artifactId>common</artifactId>
  51. <version>0.0.1-SNAPSHOT</version>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.springframework.boot</groupId>
  55. <artifactId>spring-boot-starter-test</artifactId>
  56. <scope>test</scope>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.jolokia</groupId>
  60. <artifactId>jolokia-core</artifactId>
  61. </dependency>
  62. <!-- 开启web-->
  63. <dependency>
  64. <groupId>org.springframework.boot</groupId>
  65. <artifactId>spring-boot-starter-web</artifactId>
  66. <exclusions>
  67. <exclusion>
  68. <groupId>org.springframework.boot</groupId>
  69. <artifactId>spring-boot-starter-tomcat</artifactId>
  70. </exclusion>
  71. </exclusions>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.springframework.boot</groupId>
  75. <artifactId>spring-boot-starter-undertow</artifactId>
  76. </dependency>
  77. <!-- 开启feign-->
  78. <dependency>
  79. <groupId>org.springframework.cloud</groupId>
  80. <artifactId>spring-cloud-starter-openfeign</artifactId>
  81. </dependency>
  82. <!-- dashboard -->
  83. <!-- actuator-->
  84. <dependency>
  85. <groupId>org.springframework.boot</groupId>
  86. <artifactId>spring-boot-starter-actuator</artifactId>
  87. </dependency>
  88. <!--hystrix-dashboard-->
  89. <dependency>
  90. <groupId>org.springframework.cloud</groupId>
  91. <artifactId>spring-cloud-starter-netflix-hystrix-dashboard</artifactId>
  92. </dependency>
  93. <!--hystrix -->
  94. <dependency>
  95. <groupId>org.springframework.cloud</groupId>
  96. <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
  97. </dependency>
  98. <!--swagger-->
  99. <dependency>
  100. <groupId>io.springfox</groupId>
  101. <artifactId>springfox-swagger2</artifactId>
  102. <version>${swagger.version}</version>
  103. </dependency>
  104. <dependency>
  105. <groupId>io.springfox</groupId>
  106. <artifactId>springfox-swagger-ui</artifactId>
  107. <version>${swagger.version}</version>
  108. </dependency>
  109. <!--database-->
  110. <dependency>
  111. <groupId>mysql</groupId>
  112. <artifactId>mysql-connector-java</artifactId>
  113. <scope>runtime</scope>
  114. </dependency>
  115. <!--security-->
  116. <dependency>
  117. <groupId>org.springframework.cloud</groupId>
  118. <artifactId>spring-cloud-starter-oauth2</artifactId>
  119. </dependency>
  120. <!-- easypoi -->
  121. <dependency>
  122. <groupId>cn.afterturn</groupId>
  123. <artifactId>easypoi-spring-boot-starter</artifactId>
  124. <version>${easypoi.version}</version>
  125. </dependency>
  126. <dependency>
  127. <groupId>org.projectlombok</groupId>
  128. <artifactId>lombok</artifactId>
  129. <optional>true</optional>
  130. </dependency>
  131. <dependency>
  132. <groupId>net.logstash.logback</groupId>
  133. <artifactId>logstash-logback-encoder</artifactId>
  134. <version>${logstash.version}</version>
  135. </dependency>
  136. <!-- mybatis-plus begin -->
  137. <dependency>
  138. <groupId>com.baomidou</groupId>
  139. <artifactId>mybatis-plus-boot-starter</artifactId>
  140. <version>${mybatis-plus-boot-starter.version}</version>
  141. </dependency>
  142. <dependency>
  143. <groupId>com.baomidou</groupId>
  144. <artifactId>mybatis-plus-generator</artifactId>
  145. <version>${mybatis-plus-boot-starter.version}</version>
  146. </dependency>
  147. <!-- mybatis-plus end -->
  148. <!-- 阿里巴巴druid数据库连接池 -->
  149. <dependency>
  150. <groupId>com.alibaba</groupId>
  151. <artifactId>druid-spring-boot-starter</artifactId>
  152. <version>${druid.version}</version>
  153. </dependency>
  154. <!-- springboot整合mybatis(核心就这一个) -->
  155. <!-- 注意顺序,这个一定要放在最下面 -->
  156. <dependency>
  157. <groupId>org.mybatis.spring.boot</groupId>
  158. <artifactId>mybatis-spring-boot-starter</artifactId>
  159. <version>${mybatis-spring-boot.version}</version>
  160. </dependency>
  161. <!--redis设置-->
  162. <dependency>
  163. <groupId>org.springframework.boot</groupId>
  164. <artifactId>spring-boot-starter-data-redis</artifactId>
  165. </dependency>
  166. <dependency>
  167. <groupId>org.apache.commons</groupId>
  168. <artifactId>commons-pool2</artifactId>
  169. </dependency>
  170. <!--消息中心-->
  171. <dependency>
  172. <groupId>org.springframework.cloud</groupId>
  173. <artifactId>spring-cloud-starter-stream-rabbit</artifactId>
  174. </dependency>
  175. <!-- 文件上传相关架包 -->
  176. <dependency>
  177. <groupId>commons-fileupload</groupId>
  178. <artifactId>commons-fileupload</artifactId>
  179. <version>1.3.1</version>
  180. </dependency>
  181. <dependency>
  182. <groupId>commons-io</groupId>
  183. <artifactId>commons-io</artifactId>
  184. <version>2.4</version>
  185. </dependency>
  186. <dependency>
  187. <groupId>com.squareup.okhttp3</groupId>
  188. <artifactId>okhttp</artifactId>
  189. </dependency>
  190. <dependency>
  191. <groupId>io.github.lvyahui8</groupId>
  192. <artifactId>spring-boot-data-aggregator-starter</artifactId>
  193. <version>${aggregator.version}</version>
  194. </dependency>
  195. <!-- dom4j XML解析 -->
  196. <dependency>
  197. <groupId>dom4j</groupId>
  198. <artifactId>dom4j</artifactId>
  199. <version>1.6.1</version>
  200. </dependency>
  201. </dependencies>
  202. <!-- 私有仓库 -->
  203. <repositories>
  204. <repository>
  205. <id>nexus-releases</id>
  206. <name>Nexus Release Repository</name>
  207. <url>http://192.168.2.236:8081/repository/maven-releases/</url>
  208. </repository>
  209. <repository>
  210. <id>nexus-snapshots</id>
  211. <name>Nexus Snapshot Repository</name>
  212. <url>http://192.168.2.236:8081/repository/maven-snapshots/</url>
  213. </repository>
  214. </repositories>
  215. <!-- 私有仓库 -->
  216. <pluginRepositories>
  217. <pluginRepository>
  218. <id>nexus-releases</id>
  219. <name>Nexus Release Repository</name>
  220. <url>http://192.168.2.236:8081/repository/maven-releases/</url>
  221. <releases>
  222. <enabled>true</enabled>
  223. </releases>
  224. </pluginRepository>
  225. <pluginRepository>
  226. <id>nexus-snapshots</id>
  227. <name>Nexus Snapshot Repository</name>
  228. <url>http://192.168.2.236:8081/repository/maven-snapshots/</url>
  229. <snapshots>
  230. <enabled>true</enabled>
  231. </snapshots>
  232. </pluginRepository>
  233. </pluginRepositories>
  234. <distributionManagement>
  235. <repository>
  236. <id>nexus-releases</id>
  237. <name>Nexus Release Repository</name>
  238. <url>http://192.168.2.236:8081/repository/maven-releases/</url>
  239. </repository>
  240. <snapshotRepository>
  241. <id>nexus-snapshots</id>
  242. <name>Nexus Snapshot Repository</name>
  243. <url>http://192.168.2.236:8081/repository/maven-snapshots/</url>
  244. </snapshotRepository>
  245. </distributionManagement>
  246. <build>
  247. <plugins>
  248. <plugin>
  249. <groupId>org.springframework.boot</groupId>
  250. <artifactId>spring-boot-maven-plugin</artifactId>
  251. </plugin>
  252. <!-- 添加docker-maven插件 -->
  253. <plugin>
  254. <groupId>com.spotify</groupId>
  255. <artifactId>docker-maven-plugin</artifactId>
  256. <version>1.1.1</version>
  257. <configuration>
  258. <imageName>${docker.image.prefix}/${project.artifactId}:${project.version}</imageName>
  259. <forceTags>true</forceTags>
  260. <!--镜像的FROM,使用压缩的小镜像-->
  261. <baseImage>frolvlad/alpine-oraclejre8:slim</baseImage>
  262. <entryPoint>["java", "-jar", "-Xms256m", "-Xmx1024m", "-Duser.timezone=GMT+8", "/${project.build.finalName}.jar"]</entryPoint>
  263. <resources>
  264. <resource>
  265. <targetPath>/</targetPath>
  266. <directory>${project.build.directory}</directory>
  267. <include>${project.build.finalName}.jar</include>
  268. </resource>
  269. </resources>
  270. <serverId>docker-registry</serverId>
  271. <registryUrl>${registryUrl}</registryUrl>
  272. </configuration>
  273. </plugin>
  274. </plugins>
  275. </build>
  276. </project>