pom.xml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  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>tran-service</artifactId>
  8. <version>0.0.1-SNAPSHOT</version>
  9. <packaging>jar</packaging>
  10. <name>tran-service</name>
  11. <description>Tran Service for Spring Boot</description>
  12. <parent>
  13. <groupId>com.diagbot</groupId>
  14. <artifactId>diagbotcloud</artifactId>
  15. <version>0.0.1-SNAPSHOT</version>
  16. </parent>
  17. <dependencies>
  18. <dependency>
  19. <groupId>com.metaparadigm</groupId>
  20. <artifactId>json-rpc</artifactId>
  21. <version>1.0</version>
  22. </dependency>
  23. <dependency>
  24. <groupId>javax.xml</groupId>
  25. <artifactId>jaxrpc</artifactId>
  26. <version>1.1</version>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.apache.axis</groupId>
  30. <artifactId>axis</artifactId>
  31. <version>1.4</version>
  32. </dependency>
  33. <!-- Jackson JSON Mapper -->
  34. <dependency>
  35. <groupId>org.codehaus.jackson</groupId>
  36. <artifactId>jackson-mapper-asl</artifactId>
  37. <version>1.9.13</version>
  38. </dependency>
  39. <dependency>
  40. <groupId>com.fasterxml.jackson.core</groupId>
  41. <artifactId>jackson-databind</artifactId>
  42. <version>${jackson.version}</version>
  43. </dependency>
  44. <dependency>
  45. <groupId>com.fasterxml.jackson.module</groupId>
  46. <artifactId>jackson-module-jaxb-annotations</artifactId>
  47. <version>${jackson.version}</version>
  48. </dependency>
  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.cloud</groupId>
  56. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  57. </dependency>
  58. <!-- 配置-->
  59. <dependency>
  60. <groupId>org.springframework.cloud</groupId>
  61. <artifactId>spring-cloud-starter-config</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. <!-- zipkin-->
  100. <dependency>
  101. <groupId>org.springframework.cloud</groupId>
  102. <artifactId>spring-cloud-starter-zipkin</artifactId>
  103. </dependency>
  104. <!--swagger-->
  105. <dependency>
  106. <groupId>io.springfox</groupId>
  107. <artifactId>springfox-swagger2</artifactId>
  108. </dependency>
  109. <dependency>
  110. <groupId>io.springfox</groupId>
  111. <artifactId>springfox-swagger-ui</artifactId>
  112. </dependency>
  113. <!--database-->
  114. <dependency>
  115. <groupId>mysql</groupId>
  116. <artifactId>mysql-connector-java</artifactId>
  117. <scope>runtime</scope>
  118. </dependency>
  119. <!--security-->
  120. <dependency>
  121. <groupId>org.springframework.cloud</groupId>
  122. <artifactId>spring-cloud-starter-oauth2</artifactId>
  123. </dependency>
  124. <!-- mq -->
  125. <dependency>
  126. <groupId>org.springframework.boot</groupId>
  127. <artifactId>spring-boot-starter-amqp</artifactId>
  128. </dependency>
  129. <dependency>
  130. <groupId>org.projectlombok</groupId>
  131. <artifactId>lombok</artifactId>
  132. <optional>true</optional>
  133. </dependency>
  134. <dependency>
  135. <groupId>net.logstash.logback</groupId>
  136. <artifactId>logstash-logback-encoder</artifactId>
  137. </dependency>
  138. <dependency>
  139. <groupId>org.springframework.cloud</groupId>
  140. <artifactId>spring-cloud-starter-bus-amqp</artifactId>
  141. </dependency>
  142. <!-- mybatis-plus begin -->
  143. <dependency>
  144. <groupId>com.baomidou</groupId>
  145. <artifactId>mybatis-plus-boot-starter</artifactId>
  146. </dependency>
  147. <!-- mybatis-plus end -->
  148. <!-- 阿里巴巴druid数据库连接池 -->
  149. <dependency>
  150. <groupId>com.alibaba</groupId>
  151. <artifactId>druid-spring-boot-starter</artifactId>
  152. </dependency>
  153. <!-- springboot整合mybatis(核心就这一个) -->
  154. <!-- 注意顺序,这个一定要放在最下面 -->
  155. <dependency>
  156. <groupId>org.mybatis.spring.boot</groupId>
  157. <artifactId>mybatis-spring-boot-starter</artifactId>
  158. </dependency>
  159. <dependency>
  160. <groupId>org.springframework.cloud</groupId>
  161. <artifactId>spring-cloud-starter-stream-rabbit</artifactId>
  162. </dependency>
  163. </dependencies>
  164. <build>
  165. <plugins>
  166. <plugin>
  167. <groupId>org.springframework.boot</groupId>
  168. <artifactId>spring-boot-maven-plugin</artifactId>
  169. </plugin>
  170. <!-- 添加docker-maven插件 -->
  171. <plugin>
  172. <groupId>com.spotify</groupId>
  173. <artifactId>docker-maven-plugin</artifactId>
  174. <configuration>
  175. <imageName>${docker.image.prefix}/${project.artifactId}:${project.version}</imageName>
  176. <forceTags>true</forceTags>
  177. <!--镜像的FROM,使用压缩的小镜像-->
  178. <baseImage>frolvlad/alpine-oraclejdk8:slim</baseImage>
  179. <entryPoint>["java", "-jar", "-Xms256m", "-Xmx1024m", "-Duser.timezone=GMT+8", "/${project.build.finalName}.jar"]</entryPoint>
  180. <resources>
  181. <resource>
  182. <targetPath>/</targetPath>
  183. <directory>${project.build.directory}</directory>
  184. <include>${project.build.finalName}.jar</include>
  185. </resource>
  186. </resources>
  187. <serverId>docker-registry</serverId>
  188. <registryUrl>http://192.168.2.236:5000/repository/diagbotcloud/</registryUrl>
  189. </configuration>
  190. </plugin>
  191. </plugins>
  192. </build>
  193. </project>