pom.xml 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  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. </properties>
  35. <dependencyManagement>
  36. <dependencies>
  37. <dependency>
  38. <groupId>org.springframework.cloud</groupId>
  39. <artifactId>spring-cloud-dependencies</artifactId>
  40. <version>${spring-cloud.version}</version>
  41. <type>pom</type>
  42. <scope>import</scope>
  43. </dependency>
  44. </dependencies>
  45. </dependencyManagement>
  46. <dependencies>
  47. <dependency>
  48. <groupId>com.diagbot</groupId>
  49. <artifactId>common</artifactId>
  50. <version>0.0.1-SNAPSHOT</version>
  51. </dependency>
  52. <dependency>
  53. <groupId>org.jolokia</groupId>
  54. <artifactId>jolokia-core</artifactId>
  55. </dependency>
  56. <!-- 开启web-->
  57. <dependency>
  58. <groupId>org.springframework.boot</groupId>
  59. <artifactId>spring-boot-starter-web</artifactId>
  60. <exclusions>
  61. <exclusion>
  62. <groupId>org.springframework.boot</groupId>
  63. <artifactId>spring-boot-starter-tomcat</artifactId>
  64. </exclusion>
  65. </exclusions>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.springframework.boot</groupId>
  69. <artifactId>spring-boot-starter-undertow</artifactId>
  70. </dependency>
  71. <!-- 开启feign-->
  72. <dependency>
  73. <groupId>org.springframework.cloud</groupId>
  74. <artifactId>spring-cloud-starter-openfeign</artifactId>
  75. </dependency>
  76. <!-- dashboard -->
  77. <!-- actuator-->
  78. <dependency>
  79. <groupId>org.springframework.boot</groupId>
  80. <artifactId>spring-boot-starter-actuator</artifactId>
  81. </dependency>
  82. <!--hystrix -->
  83. <dependency>
  84. <groupId>org.springframework.cloud</groupId>
  85. <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
  86. </dependency>
  87. <!--swagger-->
  88. <dependency>
  89. <groupId>io.springfox</groupId>
  90. <artifactId>springfox-swagger2</artifactId>
  91. <version>${swagger.version}</version>
  92. </dependency>
  93. <dependency>
  94. <groupId>io.springfox</groupId>
  95. <artifactId>springfox-swagger-ui</artifactId>
  96. <version>${swagger.version}</version>
  97. </dependency>
  98. <!-- easypoi -->
  99. <dependency>
  100. <groupId>cn.afterturn</groupId>
  101. <artifactId>easypoi-spring-boot-starter</artifactId>
  102. <version>${easypoi.version}</version>
  103. </dependency>
  104. <dependency>
  105. <groupId>org.projectlombok</groupId>
  106. <artifactId>lombok</artifactId>
  107. <optional>true</optional>
  108. </dependency>
  109. <!--redis设置-->
  110. <dependency>
  111. <groupId>org.springframework.boot</groupId>
  112. <artifactId>spring-boot-starter-data-redis</artifactId>
  113. </dependency>
  114. <dependency>
  115. <groupId>org.apache.commons</groupId>
  116. <artifactId>commons-pool2</artifactId>
  117. </dependency>
  118. <!-- mybatis-plus begin -->
  119. <dependency>
  120. <groupId>com.baomidou</groupId>
  121. <artifactId>mybatis-plus-boot-starter</artifactId>
  122. <version>${mybatis-plus-boot-starter.version}</version>
  123. </dependency>
  124. <dependency>
  125. <groupId>com.baomidou</groupId>
  126. <artifactId>mybatis-plus-generator</artifactId>
  127. <version>${mybatis-plus-boot-starter.version}</version>
  128. </dependency>
  129. <!-- mybatis-plus end -->
  130. <!-- 阿里巴巴druid数据库连接池 -->
  131. <dependency>
  132. <groupId>com.alibaba</groupId>
  133. <artifactId>druid-spring-boot-starter</artifactId>
  134. <version>${druid.version}</version>
  135. </dependency>
  136. <!-- springboot整合mybatis(核心就这一个) -->
  137. <!-- 注意顺序,这个一定要放在最下面 -->
  138. <dependency>
  139. <groupId>org.mybatis.spring.boot</groupId>
  140. <artifactId>mybatis-spring-boot-starter</artifactId>
  141. <version>${mybatis-spring-boot.version}</version>
  142. </dependency>
  143. <!--多数据源-->
  144. <dependency>
  145. <groupId>com.baomidou</groupId>
  146. <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
  147. <version>3.3.1</version>
  148. </dependency>
  149. <!--database-->
  150. <dependency>
  151. <groupId>mysql</groupId>
  152. <artifactId>mysql-connector-java</artifactId>
  153. <scope>runtime</scope>
  154. </dependency>
  155. <!-- 文件上传相关�?? -->
  156. <dependency>
  157. <groupId>commons-beanutils</groupId>
  158. <artifactId>commons-beanutils</artifactId>
  159. <version>1.9.3</version>
  160. </dependency>
  161. <dependency>
  162. <groupId>org.apache.commons</groupId>
  163. <artifactId>commons-lang3</artifactId>
  164. </dependency>
  165. <dependency>
  166. <groupId>commons-fileupload</groupId>
  167. <artifactId>commons-fileupload</artifactId>
  168. <version>1.3.1</version>
  169. </dependency>
  170. <dependency>
  171. <groupId>commons-io</groupId>
  172. <artifactId>commons-io</artifactId>
  173. <version>2.4</version>
  174. </dependency>
  175. <dependency>
  176. <groupId>io.github.lvyahui8</groupId>
  177. <artifactId>spring-boot-data-aggregator-starter</artifactId>
  178. <version>${aggregator.version}</version>
  179. </dependency>
  180. <dependency>
  181. <groupId>com.hankcs</groupId>
  182. <artifactId>hanlp</artifactId>
  183. <version>${hanlp.version}</version>
  184. </dependency>
  185. <!--redis内存压缩-->
  186. <dependency>
  187. <groupId>org.xerial.snappy</groupId>
  188. <artifactId>snappy-java</artifactId>
  189. <version>1.1.8.4</version>
  190. </dependency>
  191. <dependency>
  192. <groupId>com.esotericsoftware</groupId>
  193. <artifactId>kryo</artifactId>
  194. <version>5.2.1</version>
  195. </dependency>
  196. </dependencies>
  197. <build>
  198. <plugins>
  199. <plugin>
  200. <artifactId>maven-dependency-plugin</artifactId>
  201. <executions>
  202. <execution>
  203. <id>copy</id>
  204. <phase>package</phase>
  205. <goals>
  206. <goal>copy-dependencies</goal>
  207. </goals>
  208. <configuration>
  209. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  210. </configuration>
  211. </execution>
  212. </executions>
  213. </plugin>
  214. <plugin>
  215. <artifactId>maven-resources-plugin</artifactId>
  216. <executions>
  217. <execution>
  218. <id>copy-resources</id>
  219. <phase>package</phase>
  220. <goals>
  221. <goal>copy-resources</goal>
  222. </goals>
  223. <configuration>
  224. <resources>
  225. <resource>
  226. <directory>src/main/resources</directory>
  227. </resource>
  228. </resources>
  229. <outputDirectory>${project.build.directory}/resources</outputDirectory>
  230. </configuration>
  231. </execution>
  232. </executions>
  233. </plugin>
  234. <plugin>
  235. <artifactId>maven-jar-plugin</artifactId>
  236. <configuration>
  237. <excludes>
  238. <exclude>mapper</exclude>
  239. <exclude>*.**</exclude>
  240. <exclude>**/*.xml</exclude>
  241. <exclude>**/*.yml</exclude>
  242. </excludes>
  243. <archive>
  244. <manifest>
  245. <mainClass>${main-class}</mainClass>
  246. <addClasspath>true</addClasspath>
  247. <classpathPrefix>lib/</classpathPrefix>
  248. <useUniqueVersions>false</useUniqueVersions>
  249. </manifest>
  250. </archive>
  251. <outputDirectory>${project.build.directory}</outputDirectory>
  252. </configuration>
  253. </plugin>
  254. </plugins>
  255. </build>
  256. </project>