pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>com.bjlt.spider</groupId>
  5. <artifactId>spider_common</artifactId>
  6. <version>0.0.1-SNAPSHOT</version>
  7. <!--测试版本 -->
  8. <!--<version>1.0.1-SNAPSHOT</version>-->
  9. <packaging>jar</packaging>
  10. <name>spider_common</name>
  11. <url>http://maven.apache.org</url>
  12. <properties>
  13. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  14. <luyn-utils.version>2.0.1-SNAPSHOT</luyn-utils.version>
  15. <!--<luyn-utils.version>0.0.1</luyn-utils.version>-->
  16. <!--<luyn-utils.version>1.0</luyn-utils.version>-->
  17. <okhttp.version>3.4.1</okhttp.version>
  18. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  19. <maven.compiler.source>1.8</maven.compiler.source>
  20. <maven.compiler.target>1.8</maven.compiler.target>
  21. <java.version>1.8</java.version>
  22. <spring-cloud.version>Dalston.SR3</spring-cloud.version>
  23. <spring-boot.version>1.5.7.RELEASE</spring-boot.version>
  24. <ip>0.0.1-SNAPSHOT</ip>
  25. <common.version>0.0.1-SNAPSHOT</common.version>
  26. <log4j2.version>2.8</log4j2.version>
  27. <slf4j.version>1.7.10</slf4j.version>
  28. <swagger2.version>2.6.1</swagger2.version>
  29. <mysql.version>6.0.6</mysql.version>
  30. </properties>
  31. <dependencies>
  32. <dependency>
  33. <groupId>us.codecraft</groupId>
  34. <artifactId>webmagic-core</artifactId>
  35. <version>0.7.3</version>
  36. <exclusions>
  37. <exclusion>
  38. <groupId>org.slf4j</groupId>
  39. <artifactId>slf4j-api</artifactId>
  40. </exclusion>
  41. <exclusion>
  42. <groupId>org.slf4j</groupId>
  43. <artifactId>slf4j-log4j12</artifactId>
  44. </exclusion>
  45. </exclusions>
  46. </dependency>
  47. <dependency>
  48. <groupId>us.codecraft</groupId>
  49. <artifactId>webmagic-extension</artifactId>
  50. <version>0.7.3</version>
  51. </dependency>
  52. <dependency>
  53. <groupId>com.alibaba</groupId>
  54. <artifactId>fastjson</artifactId>
  55. <version>1.2.31</version>
  56. </dependency>
  57. <dependency>
  58. <groupId>com.alibaba</groupId>
  59. <artifactId>druid</artifactId>
  60. <version>1.1.6</version>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.apache.logging.log4j</groupId>
  64. <artifactId>log4j-api</artifactId>
  65. <version>${log4j2.version}</version>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.apache.logging.log4j</groupId>
  69. <artifactId>log4j-core</artifactId>
  70. <version>${log4j2.version}</version>
  71. </dependency>
  72. <dependency> <!-- 桥接:告诉Slf4j使用Log4j2 -->
  73. <groupId>org.apache.logging.log4j</groupId>
  74. <artifactId>log4j-slf4j-impl</artifactId>
  75. <version>${log4j2.version}</version>
  76. </dependency>
  77. <dependency> <!-- 桥接:告诉commons logging使用Log4j2 -->
  78. <groupId>org.apache.logging.log4j</groupId>
  79. <artifactId>log4j-jcl</artifactId>
  80. <version>${log4j2.version}</version>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.slf4j</groupId>
  84. <artifactId>slf4j-api</artifactId>
  85. <version>${slf4j.version}</version>
  86. </dependency>
  87. <dependency>
  88. <groupId>com.lmax</groupId>
  89. <artifactId>disruptor</artifactId>
  90. <version>3.3.6</version>
  91. </dependency>
  92. <dependency>
  93. <groupId>com.fasterxml.jackson.datatype</groupId>
  94. <artifactId>jackson-datatype-joda</artifactId>
  95. <version>2.9.0.pr3</version>
  96. </dependency>
  97. <dependency>
  98. <groupId>com.fasterxml.jackson.datatype</groupId>
  99. <artifactId>jackson-datatype-jsr310</artifactId>
  100. <version>2.9.0.pr3</version>
  101. </dependency>
  102. <dependency>
  103. <groupId>org.projectlombok</groupId>
  104. <artifactId>lombok</artifactId>
  105. <version>1.16.16</version>
  106. </dependency>
  107. <dependency>
  108. <groupId>mysql</groupId>
  109. <artifactId>mysql-connector-java</artifactId>
  110. <version>${mysql.version}</version>
  111. </dependency>
  112. <dependency>
  113. <groupId>com.lmax</groupId>
  114. <artifactId>disruptor</artifactId>
  115. <version>3.3.6</version>
  116. </dependency>
  117. <!-- http 网络请求包 -->
  118. <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
  119. <dependency>
  120. <groupId>org.apache.httpcomponents</groupId>
  121. <artifactId>httpclient</artifactId>
  122. <version>4.5.4</version>
  123. </dependency>
  124. <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpcore -->
  125. <dependency>
  126. <groupId>org.apache.httpcomponents</groupId>
  127. <artifactId>httpcore</artifactId>
  128. <version>4.4.5</version>
  129. </dependency>
  130. <dependency>
  131. <groupId>javax.mail</groupId>
  132. <artifactId>mail</artifactId>
  133. <version>1.4.7</version>
  134. </dependency>
  135. <dependency>
  136. <groupId>org.seleniumhq.selenium</groupId>
  137. <artifactId>selenium-java</artifactId>
  138. <version>3.7.1</version>
  139. </dependency>
  140. <!--<dependency>-->
  141. <!--<groupId>org.seleniumhq.selenium</groupId>-->
  142. <!--<artifactId>selenium-java</artifactId>-->
  143. <!--<version>2.44.0</version>-->
  144. <!--</dependency>-->
  145. <dependency>
  146. <groupId>net.sourceforge.htmlunit</groupId>
  147. <artifactId>htmlunit</artifactId>
  148. <version>2.27</version>
  149. </dependency>
  150. <dependency>
  151. <groupId>com.squareup.okhttp3</groupId>
  152. <artifactId>okhttp</artifactId>
  153. <version>${okhttp.version}</version>
  154. </dependency>
  155. <!--<dependency>-->
  156. <!--<groupId>com.bjlt.spider</groupId>-->
  157. <!--<artifactId>luyn-utils</artifactId>-->
  158. <!--<version>1.0-SNAPSHOT</version>-->
  159. <!--</dependency>-->
  160. <dependency>
  161. <groupId>com.bjlt.spider</groupId>
  162. <artifactId>luyn-utils</artifactId>
  163. <version>${luyn-utils.version}</version>
  164. </dependency>
  165. <!--<dependency>-->
  166. <!--<groupId>junit</groupId>-->
  167. <!--<artifactId>junit</artifactId>-->
  168. <!--<version>3.8.1</version>-->
  169. <!--<scope>test</scope>-->
  170. <!--</dependency>-->
  171. <dependency>
  172. <groupId>com.bjlt.spider</groupId>
  173. <artifactId>common</artifactId>
  174. <version>${common.version}</version>
  175. </dependency>
  176. <dependency>
  177. <groupId>com.bjlt.spider</groupId>
  178. <artifactId>ip_rpc</artifactId>
  179. <version>${ip}</version>
  180. </dependency>
  181. <dependency>
  182. <groupId>org.springframework.boot</groupId>
  183. <artifactId>spring-boot-starter-web</artifactId>
  184. </dependency>
  185. <dependency>
  186. <groupId>org.springframework.boot</groupId>
  187. <artifactId>spring-boot-starter-actuator</artifactId>
  188. </dependency>
  189. <dependency>
  190. <groupId>org.springframework.boot</groupId>
  191. <artifactId>spring-boot-starter-aop</artifactId>
  192. </dependency>
  193. <dependency>
  194. <groupId>org.springframework.cloud</groupId>
  195. <artifactId>spring-cloud-starter-eureka</artifactId>
  196. </dependency>
  197. <dependency>
  198. <groupId>org.springframework.boot</groupId>
  199. <artifactId>spring-boot-starter-data-redis</artifactId>
  200. </dependency>
  201. <!-- spring的重试 -->
  202. <!--<dependency>-->
  203. <!--<groupId>org.springframework.retry</groupId>-->
  204. <!--<artifactId>spring-retry</artifactId>-->
  205. <!--</dependency>-->
  206. <!--<dependency>-->
  207. <!--<groupId>org.aspectj</groupId>-->
  208. <!--<artifactId>aspectjweaver</artifactId>-->
  209. <!--</dependency>-->
  210. <dependency>
  211. <groupId>org.springframework.boot</groupId>
  212. <artifactId>spring-boot-starter-jdbc</artifactId>
  213. <exclusions>
  214. <!--使用druid数据源,排除自带的tomcatjdbc-->
  215. <exclusion>
  216. <groupId>org.apache.tomcat</groupId>
  217. <artifactId>tomcat-jdbc</artifactId>
  218. </exclusion>
  219. </exclusions>
  220. </dependency>
  221. <dependency>
  222. <groupId>org.springframework.boot</groupId>
  223. <artifactId>spring-boot-starter-test</artifactId>
  224. <scope>test</scope>
  225. </dependency>
  226. <dependency>
  227. <groupId>org.springframework.boot</groupId>
  228. <artifactId>spring-boot-starter</artifactId>
  229. <exclusions>
  230. <!--去除spring boot自带的-->
  231. <exclusion>
  232. <groupId>org.springframework.boot</groupId>
  233. <artifactId>spring-boot-starter-logging</artifactId>
  234. </exclusion>
  235. </exclusions>
  236. </dependency>
  237. <dependency>
  238. <groupId>io.github.openfeign</groupId>
  239. <artifactId>feign-okhttp</artifactId>
  240. </dependency>
  241. <!--<dependency>-->
  242. <!--<groupId>junit</groupId>-->
  243. <!--<artifactId>junit</artifactId>-->
  244. <!--<scope>test</scope>-->
  245. <!--</dependency>-->
  246. </dependencies>
  247. <dependencyManagement>
  248. <dependencies>
  249. <dependency>
  250. <groupId>org.springframework.boot</groupId>
  251. <artifactId>spring-boot-dependencies</artifactId>
  252. <version>${spring-boot.version}</version>
  253. <type>pom</type>
  254. <scope>import</scope>
  255. </dependency>
  256. <dependency>
  257. <groupId>org.springframework.cloud</groupId>
  258. <artifactId>spring-cloud-dependencies</artifactId>
  259. <version>${spring-cloud.version}</version>
  260. <type>pom</type>
  261. <scope>import</scope>
  262. </dependency>
  263. <dependency>
  264. <groupId>org.springframework.boot</groupId>
  265. <artifactId>spring-boot-devtools</artifactId>
  266. <optional>true</optional>
  267. </dependency>
  268. <!-- https://mvnrepository.com/artifact/junit/junit -->
  269. <dependency>
  270. <groupId>junit</groupId>
  271. <artifactId>junit</artifactId>
  272. <version>4.12</version>
  273. <scope>test</scope>
  274. </dependency>
  275. </dependencies>
  276. </dependencyManagement>
  277. <repositories>
  278. <repository>
  279. <id>public</id>
  280. <name>public</name>
  281. <url>http://123.103.51.13:8088/nexus/content/groups/public/</url>
  282. <snapshots>
  283. <enabled>true</enabled>
  284. </snapshots>
  285. </repository>
  286. </repositories>
  287. <distributionManagement>
  288. <repository>
  289. <id>releases</id>
  290. <name>releases</name>
  291. <url>http://123.103.51.13:8088/nexus/content/repositories/releases/</url>
  292. </repository>
  293. <snapshotRepository>
  294. <id>snapshots</id>
  295. <name>snapshots</name>
  296. <url>http://123.103.51.13:8088/nexus/content/repositories/snapshots/</url>
  297. </snapshotRepository>
  298. </distributionManagement>
  299. <!--<build>-->
  300. <!--<plugins>-->
  301. <!--<plugin>-->
  302. <!--<groupId>org.springframework.boot</groupId>-->
  303. <!--<artifactId>spring-boot-maven-plugin</artifactId>-->
  304. <!--<configuration>-->
  305. <!--<mainClass>com.bjlt.spider.UserServiceApplication</mainClass>-->
  306. <!--</configuration>-->
  307. <!--<executions>-->
  308. <!--<execution>-->
  309. <!--<goals>-->
  310. <!--<goal>repackage</goal>-->
  311. <!--</goals>-->
  312. <!--</execution>-->
  313. <!--</executions>-->
  314. <!--</plugin>-->
  315. <!--<plugin>-->
  316. <!--<groupId>org.apache.maven.plugins</groupId>-->
  317. <!--<artifactId>maven-compiler-plugin</artifactId>-->
  318. <!--<configuration>-->
  319. <!--<source>${maven.compiler.source}</source>-->
  320. <!--<target>${maven.compiler.target}</target>-->
  321. <!--</configuration>-->
  322. <!--</plugin>-->
  323. <!--<plugin>-->
  324. <!--<groupId>org.springframework.boot</groupId>-->
  325. <!--<artifactId>spring-boot-maven-plugin</artifactId>-->
  326. <!--<configuration>-->
  327. <!--&lt;!&ndash;fork : 如果没有该项配置,肯呢个devtools不会起作用,即应用不会restart &ndash;&gt;-->
  328. <!--<fork>true</fork>-->
  329. <!--</configuration>-->
  330. <!--</plugin>-->
  331. <!--</plugins>-->
  332. <!--</build>-->
  333. </project>