pom.xml 10 KB

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