pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  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.0</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.0.0</version>-->
  164. <!--</dependency>-->
  165. <!--database-->
  166. <dependency>
  167. <groupId>mysql</groupId>
  168. <artifactId>mysql-connector-java</artifactId>
  169. <scope>runtime</scope>
  170. </dependency>
  171. <dependency>
  172. <groupId>org.springframework.boot</groupId>
  173. <artifactId>spring-boot-starter-data-neo4j</artifactId>
  174. </dependency>
  175. <dependency>
  176. <groupId>org.neo4j</groupId>
  177. <artifactId>neo4j-ogm-http-driver</artifactId>
  178. <version>3.2.9</version>
  179. </dependency>
  180. <!-- 文件上传相关�?? -->
  181. <dependency>
  182. <groupId>commons-beanutils</groupId>
  183. <artifactId>commons-beanutils</artifactId>
  184. <version>1.9.3</version>
  185. </dependency>
  186. <dependency>
  187. <groupId>org.apache.commons</groupId>
  188. <artifactId>commons-lang3</artifactId>
  189. <version>${commons-lang3.version}</version>
  190. </dependency>
  191. <dependency>
  192. <groupId>commons-fileupload</groupId>
  193. <artifactId>commons-fileupload</artifactId>
  194. <version>1.3.1</version>
  195. </dependency>
  196. <dependency>
  197. <groupId>commons-io</groupId>
  198. <artifactId>commons-io</artifactId>
  199. <version>2.4</version>
  200. </dependency>
  201. <dependency>
  202. <groupId>io.github.lvyahui8</groupId>
  203. <artifactId>spring-boot-data-aggregator-starter</artifactId>
  204. <version>${aggregator.version}</version>
  205. </dependency>
  206. </dependencies>
  207. <!-- 私有仓库 -->
  208. <repositories>
  209. <repository>
  210. <id>nexus-releases</id>
  211. <name>Nexus Release Repository</name>
  212. <url>http://192.168.2.236:8081/repository/maven-releases/</url>
  213. </repository>
  214. <repository>
  215. <id>nexus-snapshots</id>
  216. <name>Nexus Snapshot Repository</name>
  217. <url>http://192.168.2.236:8081/repository/maven-snapshots/</url>
  218. </repository>
  219. </repositories>
  220. <!-- 私有仓库 -->
  221. <pluginRepositories>
  222. <pluginRepository>
  223. <id>nexus-releases</id>
  224. <name>Nexus Release Repository</name>
  225. <url>http://192.168.2.236:8081/repository/maven-releases/</url>
  226. <releases>
  227. <enabled>true</enabled>
  228. </releases>
  229. </pluginRepository>
  230. <pluginRepository>
  231. <id>nexus-snapshots</id>
  232. <name>Nexus Snapshot Repository</name>
  233. <url>http://192.168.2.236:8081/repository/maven-snapshots/</url>
  234. <snapshots>
  235. <enabled>true</enabled>
  236. </snapshots>
  237. </pluginRepository>
  238. </pluginRepositories>
  239. <distributionManagement>
  240. <repository>
  241. <id>nexus-releases</id>
  242. <name>Nexus Release Repository</name>
  243. <url>http://192.168.2.236:8081/repository/maven-releases/</url>
  244. </repository>
  245. <snapshotRepository>
  246. <id>nexus-snapshots</id>
  247. <name>Nexus Snapshot Repository</name>
  248. <url>http://192.168.2.236:8081/repository/maven-snapshots/</url>
  249. </snapshotRepository>
  250. </distributionManagement>
  251. <build>
  252. <plugins>
  253. <plugin>
  254. <groupId>org.springframework.boot</groupId>
  255. <artifactId>spring-boot-maven-plugin</artifactId>
  256. </plugin>
  257. <!-- 添加docker-maven插件 -->
  258. <plugin>
  259. <groupId>com.spotify</groupId>
  260. <artifactId>docker-maven-plugin</artifactId>
  261. <version>1.1.1</version>
  262. <configuration>
  263. <imageName>${docker.image.prefix}/${project.artifactId}:${project.version}</imageName>
  264. <forceTags>true</forceTags>
  265. <!--镜像的FROM,使用压缩的小镜像-->
  266. <baseImage>frolvlad/alpine-oraclejre8:slim</baseImage>
  267. <entryPoint>["java", "-jar", "-Xms256m", "-Xmx1024m", "-Duser.timezone=GMT+8", "/${project.build.finalName}.jar"]</entryPoint>
  268. <resources>
  269. <resource>
  270. <targetPath>/</targetPath>
  271. <directory>${project.build.directory}</directory>
  272. <include>${project.build.finalName}.jar</include>
  273. </resource>
  274. </resources>
  275. <serverId>docker-registry</serverId>
  276. <registryUrl>${registryUrl}</registryUrl>
  277. </configuration>
  278. </plugin>
  279. </plugins>
  280. </build>
  281. </project>