pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
  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>io.renren</groupId>
  6. <artifactId>renren-fast</artifactId>
  7. <version>3.0.0</version>
  8. <packaging>jar</packaging>
  9. <description>renren-fast</description>
  10. <parent>
  11. <groupId>org.springframework.boot</groupId>
  12. <artifactId>spring-boot-starter-parent</artifactId>
  13. <version>2.2.4.RELEASE</version>
  14. </parent>
  15. <properties>
  16. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  17. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  18. <java.version>1.8</java.version>
  19. <mybatisplus.version>3.3.1</mybatisplus.version>
  20. <mysql.version>8.0.24</mysql.version>
  21. <mssql.version>4.0</mssql.version>
  22. <oracle.version>11.2.0.3</oracle.version>
  23. <druid.version>1.1.13</druid.version>
  24. <quartz.version>2.3.0</quartz.version>
  25. <commons.lang.version>2.6</commons.lang.version>
  26. <commons.fileupload.version>1.2.2</commons.fileupload.version>
  27. <commons.io.version>2.5</commons.io.version>
  28. <commons.codec.version>1.10</commons.codec.version>
  29. <commons.configuration.version>1.10</commons.configuration.version>
  30. <shiro.version>1.4.0</shiro.version>
  31. <jwt.version>0.7.0</jwt.version>
  32. <kaptcha.version>0.0.9</kaptcha.version>
  33. <qiniu.version>7.2.23</qiniu.version>
  34. <aliyun.oss.version>2.8.3</aliyun.oss.version>
  35. <qcloud.cos.version>4.4</qcloud.cos.version>
  36. <swagger.version>2.7.0</swagger.version>
  37. <joda.time.version>2.9.9</joda.time.version>
  38. <gson.version>2.8.5</gson.version>
  39. <fastjson.version>1.2.72</fastjson.version>
  40. <hutool.version>4.1.1</hutool.version>
  41. <lombok.version>1.18.4</lombok.version>
  42. <!--wagon plugin 配置-->
  43. <service-path>/work/renren</service-path>
  44. <pack-name>${project.artifactId}-${project.version}.jar</pack-name>
  45. <remote-addr>192.168.1.10:22</remote-addr>
  46. <remote-username>root</remote-username>
  47. <remote-passwd>123456</remote-passwd>
  48. </properties>
  49. <dependencies>
  50. <dependency>
  51. <groupId>com.baomidou</groupId>
  52. <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
  53. <version>3.4.0</version>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.springframework.boot</groupId>
  57. <artifactId>spring-boot-starter-test</artifactId>
  58. <scope>test</scope>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.springframework.boot</groupId>
  62. <artifactId>spring-boot-starter-web</artifactId>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.springframework.boot</groupId>
  66. <artifactId>spring-boot-starter-aop</artifactId>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.springframework</groupId>
  70. <artifactId>spring-context-support</artifactId>
  71. </dependency>
  72. <dependency>
  73. <groupId>org.springframework.boot</groupId>
  74. <artifactId>spring-boot-starter-data-redis</artifactId>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.springframework.boot</groupId>
  78. <artifactId>spring-boot-configuration-processor</artifactId>
  79. <optional>true</optional>
  80. </dependency>
  81. <dependency>
  82. <groupId>io.minio</groupId>
  83. <artifactId>minio</artifactId>
  84. <version>7.0.2</version>
  85. </dependency>
  86. <!-- https://mvnrepository.com/artifact/com.spotify/docker-client -->
  87. <dependency>
  88. <groupId>com.spotify</groupId>
  89. <artifactId>docker-client</artifactId>
  90. <version>8.16.0</version>
  91. </dependency>
  92. <dependency>
  93. <groupId>org.glassfish.jersey.inject</groupId>
  94. <artifactId>jersey-hk2</artifactId>
  95. <version>2.27</version>
  96. </dependency>
  97. <!--ttps://mvnrepository.com/artifact/com.jcraft/jsch-->
  98. <dependency>
  99. <groupId>com.jcraft</groupId>
  100. <artifactId>jsch</artifactId>
  101. <version>0.1.54</version>
  102. </dependency>
  103. <!--<dependency>-->
  104. <!--<groupId>org.springframework.boot</groupId>-->
  105. <!--<artifactId>spring-boot-devtools</artifactId>-->
  106. <!--<optional>true</optional>-->
  107. <!--</dependency>-->
  108. <dependency>
  109. <groupId>com.baomidou</groupId>
  110. <artifactId>mybatis-plus-boot-starter</artifactId>
  111. <version>${mybatisplus.version}</version>
  112. <exclusions>
  113. <exclusion>
  114. <groupId>com.baomidou</groupId>
  115. <artifactId>mybatis-plus-generator</artifactId>
  116. </exclusion>
  117. </exclusions>
  118. </dependency>
  119. <dependency>
  120. <groupId>mysql</groupId>
  121. <artifactId>mysql-connector-java</artifactId>
  122. <version>${mysql.version}</version>
  123. </dependency>
  124. <!--oracle驱动-->
  125. <dependency>
  126. <groupId>com.oracle</groupId>
  127. <artifactId>ojdbc6</artifactId>
  128. <version>${oracle.version}</version>
  129. </dependency>
  130. <!--mssql驱动-->
  131. <dependency>
  132. <groupId>com.microsoft.sqlserver</groupId>
  133. <artifactId>sqljdbc4</artifactId>
  134. <version>${mssql.version}</version>
  135. </dependency>
  136. <!--postgresql驱动-->
  137. <dependency>
  138. <groupId>org.postgresql</groupId>
  139. <artifactId>postgresql</artifactId>
  140. </dependency>
  141. <dependency>
  142. <groupId>com.alibaba</groupId>
  143. <artifactId>druid-spring-boot-starter</artifactId>
  144. <version>${druid.version}</version>
  145. </dependency>
  146. <dependency>
  147. <groupId>org.quartz-scheduler</groupId>
  148. <artifactId>quartz</artifactId>
  149. <version>${quartz.version}</version>
  150. <exclusions>
  151. <exclusion>
  152. <groupId>com.mchange</groupId>
  153. <artifactId>c3p0</artifactId>
  154. </exclusion>
  155. </exclusions>
  156. </dependency>
  157. <dependency>
  158. <groupId>commons-lang</groupId>
  159. <artifactId>commons-lang</artifactId>
  160. <version>${commons.lang.version}</version>
  161. </dependency>
  162. <dependency>
  163. <groupId>commons-fileupload</groupId>
  164. <artifactId>commons-fileupload</artifactId>
  165. <version>${commons.fileupload.version}</version>
  166. </dependency>
  167. <dependency>
  168. <groupId>commons-io</groupId>
  169. <artifactId>commons-io</artifactId>
  170. <version>${commons.io.version}</version>
  171. </dependency>
  172. <dependency>
  173. <groupId>commons-codec</groupId>
  174. <artifactId>commons-codec</artifactId>
  175. <version>${commons.codec.version}</version>
  176. </dependency>
  177. <dependency>
  178. <groupId>commons-configuration</groupId>
  179. <artifactId>commons-configuration</artifactId>
  180. <version>${commons.configuration.version}</version>
  181. </dependency>
  182. <dependency>
  183. <groupId>org.apache.shiro</groupId>
  184. <artifactId>shiro-core</artifactId>
  185. <version>${shiro.version}</version>
  186. </dependency>
  187. <dependency>
  188. <groupId>org.apache.shiro</groupId>
  189. <artifactId>shiro-spring</artifactId>
  190. <version>${shiro.version}</version>
  191. </dependency>
  192. <dependency>
  193. <groupId>io.jsonwebtoken</groupId>
  194. <artifactId>jjwt</artifactId>
  195. <version>${jwt.version}</version>
  196. </dependency>
  197. <dependency>
  198. <groupId>com.github.axet</groupId>
  199. <artifactId>kaptcha</artifactId>
  200. <version>${kaptcha.version}</version>
  201. </dependency>
  202. <dependency>
  203. <groupId>io.springfox</groupId>
  204. <artifactId>springfox-swagger2</artifactId>
  205. <version>${swagger.version}</version>
  206. </dependency>
  207. <dependency>
  208. <groupId>io.springfox</groupId>
  209. <artifactId>springfox-swagger-ui</artifactId>
  210. <version>${swagger.version}</version>
  211. </dependency>
  212. <dependency>
  213. <groupId>com.qiniu</groupId>
  214. <artifactId>qiniu-java-sdk</artifactId>
  215. <version>${qiniu.version}</version>
  216. </dependency>
  217. <dependency>
  218. <groupId>com.aliyun.oss</groupId>
  219. <artifactId>aliyun-sdk-oss</artifactId>
  220. <version>${aliyun.oss.version}</version>
  221. </dependency>
  222. <dependency>
  223. <groupId>com.qcloud</groupId>
  224. <artifactId>cos_api</artifactId>
  225. <version>${qcloud.cos.version}</version>
  226. <exclusions>
  227. <exclusion>
  228. <groupId>org.slf4j</groupId>
  229. <artifactId>slf4j-log4j12</artifactId>
  230. </exclusion>
  231. </exclusions>
  232. </dependency>
  233. <dependency>
  234. <groupId>joda-time</groupId>
  235. <artifactId>joda-time</artifactId>
  236. <version>${joda.time.version}</version>
  237. </dependency>
  238. <dependency>
  239. <groupId>com.google.code.gson</groupId>
  240. <artifactId>gson</artifactId>
  241. <version>${gson.version}</version>
  242. </dependency>
  243. <dependency>
  244. <groupId>com.alibaba</groupId>
  245. <artifactId>fastjson</artifactId>
  246. <version>${fastjson.version}</version>
  247. </dependency>
  248. <dependency>
  249. <groupId>cn.hutool</groupId>
  250. <artifactId>hutool-all</artifactId>
  251. <version>${hutool.version}</version>
  252. </dependency>
  253. <dependency>
  254. <groupId>org.projectlombok</groupId>
  255. <artifactId>lombok</artifactId>
  256. <version>${lombok.version}</version>
  257. </dependency>
  258. <dependency>
  259. <groupId>commons-net</groupId>
  260. <artifactId>commons-net</artifactId>
  261. <version>3.6</version>
  262. </dependency>
  263. <dependency>
  264. <groupId>io.argoproj.workflow</groupId>
  265. <artifactId>argo-client-java</artifactId>
  266. <version>v3.0.1</version>
  267. <scope>compile</scope>
  268. </dependency>
  269. <dependency>
  270. <groupId>com.alibaba</groupId>
  271. <artifactId>easyexcel</artifactId>
  272. <version>2.2.10</version>
  273. </dependency>
  274. <dependency>
  275. <groupId>lgh.springboot</groupId>
  276. <artifactId>hbase-spring-boot-starter</artifactId>
  277. <version>2.2.6</version>
  278. </dependency>
  279. <dependency>
  280. <groupId>com.belerweb</groupId>
  281. <artifactId>pinyin4j</artifactId>
  282. <version>2.5.0</version>
  283. </dependency>
  284. <dependency>
  285. <groupId>org.dom4j</groupId>
  286. <artifactId>dom4j</artifactId>
  287. <version>2.1.4</version>
  288. </dependency>
  289. <!--<dependency>-->
  290. <!--<groupId>jdk.tools</groupId>-->
  291. <!--<artifactId>jdk.tools</artifactId>-->
  292. <!--<version>1.8</version>-->
  293. <!--<scope>system</scope>-->
  294. <!--<systemPath>D:/JAVA8/lib/tools.jar</systemPath>-->
  295. <!--</dependency>-->
  296. <!-- <dependency>-->
  297. <!-- <groupId>javax.websocket</groupId>-->
  298. <!-- <artifactId>javax.websocket-api</artifactId>-->
  299. <!-- <version>1.1</version>-->
  300. <!-- </dependency>-->
  301. <dependency>
  302. <groupId>org.springframework.boot</groupId>
  303. <artifactId>spring-boot-starter-websocket</artifactId>
  304. </dependency>
  305. <!--HttpClient-->
  306. <dependency>
  307. <groupId>commons-httpclient</groupId>
  308. <artifactId>commons-httpclient</artifactId>
  309. <version>3.1</version>
  310. </dependency>
  311. <!-- csv文件解析依赖 -->
  312. <dependency>
  313. <groupId>net.sf.supercsv</groupId>
  314. <artifactId>super-csv-java8</artifactId>
  315. <version>2.4.0</version>
  316. </dependency>
  317. </dependencies>
  318. <build>
  319. <finalName>${project.artifactId}</finalName>
  320. <extensions>
  321. <extension>
  322. <groupId>org.apache.maven.wagon</groupId>
  323. <artifactId>wagon-ssh</artifactId>
  324. <version>2.8</version>
  325. </extension>
  326. </extensions>
  327. <plugins>
  328. <plugin>
  329. <groupId>org.springframework.boot</groupId>
  330. <artifactId>spring-boot-maven-plugin</artifactId>
  331. <configuration>
  332. <fork>true</fork>
  333. <!--<includeSystemScope>true</includeSystemScope>-->
  334. </configuration>
  335. </plugin>
  336. <!-- 跳过单元测试 -->
  337. <plugin>
  338. <groupId>org.apache.maven.plugins</groupId>
  339. <artifactId>maven-surefire-plugin</artifactId>
  340. <configuration>
  341. <skipTests>true</skipTests>
  342. </configuration>
  343. </plugin>
  344. <plugin>
  345. <groupId>org.codehaus.mojo</groupId>
  346. <artifactId>wagon-maven-plugin</artifactId>
  347. <version>1.0</version>
  348. <configuration>
  349. <fromFile>target/${pack-name}</fromFile>
  350. <url><![CDATA[scp://${remote-username}:${remote-passwd}@${remote-addr}${service-path}]]></url>
  351. <commands>
  352. <!-- Kill Old Process -->
  353. <command>kill -9 `ps -ef |grep ${project.artifactId}.jar|grep -v "grep" |awk '{print $2}'`</command>
  354. <!-- Restart jar package,write result into renren.log -->
  355. <command><![CDATA[nohup java -jar ${service-path}/${pack-name} --spring.profiles.active=test > ${service-path}/renren.log 2>&1 & ]]></command>
  356. <command><![CDATA[netstat -nptl]]></command>
  357. <command><![CDATA[ps -ef | grep java | grep -v grep]]></command>
  358. </commands>
  359. <!-- 运行命令 mvn clean package wagon:upload-single wagon:sshexec-->
  360. <displayCommandOutputs>true</displayCommandOutputs>
  361. </configuration>
  362. </plugin>
  363. <plugin>
  364. <groupId>com.spotify</groupId>
  365. <artifactId>docker-maven-plugin</artifactId>
  366. <version>0.4.14</version>
  367. <!--<executions>-->
  368. <!--<execution>-->
  369. <!--<phase>package</phase>-->
  370. <!--<goals>-->
  371. <!--<goal>build</goal>-->
  372. <!--</goals>-->
  373. <!--</execution>-->
  374. <!--</executions>-->
  375. <configuration>
  376. <imageName>renren/fast</imageName>
  377. <dockerDirectory>${project.basedir}</dockerDirectory>
  378. <resources>
  379. <resource>
  380. <targetPath>/</targetPath>
  381. <directory>${project.build.directory}</directory>
  382. <include>${project.build.finalName}.jar</include>
  383. </resource>
  384. </resources>
  385. </configuration>
  386. <!-- 运行命令 mvn clean package docker:build 打包并生成docker镜像 -->
  387. </plugin>
  388. </plugins>
  389. </build>
  390. <repositories>
  391. <repository>
  392. <id>public</id>
  393. <name>aliyun nexus</name>
  394. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  395. <releases>
  396. <enabled>true</enabled>
  397. </releases>
  398. </repository>
  399. </repositories>
  400. <pluginRepositories>
  401. <pluginRepository>
  402. <id>public</id>
  403. <name>aliyun nexus</name>
  404. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  405. <releases>
  406. <enabled>true</enabled>
  407. </releases>
  408. <snapshots>
  409. <enabled>false</enabled>
  410. </snapshots>
  411. </pluginRepository>
  412. </pluginRepositories>
  413. </project>