pom.xml 9.8 KB

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