pom.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376
  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.17</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.6</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. <minio-version>7.0.2</minio-version>
  43. <!--wagon plugin 配置-->
  44. <service-path>/work/renren</service-path>
  45. <pack-name>${project.artifactId}-${project.version}.jar</pack-name>
  46. <remote-addr>192.168.1.10:22</remote-addr>
  47. <remote-username>root</remote-username>
  48. <remote-passwd>123456</remote-passwd>
  49. </properties>
  50. <dependencies>
  51. <dependency>
  52. <groupId>org.springframework.boot</groupId>
  53. <artifactId>spring-boot-starter-test</artifactId>
  54. <scope>test</scope>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.springframework.boot</groupId>
  58. <artifactId>spring-boot-starter-web</artifactId>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.springframework.boot</groupId>
  62. <artifactId>spring-boot-starter-aop</artifactId>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.springframework</groupId>
  66. <artifactId>spring-context-support</artifactId>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.springframework.boot</groupId>
  70. <artifactId>spring-boot-starter-data-redis</artifactId>
  71. </dependency>
  72. <dependency>
  73. <groupId>org.springframework.boot</groupId>
  74. <artifactId>spring-boot-configuration-processor</artifactId>
  75. <optional>true</optional>
  76. </dependency>
  77. <!--<dependency>-->
  78. <!--<groupId>org.springframework.boot</groupId>-->
  79. <!--<artifactId>spring-boot-devtools</artifactId>-->
  80. <!--<optional>true</optional>-->
  81. <!--</dependency>-->
  82. <dependency>
  83. <groupId>com.baomidou</groupId>
  84. <artifactId>mybatis-plus-boot-starter</artifactId>
  85. <version>${mybatisplus.version}</version>
  86. <exclusions>
  87. <exclusion>
  88. <groupId>com.baomidou</groupId>
  89. <artifactId>mybatis-plus-generator</artifactId>
  90. </exclusion>
  91. </exclusions>
  92. </dependency>
  93. <dependency>
  94. <groupId>mysql</groupId>
  95. <artifactId>mysql-connector-java</artifactId>
  96. <version>${mysql.version}</version>
  97. </dependency>
  98. <!--oracle驱动-->
  99. <dependency>
  100. <groupId>com.oracle</groupId>
  101. <artifactId>ojdbc6</artifactId>
  102. <version>${oracle.version}</version>
  103. </dependency>
  104. <!--mssql驱动-->
  105. <dependency>
  106. <groupId>com.microsoft.sqlserver</groupId>
  107. <artifactId>sqljdbc4</artifactId>
  108. <version>${mssql.version}</version>
  109. </dependency>
  110. <!--postgresql驱动-->
  111. <dependency>
  112. <groupId>org.postgresql</groupId>
  113. <artifactId>postgresql</artifactId>
  114. </dependency>
  115. <dependency>
  116. <groupId>com.alibaba</groupId>
  117. <artifactId>druid-spring-boot-starter</artifactId>
  118. <version>${druid.version}</version>
  119. </dependency>
  120. <dependency>
  121. <groupId>org.quartz-scheduler</groupId>
  122. <artifactId>quartz</artifactId>
  123. <version>${quartz.version}</version>
  124. <exclusions>
  125. <exclusion>
  126. <groupId>com.mchange</groupId>
  127. <artifactId>c3p0</artifactId>
  128. </exclusion>
  129. </exclusions>
  130. </dependency>
  131. <dependency>
  132. <groupId>commons-lang</groupId>
  133. <artifactId>commons-lang</artifactId>
  134. <version>${commons.lang.version}</version>
  135. </dependency>
  136. <dependency>
  137. <groupId>commons-fileupload</groupId>
  138. <artifactId>commons-fileupload</artifactId>
  139. <version>${commons.fileupload.version}</version>
  140. </dependency>
  141. <dependency>
  142. <groupId>commons-io</groupId>
  143. <artifactId>commons-io</artifactId>
  144. <version>${commons.io.version}</version>
  145. </dependency>
  146. <dependency>
  147. <groupId>commons-codec</groupId>
  148. <artifactId>commons-codec</artifactId>
  149. <version>${commons.codec.version}</version>
  150. </dependency>
  151. <dependency>
  152. <groupId>commons-configuration</groupId>
  153. <artifactId>commons-configuration</artifactId>
  154. <version>${commons.configuration.version}</version>
  155. </dependency>
  156. <dependency>
  157. <groupId>org.apache.shiro</groupId>
  158. <artifactId>shiro-core</artifactId>
  159. <version>${shiro.version}</version>
  160. </dependency>
  161. <dependency>
  162. <groupId>org.apache.shiro</groupId>
  163. <artifactId>shiro-spring</artifactId>
  164. <version>${shiro.version}</version>
  165. </dependency>
  166. <dependency>
  167. <groupId>io.jsonwebtoken</groupId>
  168. <artifactId>jjwt</artifactId>
  169. <version>${jwt.version}</version>
  170. </dependency>
  171. <dependency>
  172. <groupId>com.github.axet</groupId>
  173. <artifactId>kaptcha</artifactId>
  174. <version>${kaptcha.version}</version>
  175. </dependency>
  176. <dependency>
  177. <groupId>io.springfox</groupId>
  178. <artifactId>springfox-swagger2</artifactId>
  179. <version>${swagger.version}</version>
  180. </dependency>
  181. <dependency>
  182. <groupId>io.springfox</groupId>
  183. <artifactId>springfox-swagger-ui</artifactId>
  184. <version>${swagger.version}</version>
  185. </dependency>
  186. <dependency>
  187. <groupId>com.qiniu</groupId>
  188. <artifactId>qiniu-java-sdk</artifactId>
  189. <version>${qiniu.version}</version>
  190. </dependency>
  191. <dependency>
  192. <groupId>com.aliyun.oss</groupId>
  193. <artifactId>aliyun-sdk-oss</artifactId>
  194. <version>${aliyun.oss.version}</version>
  195. </dependency>
  196. <dependency>
  197. <groupId>com.qcloud</groupId>
  198. <artifactId>cos_api</artifactId>
  199. <version>${qcloud.cos.version}</version>
  200. <exclusions>
  201. <exclusion>
  202. <groupId>org.slf4j</groupId>
  203. <artifactId>slf4j-log4j12</artifactId>
  204. </exclusion>
  205. </exclusions>
  206. </dependency>
  207. <dependency>
  208. <groupId>joda-time</groupId>
  209. <artifactId>joda-time</artifactId>
  210. <version>${joda.time.version}</version>
  211. </dependency>
  212. <!-- Hbase连接-->
  213. <dependency>
  214. <groupId>lgh.springboot</groupId>
  215. <artifactId>hbase-spring-boot-starter</artifactId>
  216. <version>2.2.6</version>
  217. </dependency>
  218. <!-- 截至-->
  219. <dependency>
  220. <groupId>com.google.code.gson</groupId>
  221. <artifactId>gson</artifactId>
  222. <version>${gson.version}</version>
  223. </dependency>
  224. <dependency>
  225. <groupId>com.alibaba</groupId>
  226. <artifactId>fastjson</artifactId>
  227. <version>${fastjson.version}</version>
  228. </dependency>
  229. <!--minio-->
  230. <dependency>
  231. <groupId>io.minio</groupId>
  232. <artifactId>minio</artifactId>
  233. <version>${minio-version}</version>
  234. </dependency>
  235. <dependency>
  236. <groupId>cn.hutool</groupId>
  237. <artifactId>hutool-all</artifactId>
  238. <version>${hutool.version}</version>
  239. </dependency>
  240. <dependency>
  241. <groupId>org.projectlombok</groupId>
  242. <artifactId>lombok</artifactId>
  243. <version>${lombok.version}</version>
  244. </dependency>
  245. <dependency>
  246. <groupId>junit</groupId>
  247. <artifactId>junit</artifactId>
  248. <scope>test</scope>
  249. </dependency>
  250. <dependency>
  251. <groupId>org.springframework</groupId>
  252. <artifactId>spring-test</artifactId>
  253. </dependency>
  254. <!--ttps://mvnrepository.com/artifact/com.jcraft/jsch-->
  255. <dependency>
  256. <groupId>com.jcraft</groupId>
  257. <artifactId>jsch</artifactId>
  258. <version>0.1.54</version>
  259. </dependency>
  260. <dependency>
  261. <groupId>org.springframework.boot</groupId>
  262. <artifactId>spring-boot-starter-websocket</artifactId>
  263. </dependency>
  264. </dependencies>
  265. <build>
  266. <!--<finalName>${project.artifactId}</finalName>-->
  267. <finalName>mkcloud</finalName>
  268. <extensions>
  269. <extension>
  270. <groupId>org.apache.maven.wagon</groupId>
  271. <artifactId>wagon-ssh</artifactId>
  272. <version>2.8</version>
  273. </extension>
  274. </extensions>
  275. <plugins>
  276. <plugin>
  277. <groupId>org.springframework.boot</groupId>
  278. <artifactId>spring-boot-maven-plugin</artifactId>
  279. <configuration>
  280. <fork>true</fork>
  281. <includeSystemScope>true</includeSystemScope>
  282. </configuration>
  283. </plugin>
  284. <!-- 跳过单元测试 -->
  285. <plugin>
  286. <groupId>org.apache.maven.plugins</groupId>
  287. <artifactId>maven-surefire-plugin</artifactId>
  288. <configuration>
  289. <skipTests>true</skipTests>
  290. </configuration>
  291. </plugin>
  292. <plugin>
  293. <groupId>org.codehaus.mojo</groupId>
  294. <artifactId>wagon-maven-plugin</artifactId>
  295. <version>1.0</version>
  296. <configuration>
  297. <fromFile>target/${pack-name}</fromFile>
  298. <url><![CDATA[scp://${remote-username}:${remote-passwd}@${remote-addr}${service-path}]]></url>
  299. <commands>
  300. <!-- Kill Old Process -->
  301. <command>kill -9 `ps -ef |grep ${project.artifactId}.jar|grep -v "grep" |awk '{print $2}'`
  302. </command>
  303. <!-- Restart jar package,write result into renren.log -->
  304. <command>
  305. <![CDATA[nohup java -jar ${service-path}/${pack-name} --spring.profiles.active=test > ${service-path}/renren.log 2>&1 & ]]></command>
  306. <command><![CDATA[netstat -nptl]]></command>
  307. <command><![CDATA[ps -ef | grep java | grep -v grep]]></command>
  308. </commands>
  309. <!-- 运行命令 mvn clean package wagon:upload-single wagon:sshexec-->
  310. <displayCommandOutputs>true</displayCommandOutputs>
  311. </configuration>
  312. </plugin>
  313. <plugin>
  314. <groupId>com.spotify</groupId>
  315. <artifactId>docker-maven-plugin</artifactId>
  316. <version>0.4.14</version>
  317. <!--<executions>-->
  318. <!--<execution>-->
  319. <!--<phase>package</phase>-->
  320. <!--<goals>-->
  321. <!--<goal>build</goal>-->
  322. <!--</goals>-->
  323. <!--</execution>-->
  324. <!--</executions>-->
  325. <configuration>
  326. <imageName>renren/fast</imageName>
  327. <dockerDirectory>${project.basedir}</dockerDirectory>
  328. <resources>
  329. <resource>
  330. <targetPath>/</targetPath>
  331. <directory>${project.build.directory}</directory>
  332. <include>${project.build.finalName}.jar</include>
  333. </resource>
  334. </resources>
  335. </configuration>
  336. <!-- 运行命令 mvn clean package docker:build 打包并生成docker镜像 -->
  337. </plugin>
  338. </plugins>
  339. </build>
  340. <repositories>
  341. <repository>
  342. <id>public</id>
  343. <name>aliyun nexus</name>
  344. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  345. <releases>
  346. <enabled>true</enabled>
  347. </releases>
  348. </repository>
  349. </repositories>
  350. <pluginRepositories>
  351. <pluginRepository>
  352. <id>public</id>
  353. <name>aliyun nexus</name>
  354. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  355. <releases>
  356. <enabled>true</enabled>
  357. </releases>
  358. <snapshots>
  359. <enabled>false</enabled>
  360. </snapshots>
  361. </pluginRepository>
  362. </pluginRepositories>
  363. </project>