pom.xml 11 KB

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