pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  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>net.logstash.logback</groupId>
  130. <artifactId>logstash-logback-encoder</artifactId>
  131. <version>${logstash.version}</version>
  132. </dependency>
  133. <!-- mybatis-plus begin -->
  134. <dependency>
  135. <groupId>com.baomidou</groupId>
  136. <artifactId>mybatis-plus-boot-starter</artifactId>
  137. <version>${mybatis-plus-boot-starter.version}</version>
  138. </dependency>
  139. <dependency>
  140. <groupId>com.baomidou</groupId>
  141. <artifactId>mybatis-plus-generator</artifactId>
  142. <version>${mybatis-plus-boot-starter.version}</version>
  143. </dependency>
  144. <!-- mybatis-plus end -->
  145. <!--&lt;!&ndash; 阿里巴巴druid数据库连接池 &ndash;&gt;-->
  146. <!--<dependency>-->
  147. <!--<groupId>com.alibaba</groupId>-->
  148. <!--<artifactId>druid-spring-boot-starter</artifactId>-->
  149. <!--<version>${druid.version}</version>-->
  150. <!--</dependency>-->
  151. <!-- springboot整合mybatis(核心就这一个) -->
  152. <!-- 注意顺序,这个一定要放在最下面 -->
  153. <dependency>
  154. <groupId>org.mybatis.spring.boot</groupId>
  155. <artifactId>mybatis-spring-boot-starter</artifactId>
  156. <version>${mybatis-spring-boot.version}</version>
  157. </dependency>
  158. <!--多数据源-->
  159. <dependency>
  160. <groupId>com.baomidou</groupId>
  161. <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
  162. <version>3.0.0</version>
  163. </dependency>
  164. <!--database-->
  165. <dependency>
  166. <groupId>mysql</groupId>
  167. <artifactId>mysql-connector-java</artifactId>
  168. <scope>runtime</scope>
  169. </dependency>
  170. <!-- 文件上传相关�?? -->
  171. <dependency>
  172. <groupId>commons-beanutils</groupId>
  173. <artifactId>commons-beanutils</artifactId>
  174. <version>1.9.3</version>
  175. </dependency>
  176. <dependency>
  177. <groupId>org.apache.commons</groupId>
  178. <artifactId>commons-lang3</artifactId>
  179. <version>${commons-lang3.version}</version>
  180. </dependency>
  181. <dependency>
  182. <groupId>commons-fileupload</groupId>
  183. <artifactId>commons-fileupload</artifactId>
  184. <version>1.3.1</version>
  185. </dependency>
  186. <dependency>
  187. <groupId>commons-io</groupId>
  188. <artifactId>commons-io</artifactId>
  189. <version>2.4</version>
  190. </dependency>
  191. </dependencies>
  192. <!-- 私有仓库 -->
  193. <repositories>
  194. <repository>
  195. <id>nexus-releases</id>
  196. <name>Nexus Release Repository</name>
  197. <url>http://192.168.2.236:8081/repository/maven-releases/</url>
  198. </repository>
  199. <repository>
  200. <id>nexus-snapshots</id>
  201. <name>Nexus Snapshot Repository</name>
  202. <url>http://192.168.2.236:8081/repository/maven-snapshots/</url>
  203. </repository>
  204. </repositories>
  205. <!-- 私有仓库 -->
  206. <pluginRepositories>
  207. <pluginRepository>
  208. <id>nexus-releases</id>
  209. <name>Nexus Release Repository</name>
  210. <url>http://192.168.2.236:8081/repository/maven-releases/</url>
  211. <releases>
  212. <enabled>true</enabled>
  213. </releases>
  214. </pluginRepository>
  215. <pluginRepository>
  216. <id>nexus-snapshots</id>
  217. <name>Nexus Snapshot Repository</name>
  218. <url>http://192.168.2.236:8081/repository/maven-snapshots/</url>
  219. <snapshots>
  220. <enabled>true</enabled>
  221. </snapshots>
  222. </pluginRepository>
  223. </pluginRepositories>
  224. <distributionManagement>
  225. <repository>
  226. <id>nexus-releases</id>
  227. <name>Nexus Release Repository</name>
  228. <url>http://192.168.2.236:8081/repository/maven-releases/</url>
  229. </repository>
  230. <snapshotRepository>
  231. <id>nexus-snapshots</id>
  232. <name>Nexus Snapshot Repository</name>
  233. <url>http://192.168.2.236:8081/repository/maven-snapshots/</url>
  234. </snapshotRepository>
  235. </distributionManagement>
  236. <build>
  237. <plugins>
  238. <plugin>
  239. <groupId>org.springframework.boot</groupId>
  240. <artifactId>spring-boot-maven-plugin</artifactId>
  241. </plugin>
  242. <!-- 添加docker-maven插件 -->
  243. <plugin>
  244. <groupId>com.spotify</groupId>
  245. <artifactId>docker-maven-plugin</artifactId>
  246. <version>1.1.1</version>
  247. <configuration>
  248. <imageName>${docker.image.prefix}/${project.artifactId}:${project.version}</imageName>
  249. <forceTags>true</forceTags>
  250. <!--镜像的FROM,使用压缩的小镜像-->
  251. <baseImage>frolvlad/alpine-oraclejre8:slim</baseImage>
  252. <entryPoint>["java", "-jar", "-Xms256m", "-Xmx1024m", "-Duser.timezone=GMT+8", "/${project.build.finalName}.jar"]</entryPoint>
  253. <resources>
  254. <resource>
  255. <targetPath>/</targetPath>
  256. <directory>${project.build.directory}</directory>
  257. <include>${project.build.finalName}.jar</include>
  258. </resource>
  259. </resources>
  260. <serverId>docker-registry</serverId>
  261. <registryUrl>${registryUrl}</registryUrl>
  262. </configuration>
  263. </plugin>
  264. </plugins>
  265. </build>
  266. </project>