pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  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-core</artifactId>
  8. <version>0.0.1-SNAPSHOT</version>
  9. <packaging>jar</packaging>
  10. <name>cdss-core</name>
  11. <description>CDSS核心服务</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. <easypoi.version>4.2.0</easypoi.version>
  29. <swagger.version>2.9.2</swagger.version>
  30. <logstash.version>5.2</logstash.version>
  31. <docker-maven-plugin.version>1.2.1</docker-maven-plugin.version>
  32. <aggregator.version>1.1.3</aggregator.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. <!-- easypoi -->
  110. <dependency>
  111. <groupId>cn.afterturn</groupId>
  112. <artifactId>easypoi-spring-boot-starter</artifactId>
  113. <version>${easypoi.version}</version>
  114. </dependency>
  115. <dependency>
  116. <groupId>org.projectlombok</groupId>
  117. <artifactId>lombok</artifactId>
  118. <optional>true</optional>
  119. </dependency>
  120. <!--redis设置-->
  121. <dependency>
  122. <groupId>org.springframework.boot</groupId>
  123. <artifactId>spring-boot-starter-data-redis</artifactId>
  124. </dependency>
  125. <dependency>
  126. <groupId>org.apache.commons</groupId>
  127. <artifactId>commons-pool2</artifactId>
  128. </dependency>
  129. <dependency>
  130. <groupId>net.logstash.logback</groupId>
  131. <artifactId>logstash-logback-encoder</artifactId>
  132. <version>${logstash.version}</version>
  133. </dependency>
  134. <!-- mybatis-plus begin -->
  135. <dependency>
  136. <groupId>com.baomidou</groupId>
  137. <artifactId>mybatis-plus-boot-starter</artifactId>
  138. <version>${mybatis-plus-boot-starter.version}</version>
  139. </dependency>
  140. <dependency>
  141. <groupId>com.baomidou</groupId>
  142. <artifactId>mybatis-plus-generator</artifactId>
  143. <version>${mybatis-plus-boot-starter.version}</version>
  144. </dependency>
  145. <!-- mybatis-plus end -->
  146. <!-- 阿里巴巴druid数据库连接池 -->
  147. <dependency>
  148. <groupId>com.alibaba</groupId>
  149. <artifactId>druid-spring-boot-starter</artifactId>
  150. <version>${druid.version}</version>
  151. </dependency>
  152. <!-- springboot整合mybatis(核心就这一个) -->
  153. <!-- 注意顺序,这个一定要放在最下面 -->
  154. <dependency>
  155. <groupId>org.mybatis.spring.boot</groupId>
  156. <artifactId>mybatis-spring-boot-starter</artifactId>
  157. <version>${mybatis-spring-boot.version}</version>
  158. </dependency>
  159. <!--多数据源-->
  160. <dependency>
  161. <groupId>com.baomidou</groupId>
  162. <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
  163. <version>3.3.1</version>
  164. </dependency>
  165. <!--database-->
  166. <dependency>
  167. <groupId>mysql</groupId>
  168. <artifactId>mysql-connector-java</artifactId>
  169. <scope>runtime</scope>
  170. </dependency>
  171. <!-- 文件上传相关�?? -->
  172. <dependency>
  173. <groupId>commons-beanutils</groupId>
  174. <artifactId>commons-beanutils</artifactId>
  175. <version>1.9.3</version>
  176. </dependency>
  177. <dependency>
  178. <groupId>org.apache.commons</groupId>
  179. <artifactId>commons-lang3</artifactId>
  180. <version>${commons-lang3.version}</version>
  181. </dependency>
  182. <dependency>
  183. <groupId>commons-fileupload</groupId>
  184. <artifactId>commons-fileupload</artifactId>
  185. <version>1.3.1</version>
  186. </dependency>
  187. <dependency>
  188. <groupId>commons-io</groupId>
  189. <artifactId>commons-io</artifactId>
  190. <version>2.4</version>
  191. </dependency>
  192. <dependency>
  193. <groupId>io.github.lvyahui8</groupId>
  194. <artifactId>spring-boot-data-aggregator-starter</artifactId>
  195. <version>${aggregator.version}</version>
  196. </dependency>
  197. </dependencies>
  198. <!-- 私有仓库 -->
  199. <repositories>
  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. <repository>
  206. <id>nexus-snapshots</id>
  207. <name>Nexus Snapshot Repository</name>
  208. <url>http://192.168.2.236:8081/repository/maven-snapshots/</url>
  209. </repository>
  210. </repositories>
  211. <!-- 私有仓库 -->
  212. <pluginRepositories>
  213. <pluginRepository>
  214. <id>nexus-releases</id>
  215. <name>Nexus Release Repository</name>
  216. <url>http://192.168.2.236:8081/repository/maven-releases/</url>
  217. <releases>
  218. <enabled>true</enabled>
  219. </releases>
  220. </pluginRepository>
  221. <pluginRepository>
  222. <id>nexus-snapshots</id>
  223. <name>Nexus Snapshot Repository</name>
  224. <url>http://192.168.2.236:8081/repository/maven-snapshots/</url>
  225. <snapshots>
  226. <enabled>true</enabled>
  227. </snapshots>
  228. </pluginRepository>
  229. </pluginRepositories>
  230. <distributionManagement>
  231. <repository>
  232. <id>nexus-releases</id>
  233. <name>Nexus Release Repository</name>
  234. <url>http://192.168.2.236:8081/repository/maven-releases/</url>
  235. </repository>
  236. <snapshotRepository>
  237. <id>nexus-snapshots</id>
  238. <name>Nexus Snapshot Repository</name>
  239. <url>http://192.168.2.236:8081/repository/maven-snapshots/</url>
  240. </snapshotRepository>
  241. </distributionManagement>
  242. <build>
  243. <plugins>
  244. <plugin>
  245. <groupId>org.springframework.boot</groupId>
  246. <artifactId>spring-boot-maven-plugin</artifactId>
  247. </plugin>
  248. <!-- 添加docker-maven插件 -->
  249. <plugin>
  250. <groupId>com.spotify</groupId>
  251. <artifactId>docker-maven-plugin</artifactId>
  252. <version>1.1.1</version>
  253. <configuration>
  254. <imageName>${docker.image.prefix}/${project.artifactId}:${project.version}</imageName>
  255. <forceTags>true</forceTags>
  256. <!--镜像的FROM,使用压缩的小镜像-->
  257. <baseImage>frolvlad/alpine-oraclejre8:slim</baseImage>
  258. <entryPoint>["java", "-jar", "-Xms256m", "-Xmx3072m", "-Duser.timezone=GMT+8", "/${project.build.finalName}.jar"]</entryPoint>
  259. <resources>
  260. <resource>
  261. <targetPath>/</targetPath>
  262. <directory>${project.build.directory}</directory>
  263. <include>${project.build.finalName}.jar</include>
  264. </resource>
  265. </resources>
  266. <serverId>docker-registry</serverId>
  267. <registryUrl>${registryUrl}</registryUrl>
  268. </configuration>
  269. </plugin>
  270. </plugins>
  271. </build>
  272. </project>