荣鑫后端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

376 lines
14 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  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.gaotao</groupId>
  6. <artifactId>rongxing-java</artifactId>
  7. <packaging>jar</packaging>
  8. <description>xujie-fast</description>
  9. <parent>
  10. <groupId>org.springframework.boot</groupId>
  11. <artifactId>spring-boot-starter-parent</artifactId>
  12. <version>2.2.4.RELEASE</version>
  13. </parent>
  14. <properties>
  15. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  17. <java.version>1.8</java.version>
  18. <mybatisplus.version>3.3.1</mybatisplus.version>
  19. <mysql.version>8.0.17</mysql.version>
  20. <mssql.version>4.0</mssql.version>
  21. <oracle.version>11.2.0.3</oracle.version>
  22. <druid.version>1.1.13</druid.version>
  23. <quartz.version>2.3.0</quartz.version>
  24. <commons.lang.version>2.6</commons.lang.version>
  25. <commons.fileupload.version>1.2.2</commons.fileupload.version>
  26. <commons.io.version>2.5</commons.io.version>
  27. <commons.codec.version>1.10</commons.codec.version>
  28. <commons.configuration.version>1.10</commons.configuration.version>
  29. <shiro.version>1.4.0</shiro.version>
  30. <jwt.version>0.7.0</jwt.version>
  31. <kaptcha.version>0.0.9</kaptcha.version>
  32. <qiniu.version>7.2.23</qiniu.version>
  33. <aliyun.oss.version>2.8.3</aliyun.oss.version>
  34. <qcloud.cos.version>4.4</qcloud.cos.version>
  35. <swagger.version>2.7.0</swagger.version>
  36. <joda.time.version>2.9.9</joda.time.version>
  37. <gson.version>2.8.5</gson.version>
  38. <fastjson.version>1.2.72</fastjson.version>
  39. <hutool.version>4.1.1</hutool.version>
  40. <lombok.version>1.18.4</lombok.version>
  41. <json.lib.version>2.4</json.lib.version>
  42. <!--wagon plugin 配置-->
  43. <service-path>/root/gataofast/java</service-path>
  44. <pack-name>${project.artifactId}-${project.version}.jar</pack-name>
  45. <remote-addr>0.0.0.0:22</remote-addr>
  46. <remote-username>root</remote-username>
  47. <remote-passwd>mima</remote-passwd>
  48. </properties>
  49. <dependencies>
  50. <dependency>
  51. <groupId>net.sf.json-lib</groupId>
  52. <artifactId>json-lib</artifactId>
  53. <version>2.4</version>
  54. <classifier>jdk15</classifier>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.apache.commons</groupId>
  58. <artifactId>commons-lang3</artifactId>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.apache.poi</groupId>
  62. <artifactId>poi</artifactId>
  63. <version>4.1.2</version>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.apache.poi</groupId>
  67. <artifactId>poi-ooxml</artifactId>
  68. <version>4.1.2</version>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.apache.poi</groupId>
  72. <artifactId>poi-ooxml-schemas</artifactId>
  73. <version>4.1.2</version>
  74. </dependency>
  75. <dependency>
  76. <groupId>org.springframework.boot</groupId>
  77. <artifactId>spring-boot-starter-freemarker</artifactId>
  78. </dependency>
  79. <!--sqlServer driver -->
  80. <dependency>
  81. <groupId>com.microsoft.sqlserver</groupId>
  82. <artifactId>sqljdbc4</artifactId>
  83. <version>4.2</version>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.springframework.boot</groupId>
  87. <artifactId>spring-boot-starter-test</artifactId>
  88. <scope>test</scope>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.springframework.boot</groupId>
  92. <artifactId>spring-boot-starter-web</artifactId>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.springframework.boot</groupId>
  96. <artifactId>spring-boot-starter-aop</artifactId>
  97. </dependency>
  98. <dependency>
  99. <groupId>org.springframework</groupId>
  100. <artifactId>spring-context-support</artifactId>
  101. </dependency>
  102. <dependency>
  103. <groupId>org.springframework.boot</groupId>
  104. <artifactId>spring-boot-starter-data-redis</artifactId>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.springframework.boot</groupId>
  108. <artifactId>spring-boot-configuration-processor</artifactId>
  109. <optional>true</optional>
  110. </dependency>
  111. <!--<dependency>-->
  112. <!--<groupId>org.springframework.boot</groupId>-->
  113. <!--<artifactId>spring-boot-devtools</artifactId>-->
  114. <!--<optional>true</optional>-->
  115. <!--</dependency>-->
  116. <dependency>
  117. <groupId>com.baomidou</groupId>
  118. <artifactId>mybatis-plus-boot-starter</artifactId>
  119. <version>${mybatisplus.version}</version>
  120. <exclusions>
  121. <exclusion>
  122. <groupId>com.baomidou</groupId>
  123. <artifactId>mybatis-plus-generator</artifactId>
  124. </exclusion>
  125. </exclusions>
  126. </dependency>
  127. <dependency>
  128. <groupId>mysql</groupId>
  129. <artifactId>mysql-connector-java</artifactId>
  130. <version>${mysql.version}</version>
  131. </dependency>
  132. <!--oracle驱动-->
  133. <dependency>
  134. <groupId>com.oracle</groupId>
  135. <artifactId>ojdbc6</artifactId>
  136. <version>${oracle.version}</version>
  137. </dependency>
  138. <!--mssql驱动-->
  139. <dependency>
  140. <groupId>com.microsoft.sqlserver</groupId>
  141. <artifactId>sqljdbc4</artifactId>
  142. <version>${mssql.version}</version>
  143. </dependency>
  144. <!--postgresql驱动-->
  145. <dependency>
  146. <groupId>org.postgresql</groupId>
  147. <artifactId>postgresql</artifactId>
  148. </dependency>
  149. <dependency>
  150. <groupId>com.alibaba</groupId>
  151. <artifactId>druid-spring-boot-starter</artifactId>
  152. <version>${druid.version}</version>
  153. </dependency>
  154. <dependency>
  155. <groupId>org.quartz-scheduler</groupId>
  156. <artifactId>quartz</artifactId>
  157. <version>${quartz.version}</version>
  158. <exclusions>
  159. <exclusion>
  160. <groupId>com.mchange</groupId>
  161. <artifactId>c3p0</artifactId>
  162. </exclusion>
  163. </exclusions>
  164. </dependency>
  165. <dependency>
  166. <groupId>commons-lang</groupId>
  167. <artifactId>commons-lang</artifactId>
  168. <version>${commons.lang.version}</version>
  169. </dependency>
  170. <dependency>
  171. <groupId>commons-fileupload</groupId>
  172. <artifactId>commons-fileupload</artifactId>
  173. <version>${commons.fileupload.version}</version>
  174. </dependency>
  175. <dependency>
  176. <groupId>commons-io</groupId>
  177. <artifactId>commons-io</artifactId>
  178. <version>${commons.io.version}</version>
  179. </dependency>
  180. <dependency>
  181. <groupId>commons-codec</groupId>
  182. <artifactId>commons-codec</artifactId>
  183. <version>${commons.codec.version}</version>
  184. </dependency>
  185. <dependency>
  186. <groupId>commons-configuration</groupId>
  187. <artifactId>commons-configuration</artifactId>
  188. <version>${commons.configuration.version}</version>
  189. </dependency>
  190. <dependency>
  191. <groupId>org.apache.shiro</groupId>
  192. <artifactId>shiro-core</artifactId>
  193. <version>${shiro.version}</version>
  194. </dependency>
  195. <dependency>
  196. <groupId>org.apache.shiro</groupId>
  197. <artifactId>shiro-spring</artifactId>
  198. <version>${shiro.version}</version>
  199. </dependency>
  200. <dependency>
  201. <groupId>io.jsonwebtoken</groupId>
  202. <artifactId>jjwt</artifactId>
  203. <version>${jwt.version}</version>
  204. </dependency>
  205. <dependency>
  206. <groupId>com.github.axet</groupId>
  207. <artifactId>kaptcha</artifactId>
  208. <version>${kaptcha.version}</version>
  209. </dependency>
  210. <dependency>
  211. <groupId>io.springfox</groupId>
  212. <artifactId>springfox-swagger2</artifactId>
  213. <version>${swagger.version}</version>
  214. </dependency>
  215. <dependency>
  216. <groupId>io.springfox</groupId>
  217. <artifactId>springfox-swagger-ui</artifactId>
  218. <version>${swagger.version}</version>
  219. </dependency>
  220. <dependency>
  221. <groupId>com.qiniu</groupId>
  222. <artifactId>qiniu-java-sdk</artifactId>
  223. <version>${qiniu.version}</version>
  224. </dependency>
  225. <dependency>
  226. <groupId>com.aliyun.oss</groupId>
  227. <artifactId>aliyun-sdk-oss</artifactId>
  228. <version>${aliyun.oss.version}</version>
  229. </dependency>
  230. <dependency>
  231. <groupId>com.qcloud</groupId>
  232. <artifactId>cos_api</artifactId>
  233. <version>${qcloud.cos.version}</version>
  234. <exclusions>
  235. <exclusion>
  236. <groupId>org.slf4j</groupId>
  237. <artifactId>slf4j-log4j12</artifactId>
  238. </exclusion>
  239. </exclusions>
  240. </dependency>
  241. <dependency>
  242. <groupId>joda-time</groupId>
  243. <artifactId>joda-time</artifactId>
  244. <version>${joda.time.version}</version>
  245. </dependency>
  246. <dependency>
  247. <groupId>com.google.code.gson</groupId>
  248. <artifactId>gson</artifactId>
  249. <version>${gson.version}</version>
  250. </dependency>
  251. <dependency>
  252. <groupId>com.alibaba</groupId>
  253. <artifactId>fastjson</artifactId>
  254. <version>${fastjson.version}</version>
  255. </dependency>
  256. <dependency>
  257. <groupId>cn.hutool</groupId>
  258. <artifactId>hutool-all</artifactId>
  259. <version>${hutool.version}</version>
  260. </dependency>
  261. <dependency>
  262. <groupId>org.projectlombok</groupId>
  263. <artifactId>lombok</artifactId>
  264. <version>${lombok.version}</version>
  265. </dependency>
  266. </dependencies>
  267. <build>
  268. <finalName>${project.artifactId}</finalName>
  269. <extensions>
  270. <extension>
  271. <groupId>org.apache.maven.wagon</groupId>
  272. <artifactId>wagon-ssh</artifactId>
  273. <version>2.8</version>
  274. </extension>
  275. </extensions>
  276. <plugins>
  277. <plugin>
  278. <groupId>org.springframework.boot</groupId>
  279. <artifactId>spring-boot-maven-plugin</artifactId>
  280. <configuration>
  281. <fork>true</fork>
  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 gaotao.log -spring.profiles.active=dev-->
  304. <command>
  305. <![CDATA[nohup java -jar ${service-path}/${pack-name} > ${service-path}/gaotao.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>gaotao/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>