pom.xml 12 KB

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