pom.xml 11 KB

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