pom.xml 12 KB

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