pom.xml 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  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>controller_service</artifactId>
  7. <version>0.0.1-SNAPSHOT</version>
  8. <packaging>jar</packaging>
  9. <name>controller_service</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.4-SNAPSHOT</common>
  23. <spider-version>0.0.4-SNAPSHOT</spider-version>
  24. <contro-spider>0.0.1-SNAPSHOT</contro-spider>
  25. </properties>
  26. <dependencies>
  27. <dependency>
  28. <groupId>de.codecentric</groupId>
  29. <artifactId>spring-boot-admin-starter-client</artifactId>
  30. <version>1.5.4</version>
  31. </dependency>
  32. <dependency>
  33. <groupId>redis.clients</groupId>
  34. <artifactId>jedis</artifactId>
  35. <version>2.9.0</version>
  36. <type>jar</type>
  37. </dependency>
  38. <!-- https://mvnrepository.com/artifact/com.alibaba/fastjson -->
  39. <dependency>
  40. <groupId>com.bjlt.spider</groupId>
  41. <artifactId>spider-rpc</artifactId>
  42. <version>${spider-version}</version>
  43. </dependency>
  44. <dependency>
  45. <groupId>com.bjlt.spider</groupId>
  46. <artifactId>contro_rpc</artifactId>
  47. <version>${contro-spider}</version>
  48. </dependency>
  49. <dependency>
  50. <groupId>com.bjlt.spider</groupId>
  51. <artifactId>common</artifactId>
  52. <version>${common}</version>
  53. </dependency>
  54. <dependency>
  55. <groupId>com.alibaba</groupId>
  56. <artifactId>fastjson</artifactId>
  57. <version>1.2.31</version>
  58. </dependency>
  59. <dependency>
  60. <groupId>com.alibaba</groupId>
  61. <artifactId>druid</artifactId>
  62. <version>${druid.version}</version>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.apache.logging.log4j</groupId>
  66. <artifactId>log4j-api</artifactId>
  67. <version>${log4j2.version}</version>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.apache.logging.log4j</groupId>
  71. <artifactId>log4j-core</artifactId>
  72. <version>${log4j2.version}</version>
  73. </dependency>
  74. <dependency> <!-- 桥接:告诉Slf4j使用Log4j2 -->
  75. <groupId>org.apache.logging.log4j</groupId>
  76. <artifactId>log4j-slf4j-impl</artifactId>
  77. <version>${log4j2.version}</version>
  78. </dependency>
  79. <dependency> <!-- 桥接:告诉commons logging使用Log4j2 -->
  80. <groupId>org.apache.logging.log4j</groupId>
  81. <artifactId>log4j-jcl</artifactId>
  82. <version>${log4j2.version}</version>
  83. </dependency>
  84. <dependency>
  85. <groupId>org.slf4j</groupId>
  86. <artifactId>slf4j-api</artifactId>
  87. <version>${slf4j.version}</version>
  88. </dependency>
  89. <dependency>
  90. <groupId>com.fasterxml.jackson.datatype</groupId>
  91. <artifactId>jackson-datatype-joda</artifactId>
  92. <version>2.9.0.pr3</version>
  93. </dependency>
  94. <dependency>
  95. <groupId>com.fasterxml.jackson.datatype</groupId>
  96. <artifactId>jackson-datatype-jsr310</artifactId>
  97. <version>2.9.0.pr3</version>
  98. </dependency>
  99. <dependency>
  100. <groupId>org.projectlombok</groupId>
  101. <artifactId>lombok</artifactId>
  102. <version>1.16.16</version>
  103. </dependency>
  104. <dependency>
  105. <groupId>com.lmax</groupId>
  106. <artifactId>disruptor</artifactId>
  107. <version>3.3.6</version>
  108. </dependency>
  109. <dependency>
  110. <groupId>mysql</groupId>
  111. <artifactId>mysql-connector-java</artifactId>
  112. <version>${mysql.version}</version>
  113. </dependency>
  114. <dependency>
  115. <groupId>org.springframework.boot</groupId>
  116. <artifactId>spring-boot-starter-actuator</artifactId>
  117. </dependency>
  118. <dependency>
  119. <groupId>org.springframework.cloud</groupId>
  120. <artifactId>spring-cloud-starter-eureka</artifactId>
  121. </dependency>
  122. <dependency>
  123. <groupId>org.springframework.cloud</groupId>
  124. <artifactId>spring-cloud-starter-ribbon</artifactId>
  125. </dependency>
  126. <dependency>
  127. <groupId>org.springframework.boot</groupId>
  128. <artifactId>spring-boot-starter-data-redis</artifactId>
  129. </dependency>
  130. <dependency>
  131. <groupId>org.springframework.boot</groupId>
  132. <artifactId>spring-boot-starter-jdbc</artifactId>
  133. <exclusions>
  134. <!--使用druid数据源,排除自带的tomcatjdbc-->
  135. <exclusion>
  136. <groupId>org.apache.tomcat</groupId>
  137. <artifactId>tomcat-jdbc</artifactId>
  138. </exclusion>
  139. </exclusions>
  140. </dependency>
  141. <dependency>
  142. <groupId>org.springframework.boot</groupId>
  143. <artifactId>spring-boot-starter-test</artifactId>
  144. <scope>test</scope>
  145. </dependency>
  146. <dependency>
  147. <groupId>org.springframework.boot</groupId>
  148. <artifactId>spring-boot-starter</artifactId>
  149. <exclusions>
  150. <!--去除spring boot自带的-->
  151. <exclusion>
  152. <groupId>org.springframework.boot</groupId>
  153. <artifactId>spring-boot-starter-logging</artifactId>
  154. </exclusion>
  155. </exclusions>
  156. </dependency>
  157. <dependency>
  158. <groupId>io.github.openfeign</groupId>
  159. <artifactId>feign-okhttp</artifactId>
  160. </dependency>
  161. <dependency>
  162. <groupId>com.bjlt.spider</groupId>
  163. <artifactId>ip_rpc</artifactId>
  164. <version>0.0.3-SNAPSHOT</version>
  165. </dependency>
  166. </dependencies>
  167. <dependencyManagement>
  168. <dependencies>
  169. <dependency>
  170. <groupId>org.springframework.boot</groupId>
  171. <artifactId>spring-boot-dependencies</artifactId>
  172. <version>${spring-boot.version}</version>
  173. <type>pom</type>
  174. <scope>import</scope>
  175. </dependency>
  176. <dependency>
  177. <groupId>org.springframework.cloud</groupId>
  178. <artifactId>spring-cloud-dependencies</artifactId>
  179. <version>${spring-cloud.version}</version>
  180. <type>pom</type>
  181. <scope>import</scope>
  182. </dependency>
  183. <dependency>
  184. <groupId>org.springframework.boot</groupId>
  185. <artifactId>spring-boot-devtools</artifactId>
  186. <optional>true</optional>
  187. <scope>true</scope>
  188. </dependency>
  189. <dependency>
  190. <groupId>org.springframework.boot</groupId>
  191. <artifactId>spring-boot-configuration-processor</artifactId>
  192. <optional>true</optional>
  193. </dependency>
  194. </dependencies>
  195. </dependencyManagement>
  196. <build>
  197. <plugins>
  198. <plugin>
  199. <groupId>org.springframework.boot</groupId>
  200. <artifactId>spring-boot-maven-plugin</artifactId>
  201. <configuration>
  202. <mainClass>com.bjlt.spider.ControlcenterApplication</mainClass>
  203. <fork>true</fork>
  204. </configuration>
  205. <executions>
  206. <execution>
  207. <goals>
  208. <goal>repackage</goal>
  209. </goals>
  210. </execution>
  211. </executions>
  212. </plugin>
  213. <plugin>
  214. <groupId>org.apache.maven.plugins</groupId>
  215. <artifactId>maven-compiler-plugin</artifactId>
  216. <configuration>
  217. <source>${maven.compiler.source}</source>
  218. <target>${maven.compiler.target}</target>
  219. </configuration>
  220. </plugin>
  221. <plugin>
  222. <groupId>org.springframework.boot</groupId>
  223. <artifactId>spring-boot-maven-plugin</artifactId>
  224. <configuration>
  225. <!--fork : 如果没有该项配置,肯呢个devtools不会起作用,即应用不会restart -->
  226. <fork>true</fork>
  227. </configuration>
  228. </plugin>
  229. </plugins>
  230. </build>
  231. <repositories>
  232. <repository>
  233. <id>public</id>
  234. <name>public</name>
  235. <url>http://47.95.209.27:8080/nexus/content/groups/public/</url>
  236. <snapshots>
  237. <enabled>true</enabled>
  238. </snapshots>
  239. </repository>
  240. </repositories>
  241. <distributionManagement>
  242. <repository>
  243. <id>releases</id>
  244. <name>releases</name>
  245. <url>http://47.95.209.27:8080/nexus/content/repositories/releases/</url>
  246. </repository>
  247. <snapshotRepository>
  248. <id>snapshots</id>
  249. <name>snapshots</name>
  250. <url>http://47.95.209.27:8080/nexus/content/repositories/snapshots/</url>
  251. </snapshotRepository>
  252. </distributionManagement>
  253. </project>