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.

397 lines
16 KiB

2 years ago
11 months ago
2 years ago
2 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>ckp-label-modification-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. <commons.lang.version>2.6</commons.lang.version>
  24. <commons.fileupload.version>1.2.2</commons.fileupload.version>
  25. <commons.io.version>2.5</commons.io.version>
  26. <commons.codec.version>1.10</commons.codec.version>
  27. <commons.configuration.version>1.10</commons.configuration.version>
  28. <shiro.version>1.4.0</shiro.version>
  29. <jwt.version>0.7.0</jwt.version>
  30. <kaptcha.version>0.0.9</kaptcha.version>
  31. <swagger.version>2.7.0</swagger.version>
  32. <joda.time.version>2.9.9</joda.time.version>
  33. <gson.version>2.8.5</gson.version>
  34. <fastjson.version>1.2.72</fastjson.version>
  35. <lombok.version>1.18.4</lombok.version>
  36. <json.lib.version>2.4</json.lib.version>
  37. <apache.xmlbeans.version>3.1.0</apache.xmlbeans.version>
  38. <!-- <log4j2.version>2.16.0</log4j2.version>-->
  39. <!--wagon plugin 配置-->
  40. <service-path>/root/gataofast/java</service-path>
  41. <pack-name>${project.artifactId}-${project.version}.jar</pack-name>
  42. <remote-addr>116.62.165.118:22</remote-addr>
  43. <remote-username>root</remote-username>
  44. <remote-passwd>951212.Sl</remote-passwd>
  45. </properties>
  46. <dependencies>
  47. <!-- redis依赖commons-pool 这个依赖一定要添加 -->
  48. <dependency>
  49. <groupId>org.apache.commons</groupId>
  50. <artifactId>commons-pool2</artifactId>
  51. </dependency>
  52. <dependency>
  53. <groupId>commons-net</groupId>
  54. <artifactId>commons-net</artifactId>
  55. <version>3.6</version>
  56. </dependency>
  57. <dependency>
  58. <groupId>net.sf.json-lib</groupId>
  59. <artifactId>json-lib</artifactId>
  60. <version>2.4</version>
  61. <classifier>jdk15</classifier>
  62. </dependency>
  63. <dependency>
  64. <groupId>xom</groupId>
  65. <artifactId>xom</artifactId>
  66. <version>1.2.5</version>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.apache.commons</groupId>
  70. <artifactId>commons-lang3</artifactId>
  71. </dependency>
  72. <dependency>
  73. <groupId>cn.idev.excel</groupId>
  74. <artifactId>fastexcel</artifactId>
  75. <version>1.0.0</version>
  76. </dependency>
  77. <dependency>
  78. <groupId>org.apache.poi</groupId>
  79. <artifactId>poi</artifactId>
  80. <version>4.1.2</version>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.apache.poi</groupId>
  84. <artifactId>poi-ooxml</artifactId>
  85. <version>4.1.2</version>
  86. </dependency>
  87. <dependency>
  88. <groupId>org.apache.poi</groupId>
  89. <artifactId>poi-ooxml-schemas</artifactId>
  90. <version>4.1.2</version>
  91. </dependency>
  92. <dependency>
  93. <groupId>org.springframework.boot</groupId>
  94. <artifactId>spring-boot-starter-freemarker</artifactId>
  95. </dependency>
  96. <!--sqlServer driver -->
  97. <dependency>
  98. <groupId>com.microsoft.sqlserver</groupId>
  99. <artifactId>sqljdbc4</artifactId>
  100. <version>4.0</version>
  101. </dependency>
  102. <dependency>
  103. <groupId>org.springframework.boot</groupId>
  104. <artifactId>spring-boot-starter-test</artifactId>
  105. <scope>test</scope>
  106. </dependency>
  107. <dependency>
  108. <groupId>org.springframework.boot</groupId>
  109. <artifactId>spring-boot-starter-web</artifactId>
  110. </dependency>
  111. <dependency>
  112. <groupId>org.springframework.boot</groupId>
  113. <artifactId>spring-boot-starter-aop</artifactId>
  114. </dependency>
  115. <dependency>
  116. <groupId>org.springframework</groupId>
  117. <artifactId>spring-context-support</artifactId>
  118. </dependency>
  119. <dependency>
  120. <groupId>org.springframework.boot</groupId>
  121. <artifactId>spring-boot-starter-data-redis</artifactId>
  122. </dependency>
  123. <dependency>
  124. <groupId>org.springframework.boot</groupId>
  125. <artifactId>spring-boot-configuration-processor</artifactId>
  126. <optional>true</optional>
  127. </dependency>
  128. <!--<dependency>-->
  129. <!--<groupId>org.springframework.boot</groupId>-->
  130. <!--<artifactId>spring-boot-devtools</artifactId>-->
  131. <!--<optional>true</optional>-->
  132. <!--</dependency>-->
  133. <dependency>
  134. <groupId>com.baomidou</groupId>
  135. <artifactId>mybatis-plus-boot-starter</artifactId>
  136. <version>${mybatisplus.version}</version>
  137. <exclusions>
  138. <exclusion>
  139. <groupId>com.baomidou</groupId>
  140. <artifactId>mybatis-plus-generator</artifactId>
  141. </exclusion>
  142. </exclusions>
  143. </dependency>
  144. <dependency>
  145. <groupId>mysql</groupId>
  146. <artifactId>mysql-connector-java</artifactId>
  147. <version>${mysql.version}</version>
  148. </dependency>
  149. <!--oracle驱动-->
  150. <dependency>
  151. <groupId>com.oracle</groupId>
  152. <artifactId>ojdbc6</artifactId>
  153. <version>${oracle.version}</version>
  154. </dependency>
  155. <!--mssql驱动-->
  156. <dependency>
  157. <groupId>com.microsoft.sqlserver</groupId>
  158. <artifactId>sqljdbc4</artifactId>
  159. <version>${mssql.version}</version>
  160. </dependency>
  161. <!--postgresql驱动-->
  162. <dependency>
  163. <groupId>org.postgresql</groupId>
  164. <artifactId>postgresql</artifactId>
  165. </dependency>
  166. <dependency>
  167. <groupId>com.alibaba</groupId>
  168. <artifactId>druid-spring-boot-starter</artifactId>
  169. <version>${druid.version}</version>
  170. </dependency>
  171. <dependency>
  172. <groupId>commons-lang</groupId>
  173. <artifactId>commons-lang</artifactId>
  174. <version>${commons.lang.version}</version>
  175. </dependency>
  176. <dependency>
  177. <groupId>commons-fileupload</groupId>
  178. <artifactId>commons-fileupload</artifactId>
  179. <version>${commons.fileupload.version}</version>
  180. </dependency>
  181. <dependency>
  182. <groupId>commons-io</groupId>
  183. <artifactId>commons-io</artifactId>
  184. <version>${commons.io.version}</version>
  185. </dependency>
  186. <dependency>
  187. <groupId>commons-codec</groupId>
  188. <artifactId>commons-codec</artifactId>
  189. <version>${commons.codec.version}</version>
  190. </dependency>
  191. <dependency>
  192. <groupId>commons-configuration</groupId>
  193. <artifactId>commons-configuration</artifactId>
  194. <version>${commons.configuration.version}</version>
  195. </dependency>
  196. <dependency>
  197. <groupId>org.apache.shiro</groupId>
  198. <artifactId>shiro-core</artifactId>
  199. <version>${shiro.version}</version>
  200. </dependency>
  201. <dependency>
  202. <groupId>org.apache.shiro</groupId>
  203. <artifactId>shiro-spring</artifactId>
  204. <version>${shiro.version}</version>
  205. </dependency>
  206. <dependency>
  207. <groupId>io.jsonwebtoken</groupId>
  208. <artifactId>jjwt</artifactId>
  209. <version>${jwt.version}</version>
  210. </dependency>
  211. <dependency>
  212. <groupId>com.github.axet</groupId>
  213. <artifactId>kaptcha</artifactId>
  214. <version>${kaptcha.version}</version>
  215. </dependency>
  216. <dependency>
  217. <groupId>io.springfox</groupId>
  218. <artifactId>springfox-swagger2</artifactId>
  219. <version>${swagger.version}</version>
  220. </dependency>
  221. <dependency>
  222. <groupId>io.springfox</groupId>
  223. <artifactId>springfox-swagger-ui</artifactId>
  224. <version>${swagger.version}</version>
  225. </dependency>
  226. <dependency>
  227. <groupId>joda-time</groupId>
  228. <artifactId>joda-time</artifactId>
  229. <version>${joda.time.version}</version>
  230. </dependency>
  231. <dependency>
  232. <groupId>com.google.code.gson</groupId>
  233. <artifactId>gson</artifactId>
  234. <version>${gson.version}</version>
  235. </dependency>
  236. <dependency>
  237. <groupId>com.alibaba</groupId>
  238. <artifactId>fastjson</artifactId>
  239. <version>${fastjson.version}</version>
  240. </dependency>
  241. <dependency>
  242. <groupId>org.projectlombok</groupId>
  243. <artifactId>lombok</artifactId>
  244. <version>${lombok.version}</version>
  245. </dependency>
  246. <!-- <dependency>-->
  247. <!-- <groupId>org.springframework.boot</groupId>-->
  248. <!-- <artifactId>spring-boot-autoconfigure</artifactId>-->
  249. <!-- <version>2.2.4.RELEASE</version>-->
  250. <!-- </dependency>-->
  251. </dependencies>
  252. <build>
  253. <finalName>${project.artifactId}</finalName>
  254. <extensions>
  255. <extension>
  256. <groupId>org.apache.maven.wagon</groupId>
  257. <artifactId>wagon-ssh</artifactId>
  258. <version>2.8</version>
  259. </extension>
  260. </extensions>
  261. <plugins>
  262. <plugin>
  263. <groupId>org.springframework.boot</groupId>
  264. <artifactId>spring-boot-maven-plugin</artifactId>
  265. <configuration>
  266. <fork>true</fork>
  267. </configuration>
  268. </plugin>
  269. <!-- 跳过单元测试 -->
  270. <plugin>
  271. <groupId>org.apache.maven.plugins</groupId>
  272. <artifactId>maven-surefire-plugin</artifactId>
  273. <configuration>
  274. <skipTests>true</skipTests>
  275. </configuration>
  276. </plugin>
  277. <plugin>
  278. <groupId>org.codehaus.mojo</groupId>
  279. <artifactId>wagon-maven-plugin</artifactId>
  280. <version>1.0</version>
  281. <configuration>
  282. <fromFile>target/${pack-name}</fromFile>
  283. <url><![CDATA[scp://${remote-username}:${remote-passwd}@${remote-addr}${service-path}]]></url>
  284. <commands>
  285. <!-- Kill Old Process -->
  286. <command>kill -9 `ps -ef |grep ${project.artifactId}.jar|grep -v "grep" |awk '{print $2}'`
  287. </command>
  288. <!-- Restart jar package,write result into gaotao.log -spring.profiles.active=dev-->
  289. <command>
  290. <![CDATA[nohup java -jar ${service-path}/${pack-name} > ${service-path}/gaotao.log 2>&1 & ]]></command>
  291. <command><![CDATA[netstat -nptl]]></command>
  292. <command><![CDATA[ps -ef | grep java | grep -v grep]]></command>
  293. </commands>
  294. <!-- 运行命令 mvn clean package wagon:upload-single wagon:sshexec-->
  295. <displayCommandOutputs>true</displayCommandOutputs>
  296. </configuration>
  297. </plugin>
  298. <!-- <plugin>-->
  299. <!-- <groupId>com.spotify</groupId>-->
  300. <!-- <artifactId>docker-maven-plugin</artifactId>-->
  301. <!-- <version>0.4.14</version>-->
  302. <!-- &lt;!&ndash;<executions>&ndash;&gt;-->
  303. <!-- &lt;!&ndash;<execution>&ndash;&gt;-->
  304. <!-- &lt;!&ndash;<phase>package</phase>&ndash;&gt;-->
  305. <!-- &lt;!&ndash;<goals>&ndash;&gt;-->
  306. <!-- &lt;!&ndash;<goal>build</goal>&ndash;&gt;-->
  307. <!-- &lt;!&ndash;</goals>&ndash;&gt;-->
  308. <!-- &lt;!&ndash;</execution>&ndash;&gt;-->
  309. <!-- &lt;!&ndash;</executions>&ndash;&gt;-->
  310. <!-- <configuration>-->
  311. <!-- <imageName>sxm/fast</imageName>-->
  312. <!-- <dockerDirectory>${project.basedir}</dockerDirectory>-->
  313. <!-- <resources>-->
  314. <!-- <resource>-->
  315. <!-- <targetPath>/</targetPath>-->
  316. <!-- <directory>${project.build.directory}</directory>-->
  317. <!-- <include>${project.build.finalName}.jar</include>-->
  318. <!-- </resource>-->
  319. <!-- </resources>-->
  320. <!-- </configuration>-->
  321. <!-- &lt;!&ndash; 运行命令 mvn clean package docker:build 打包并生成docker镜像 &ndash;&gt;-->
  322. <!-- </plugin>-->
  323. <!-- <plugin>-->
  324. <!-- <groupId>com.spotify</groupId>-->
  325. <!-- <artifactId>docker-maven-plugin</artifactId>-->
  326. <!-- <version>1.0.0</version>-->
  327. <!-- <executions>-->
  328. <!-- <execution>-->
  329. <!-- <id>build-image</id>-->
  330. <!-- <phase>package</phase>-->
  331. <!-- <goals>-->
  332. <!-- <goal>build</goal>-->
  333. <!-- </goals>-->
  334. <!-- </execution>-->
  335. <!-- </executions>-->
  336. <!-- <configuration>-->
  337. <!-- <dockerHost>http://116.62.165.118:2375</dockerHost>-->
  338. <!-- <imageName>sxm/${project.artifactId}</imageName>-->
  339. <!-- <imageTags>-->
  340. <!-- <imageTag>${project.version}</imageTag>-->
  341. <!-- </imageTags>-->
  342. <!-- <forceTags>true</forceTags>-->
  343. <!-- <dockerDirectory>${project.basedir}</dockerDirectory>-->
  344. <!-- <resources>-->
  345. <!-- <resource>-->
  346. <!-- <targetPath>/</targetPath>-->
  347. <!-- <directory>${project.build.directory}</directory>-->
  348. <!-- <include>${project.build.finalName}.jar</include>-->
  349. <!-- </resource>-->
  350. <!-- </resources>-->
  351. <!-- </configuration>-->
  352. <!-- </plugin>-->
  353. </plugins>
  354. </build>
  355. <repositories>
  356. <repository>
  357. <id>public</id>
  358. <name>aliyun nexus</name>
  359. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  360. <releases>
  361. <enabled>true</enabled>
  362. </releases>
  363. </repository>
  364. </repositories>
  365. <pluginRepositories>
  366. <pluginRepository>
  367. <id>public</id>
  368. <name>aliyun nexus</name>
  369. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  370. <releases>
  371. <enabled>true</enabled>
  372. </releases>
  373. <snapshots>
  374. <enabled>false</enabled>
  375. </snapshots>
  376. </pluginRepository>
  377. </pluginRepositories>
  378. </project>