pom.xml 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  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. <!--<swagger-bootstrap.version>1.9.1</swagger-bootstrap.version>-->
  30. <logstash.version>5.2</logstash.version>
  31. <easypoi.version>4.2.0</easypoi.version>
  32. <docker-maven-plugin.version>1.2.1</docker-maven-plugin.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. </dependencies>
  171. <!-- 私有仓库 -->
  172. <repositories>
  173. <repository>
  174. <id>nexus-releases</id>
  175. <name>Nexus Release Repository</name>
  176. <url>http://192.168.2.236:8081/repository/maven-releases/</url>
  177. </repository>
  178. <repository>
  179. <id>nexus-snapshots</id>
  180. <name>Nexus Snapshot Repository</name>
  181. <url>http://192.168.2.236:8081/repository/maven-snapshots/</url>
  182. </repository>
  183. </repositories>
  184. <!-- 私有仓库 -->
  185. <pluginRepositories>
  186. <pluginRepository>
  187. <id>nexus-releases</id>
  188. <name>Nexus Release Repository</name>
  189. <url>http://192.168.2.236:8081/repository/maven-releases/</url>
  190. <releases>
  191. <enabled>true</enabled>
  192. </releases>
  193. </pluginRepository>
  194. <pluginRepository>
  195. <id>nexus-snapshots</id>
  196. <name>Nexus Snapshot Repository</name>
  197. <url>http://192.168.2.236:8081/repository/maven-snapshots/</url>
  198. <snapshots>
  199. <enabled>true</enabled>
  200. </snapshots>
  201. </pluginRepository>
  202. </pluginRepositories>
  203. <distributionManagement>
  204. <repository>
  205. <id>nexus-releases</id>
  206. <name>Nexus Release Repository</name>
  207. <url>http://192.168.2.236:8081/repository/maven-releases/</url>
  208. </repository>
  209. <snapshotRepository>
  210. <id>nexus-snapshots</id>
  211. <name>Nexus Snapshot Repository</name>
  212. <url>http://192.168.2.236:8081/repository/maven-snapshots/</url>
  213. </snapshotRepository>
  214. </distributionManagement>
  215. <build>
  216. <plugins>
  217. <plugin>
  218. <groupId>org.springframework.boot</groupId>
  219. <artifactId>spring-boot-maven-plugin</artifactId>
  220. </plugin>
  221. <!-- 添加docker-maven插件 -->
  222. <plugin>
  223. <groupId>com.spotify</groupId>
  224. <artifactId>docker-maven-plugin</artifactId>
  225. <version>1.1.1</version>
  226. <configuration>
  227. <imageName>${docker.image.prefix}/${project.artifactId}:${project.version}</imageName>
  228. <forceTags>true</forceTags>
  229. <!--镜像的FROM,使用压缩的小镜像-->
  230. <baseImage>frolvlad/alpine-oraclejre8:slim</baseImage>
  231. <entryPoint>["java", "-jar", "-Xms256m", "-Xmx1024m", "-Duser.timezone=GMT+8", "/${project.build.finalName}.jar"]</entryPoint>
  232. <resources>
  233. <resource>
  234. <targetPath>/</targetPath>
  235. <directory>${project.build.directory}</directory>
  236. <include>${project.build.finalName}.jar</include>
  237. </resource>
  238. </resources>
  239. <serverId>docker-registry</serverId>
  240. <registryUrl>${registryUrl}</registryUrl>
  241. </configuration>
  242. </plugin>
  243. </plugins>
  244. </build>
  245. </project>