pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  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.236:5000/diagbotcloud</docker.image.prefix>
  34. <registryUrl>http://192.168.2.236: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>commons-fileupload</groupId>
  173. <artifactId>commons-fileupload</artifactId>
  174. <version>1.3.1</version>
  175. </dependency>
  176. <dependency>
  177. <groupId>commons-io</groupId>
  178. <artifactId>commons-io</artifactId>
  179. <version>2.4</version>
  180. </dependency>
  181. <dependency>
  182. <groupId>com.squareup.okhttp3</groupId>
  183. <artifactId>okhttp</artifactId>
  184. </dependency>
  185. <dependency>
  186. <groupId>io.github.lvyahui8</groupId>
  187. <artifactId>spring-boot-data-aggregator-starter</artifactId>
  188. <version>${aggregator.version}</version>
  189. </dependency>
  190. </dependencies>
  191. <!-- 私有仓库 -->
  192. <repositories>
  193. <repository>
  194. <id>nexus-releases</id>
  195. <name>Nexus Release Repository</name>
  196. <url>http://192.168.2.236:8081/repository/maven-releases/</url>
  197. </repository>
  198. <repository>
  199. <id>nexus-snapshots</id>
  200. <name>Nexus Snapshot Repository</name>
  201. <url>http://192.168.2.236:8081/repository/maven-snapshots/</url>
  202. </repository>
  203. </repositories>
  204. <!-- 私有仓库 -->
  205. <pluginRepositories>
  206. <pluginRepository>
  207. <id>nexus-releases</id>
  208. <name>Nexus Release Repository</name>
  209. <url>http://192.168.2.236:8081/repository/maven-releases/</url>
  210. <releases>
  211. <enabled>true</enabled>
  212. </releases>
  213. </pluginRepository>
  214. <pluginRepository>
  215. <id>nexus-snapshots</id>
  216. <name>Nexus Snapshot Repository</name>
  217. <url>http://192.168.2.236:8081/repository/maven-snapshots/</url>
  218. <snapshots>
  219. <enabled>true</enabled>
  220. </snapshots>
  221. </pluginRepository>
  222. </pluginRepositories>
  223. <distributionManagement>
  224. <repository>
  225. <id>nexus-releases</id>
  226. <name>Nexus Release Repository</name>
  227. <url>http://192.168.2.236:8081/repository/maven-releases/</url>
  228. </repository>
  229. <snapshotRepository>
  230. <id>nexus-snapshots</id>
  231. <name>Nexus Snapshot Repository</name>
  232. <url>http://192.168.2.236:8081/repository/maven-snapshots/</url>
  233. </snapshotRepository>
  234. </distributionManagement>
  235. <build>
  236. <plugins>
  237. <plugin>
  238. <groupId>org.springframework.boot</groupId>
  239. <artifactId>spring-boot-maven-plugin</artifactId>
  240. </plugin>
  241. <!-- 添加docker-maven插件 -->
  242. <plugin>
  243. <groupId>com.spotify</groupId>
  244. <artifactId>docker-maven-plugin</artifactId>
  245. <version>1.1.1</version>
  246. <configuration>
  247. <imageName>${docker.image.prefix}/${project.artifactId}:${project.version}</imageName>
  248. <forceTags>true</forceTags>
  249. <!--镜像的FROM,使用压缩的小镜像-->
  250. <baseImage>frolvlad/alpine-oraclejre8:slim</baseImage>
  251. <entryPoint>["java", "-jar", "-Xms256m", "-Xmx1024m", "-Duser.timezone=GMT+8", "/${project.build.finalName}.jar"]</entryPoint>
  252. <resources>
  253. <resource>
  254. <targetPath>/</targetPath>
  255. <directory>${project.build.directory}</directory>
  256. <include>${project.build.finalName}.jar</include>
  257. </resource>
  258. </resources>
  259. <serverId>docker-registry</serverId>
  260. <registryUrl>${registryUrl}</registryUrl>
  261. </configuration>
  262. </plugin>
  263. </plugins>
  264. </build>
  265. </project>