pom.xml 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.bjlt.spider</groupId>
  6. <artifactId>otaapi</artifactId>
  7. <version>0.0.1-SNAPSHOT</version>
  8. <packaging>jar</packaging>
  9. <name>otaapi</name>
  10. <properties>
  11. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  12. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  13. <maven.compiler.source>1.8</maven.compiler.source>
  14. <maven.compiler.target>1.8</maven.compiler.target>
  15. <java.version>1.8</java.version>
  16. <spring-cloud.version>Dalston.SR1</spring-cloud.version>
  17. <spring-boot.version>1.5.3.RELEASE</spring-boot.version>
  18. <mysql.version>5.1.40</mysql.version>
  19. <druid.version>1.0.29</druid.version>
  20. <log4j2.version>2.2</log4j2.version>
  21. <slf4j.version>1.7.10</slf4j.version>
  22. <common>0.0.1-SNAPSHOT</common>
  23. <spider-version>0.0.1-SNAPSHOT</spider-version>
  24. <contro-version>0.0.1-SNAPSHOT</contro-version>
  25. </properties>
  26. <dependencies>
  27. <!-- https://mvnrepository.com/artifact/com.alibaba/fastjson -->
  28. <dependency>
  29. <groupId>org.springframework.boot</groupId>
  30. <artifactId>spring-boot-configuration-processor</artifactId>
  31. <optional>true</optional>
  32. </dependency>
  33. <dependency>
  34. <groupId>com.bjlt.mgr</groupId>
  35. <artifactId>mgr_rpc</artifactId>
  36. <version>0.0.1-SNAPSHOT</version>
  37. </dependency>
  38. <dependency>
  39. <groupId>com.bjlt.spider</groupId>
  40. <artifactId>spider_order_rpc</artifactId>
  41. <version>0.0.1-SNAPSHOT</version>
  42. </dependency>
  43. <dependency>
  44. <groupId>com.rabbitmq</groupId>
  45. <artifactId>amqp-client</artifactId>
  46. <version>3.6.5</version>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.springframework.boot</groupId>
  50. <artifactId>spring-boot-starter-amqp</artifactId>
  51. </dependency>
  52. <dependency>
  53. <groupId>com.bjlt.spider</groupId>
  54. <artifactId>contro_rpc</artifactId>
  55. <version>${contro-version}</version>
  56. </dependency>
  57. <dependency>
  58. <groupId>com.bjlt.spider</groupId>
  59. <artifactId>spider-rpc</artifactId>
  60. <version>${spider-version}</version>
  61. </dependency>
  62. <dependency>
  63. <groupId>com.bjlt.spider</groupId>
  64. <artifactId>common</artifactId>
  65. <version>${common}</version>
  66. </dependency>
  67. <dependency>
  68. <groupId>com.alibaba</groupId>
  69. <artifactId>fastjson</artifactId>
  70. <version>1.2.31</version>
  71. </dependency>
  72. <dependency>
  73. <groupId>com.alibaba</groupId>
  74. <artifactId>druid</artifactId>
  75. <version>${druid.version}</version>
  76. </dependency>
  77. <dependency>
  78. <groupId>org.apache.logging.log4j</groupId>
  79. <artifactId>log4j-api</artifactId>
  80. <version>${log4j2.version}</version>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.apache.logging.log4j</groupId>
  84. <artifactId>log4j-core</artifactId>
  85. <version>${log4j2.version}</version>
  86. </dependency>
  87. <dependency> <!-- 桥接:告诉Slf4j使用Log4j2 -->
  88. <groupId>org.apache.logging.log4j</groupId>
  89. <artifactId>log4j-slf4j-impl</artifactId>
  90. <version>${log4j2.version}</version>
  91. </dependency>
  92. <dependency> <!-- 桥接:告诉commons logging使用Log4j2 -->
  93. <groupId>org.apache.logging.log4j</groupId>
  94. <artifactId>log4j-jcl</artifactId>
  95. <version>${log4j2.version}</version>
  96. </dependency>
  97. <dependency>
  98. <groupId>org.slf4j</groupId>
  99. <artifactId>slf4j-api</artifactId>
  100. <version>${slf4j.version}</version>
  101. </dependency>
  102. <dependency>
  103. <groupId>com.fasterxml.jackson.datatype</groupId>
  104. <artifactId>jackson-datatype-joda</artifactId>
  105. <version>2.9.0.pr3</version>
  106. </dependency>
  107. <dependency>
  108. <groupId>com.fasterxml.jackson.datatype</groupId>
  109. <artifactId>jackson-datatype-jsr310</artifactId>
  110. <version>2.9.0.pr3</version>
  111. </dependency>
  112. <dependency>
  113. <groupId>org.projectlombok</groupId>
  114. <artifactId>lombok</artifactId>
  115. <version>1.16.16</version>
  116. </dependency>
  117. <dependency>
  118. <groupId>mysql</groupId>
  119. <artifactId>mysql-connector-java</artifactId>
  120. <version>${mysql.version}</version>
  121. </dependency>
  122. <dependency>
  123. <groupId>com.bjlt.spider</groupId>
  124. <artifactId>ip_rpc</artifactId>
  125. <version>0.0.1-SNAPSHOT</version>
  126. </dependency>
  127. <dependency>
  128. <groupId>org.springframework.boot</groupId>
  129. <artifactId>spring-boot-starter-actuator</artifactId>
  130. </dependency>
  131. <dependency>
  132. <groupId>org.springframework.boot</groupId>
  133. <artifactId>spring-boot-starter-aop</artifactId>
  134. </dependency>
  135. <dependency>
  136. <groupId>org.springframework.cloud</groupId>
  137. <artifactId>spring-cloud-starter-eureka</artifactId>
  138. </dependency>
  139. <dependency>
  140. <groupId>org.springframework.cloud</groupId>
  141. <artifactId>spring-cloud-starter-ribbon</artifactId>
  142. </dependency>
  143. <dependency>
  144. <groupId>org.springframework.boot</groupId>
  145. <artifactId>spring-boot-starter-data-redis</artifactId>
  146. </dependency>
  147. <dependency>
  148. <groupId>org.springframework.boot</groupId>
  149. <artifactId>spring-boot-starter-jdbc</artifactId>
  150. <exclusions>
  151. <!--使用druid数据源,排除自带的tomcatjdbc-->
  152. <exclusion>
  153. <groupId>org.apache.tomcat</groupId>
  154. <artifactId>tomcat-jdbc</artifactId>
  155. </exclusion>
  156. </exclusions>
  157. </dependency>
  158. <dependency>
  159. <groupId>org.springframework.boot</groupId>
  160. <artifactId>spring-boot-starter-test</artifactId>
  161. <scope>test</scope>
  162. </dependency>
  163. <dependency>
  164. <groupId>org.springframework.boot</groupId>
  165. <artifactId>spring-boot-starter</artifactId>
  166. <exclusions>
  167. <!--去除spring boot自带的-->
  168. <exclusion>
  169. <groupId>org.springframework.boot</groupId>
  170. <artifactId>spring-boot-starter-logging</artifactId>
  171. </exclusion>
  172. </exclusions>
  173. </dependency>
  174. <dependency>
  175. <groupId>io.github.openfeign</groupId>
  176. <artifactId>feign-okhttp</artifactId>
  177. </dependency>
  178. <dependency>
  179. <groupId>com.squareup.okhttp3</groupId>
  180. <artifactId>okhttp</artifactId>
  181. <version>3.8.1</version>
  182. </dependency>
  183. <dependency>
  184. <groupId>org.jolokia</groupId>
  185. <artifactId>jolokia-core</artifactId>
  186. </dependency>
  187. <dependency>
  188. <groupId>com.bjlt.spider</groupId>
  189. <artifactId>ip_rpc</artifactId>
  190. <version>0.0.1-SNAPSHOT</version>
  191. </dependency>
  192. <dependency>
  193. <groupId>org.springframework.cloud</groupId>
  194. <artifactId>spring-cloud-starter-zuul</artifactId>
  195. </dependency>
  196. <dependency>
  197. <groupId>org.jdom</groupId>
  198. <artifactId>jdom2</artifactId>
  199. <version>2.0.6</version>
  200. </dependency>
  201. </dependencies>
  202. <dependencyManagement>
  203. <dependencies>
  204. <dependency>
  205. <groupId>org.springframework.boot</groupId>
  206. <artifactId>spring-boot-dependencies</artifactId>
  207. <version>${spring-boot.version}</version>
  208. <type>pom</type>
  209. <scope>import</scope>
  210. </dependency>
  211. <dependency>
  212. <groupId>org.springframework.cloud</groupId>
  213. <artifactId>spring-cloud-dependencies</artifactId>
  214. <version>${spring-cloud.version}</version>
  215. <type>pom</type>
  216. <scope>import</scope>
  217. </dependency>
  218. <dependency>
  219. <groupId>org.springframework.boot</groupId>
  220. <artifactId>spring-boot-devtools</artifactId>
  221. <optional>true</optional>
  222. <scope>true</scope>
  223. </dependency>
  224. </dependencies>
  225. </dependencyManagement>
  226. <build>
  227. <plugins>
  228. <plugin>
  229. <groupId>org.springframework.boot</groupId>
  230. <artifactId>spring-boot-maven-plugin</artifactId>
  231. <configuration>
  232. <mainClass>com.bjlt.spider.OtaapiApplication</mainClass>
  233. <fork>true</fork>
  234. </configuration>
  235. <executions>
  236. <execution>
  237. <goals>
  238. <goal>repackage</goal>
  239. </goals>
  240. </execution>
  241. </executions>
  242. </plugin>
  243. <plugin>
  244. <groupId>org.apache.maven.plugins</groupId>
  245. <artifactId>maven-compiler-plugin</artifactId>
  246. <configuration>
  247. <source>${maven.compiler.source}</source>
  248. <target>${maven.compiler.target}</target>
  249. </configuration>
  250. </plugin>
  251. <plugin>
  252. <groupId>org.springframework.boot</groupId>
  253. <artifactId>spring-boot-maven-plugin</artifactId>
  254. <configuration>
  255. <!--fork : 如果没有该项配置,肯呢个devtools不会起作用,即应用不会restart -->
  256. <fork>true</fork>
  257. <jvmArguments>
  258. -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005
  259. </jvmArguments>
  260. </configuration>
  261. </plugin>
  262. </plugins>
  263. </build>
  264. <repositories>
  265. <repository>
  266. <id>public</id>
  267. <name>public</name>
  268. <url>http://183.61.25.117:8081/nexus/content/groups/public/</url>
  269. <snapshots>
  270. <enabled>true</enabled>
  271. </snapshots>
  272. </repository>
  273. </repositories>
  274. <distributionManagement>
  275. <repository>
  276. <id>releases</id>
  277. <name>releases</name>
  278. <url>http://183.61.25.117:8081/nexus/content/repositories/releases/</url>
  279. </repository>
  280. <snapshotRepository>
  281. <id>snapshots</id>
  282. <name>snapshots</name>
  283. <url>http://183.61.25.117:8081/nexus/content/repositories/snapshots/</url>
  284. </snapshotRepository>
  285. </distributionManagement>
  286. </project>