pom.xml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>platform</groupId>
  7. <artifactId>snd-escloud</artifactId>
  8. <packaging>war</packaging>
  9. <version>1.0-SNAPSHOT</version>
  10. <parent>
  11. <groupId>org.springframework.boot</groupId>
  12. <artifactId>spring-boot-starter-parent</artifactId>
  13. <version>1.5.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. <thymeleaf.version>3.0.0.RELEASE</thymeleaf.version>
  19. <thymeleaf-layout-dialect.version>2.0.0</thymeleaf-layout-dialect.version>
  20. <shiro.version>1.3.2</shiro.version>
  21. <poi.version>3.17</poi.version>
  22. <thymeleaf-shiro.version>2.0.0</thymeleaf-shiro.version>
  23. <hutool.version>2.16.0</hutool.version>
  24. <commons-io.version>2.4</commons-io.version>
  25. <commons-lang3.version>3.5</commons-lang3.version>
  26. <commons-fileupload.version>1.3.2</commons-fileupload.version>
  27. <commons-codec.version>1.10</commons-codec.version>
  28. <commons-collections4.version>4.1</commons-collections4.version>
  29. <quartz.version>2.3.0</quartz.version>
  30. <lombok.version>1.18.14</lombok.version>
  31. <mybatis-spring-boot.version>1.3.0</mybatis-spring-boot.version>
  32. <pagehelper-spring-boot.version>1.1.2</pagehelper-spring-boot.version>
  33. <mapper-spring-boot.version>1.1.3</mapper-spring-boot.version>
  34. <java.version>1.8</java.version>
  35. <springfox.version>2.9.2</springfox.version>
  36. <httpclient.version>4.3.5</httpclient.version>
  37. <okhttp.version>3.8.0</okhttp.version>
  38. <druid-spring-boot.version>1.1.2</druid-spring-boot.version>
  39. <!--<feilong-platform.version>1.10.5</feilong-platform.version>-->
  40. <jwt.version>0.7.0</jwt.version>
  41. </properties>
  42. <!--<repositories>
  43. <repository>
  44. <id>feilong-repository</id>
  45. <url>https://raw.github.com/venusdrogon/feilong-platform/repository</url>
  46. </repository>
  47. </repositories>-->
  48. <dependencies>
  49. <!--<dependency>-->
  50. <!--<groupId>org.flywaydb</groupId>-->
  51. <!--<artifactId>flyway-core</artifactId>-->
  52. <!--<version>5.0.3</version>-->
  53. <!--</dependency>-->
  54. <!--web支持-->
  55. <dependency>
  56. <groupId>org.springframework.boot</groupId>
  57. <artifactId>spring-boot-starter-web</artifactId>
  58. <exclusions>
  59. <exclusion>
  60. <groupId>org.springframework.boot</groupId>
  61. <artifactId>spring-boot-starter-tomcat</artifactId>
  62. </exclusion>
  63. </exclusions>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.springframework.boot</groupId>
  67. <artifactId>spring-boot-starter-tomcat</artifactId>
  68. <!--<scope>complie</scope>-->
  69. </dependency>
  70. <!--<dependency>-->
  71. <!--<groupId>org.springframework.boot</groupId>-->
  72. <!--<artifactId>spring-boot-starter-security</artifactId>-->
  73. <!--</dependency>-->
  74. <dependency>
  75. <groupId>org.springframework.boot</groupId>
  76. <artifactId>spring-boot-starter-jdbc</artifactId>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.springframework.boot</groupId>
  80. <artifactId>spring-boot-starter-aop</artifactId>
  81. </dependency>
  82. <!-- Junit 单元测试 -->
  83. <dependency>
  84. <groupId>org.springframework.boot</groupId>
  85. <artifactId>spring-boot-starter-test</artifactId>
  86. <scope>test</scope>
  87. </dependency>
  88. <!-- 支持 @ConfigurationProperties 注解 -->
  89. <dependency>
  90. <groupId>org.springframework.boot</groupId>
  91. <artifactId>spring-boot-configuration-processor</artifactId>
  92. <optional>true</optional>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.springframework.boot</groupId>
  96. <artifactId>spring-boot-starter-actuator</artifactId>
  97. </dependency>
  98. <dependency>
  99. <groupId>com.github.timpeeters</groupId>
  100. <artifactId>spring-boot-graceful-shutdown</artifactId>
  101. <version>1.0.5</version>
  102. </dependency>
  103. <dependency>
  104. <groupId>io.prometheus</groupId>
  105. <artifactId>simpleclient_spring_boot</artifactId>
  106. <version>0.0.26</version>
  107. </dependency>
  108. <!-- Email -->
  109. <dependency>
  110. <groupId>org.springframework.boot</groupId>
  111. <artifactId>spring-boot-starter-mail</artifactId>
  112. </dependency>
  113. <!-- 添加redis支持-->
  114. <dependency>
  115. <groupId>org.springframework.boot</groupId>
  116. <artifactId>spring-boot-starter-data-redis</artifactId>
  117. </dependency>
  118. <!--<dependency>-->
  119. <!--<groupId>org.springframework.boot</groupId>-->
  120. <!--<artifactId>spring-boot-starter-cache</artifactId>-->
  121. <!--</dependency>-->
  122. <!--mybatis-->
  123. <dependency>
  124. <groupId>org.mybatis.spring.boot</groupId>
  125. <artifactId>mybatis-spring-boot-starter</artifactId>
  126. <version>${mybatis-spring-boot.version}</version>
  127. </dependency>
  128. <!--daopper-->
  129. <dependency>
  130. <groupId>tk.mybatis</groupId>
  131. <artifactId>mapper-spring-boot-starter</artifactId>
  132. <version>${mapper-spring-boot.version}</version>
  133. </dependency>
  134. <!--pagehelper-->
  135. <dependency>
  136. <groupId>com.github.pagehelper</groupId>
  137. <artifactId>pagehelper-spring-boot-starter</artifactId>
  138. <version>${pagehelper-spring-boot.version}</version>
  139. </dependency>
  140. <dependency>
  141. <groupId>mysql</groupId>
  142. <artifactId>mysql-connector-java</artifactId>
  143. <scope>runtime</scope>
  144. </dependency>
  145. <!-- 数据库连接池 -->
  146. <dependency>
  147. <groupId>com.alibaba</groupId>
  148. <artifactId>druid-spring-boot-starter</artifactId>
  149. <version>${druid-spring-boot.version}</version>
  150. </dependency>
  151. <!-- 只需引入spring-boot-devtools 即可实现热部署 -->
  152. <dependency>
  153. <groupId>org.springframework.boot</groupId>
  154. <artifactId>spring-boot-devtools</artifactId>
  155. <optional>true</optional>
  156. </dependency>
  157. <!--thymeleaf模版支持-->
  158. <dependency>
  159. <groupId>org.springframework.boot</groupId>
  160. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  161. </dependency>
  162. <!-- shiro spring. -->
  163. <dependency>
  164. <groupId>org.apache.shiro</groupId>
  165. <artifactId>shiro-spring</artifactId>
  166. <version>${shiro.version}</version>
  167. </dependency>
  168. <!-- shiro 页面标签库 -->
  169. <dependency>
  170. <groupId>com.github.theborakompanioni</groupId>
  171. <artifactId>thymeleaf-extras-shiro</artifactId>
  172. <version>${thymeleaf-shiro.version}</version>
  173. </dependency>
  174. <!-- shiro ehcache -->
  175. <dependency>
  176. <groupId>org.apache.shiro</groupId>
  177. <artifactId>shiro-ehcache</artifactId>
  178. <version>${shiro.version}</version>
  179. </dependency>
  180. <!--
  181. 包含支持UI模版(Velocity,FreeMarker,JasperReports),
  182. 邮件服务,
  183. 脚本服务(JRuby),
  184. 缓存Cache(EHCache),
  185. 任务计划Scheduling(quartz)。
  186. -->
  187. <dependency>
  188. <groupId>org.springframework</groupId>
  189. <artifactId>spring-context-support</artifactId>
  190. </dependency>
  191. <dependency>
  192. <groupId>commons-io</groupId>
  193. <artifactId>commons-io</artifactId>
  194. <version>${commons-io.version}</version>
  195. </dependency>
  196. <dependency>
  197. <groupId>org.apache.commons</groupId>
  198. <artifactId>commons-lang3</artifactId>
  199. <version>${commons-lang3.version}</version>
  200. </dependency>
  201. <dependency>
  202. <groupId>commons-fileupload</groupId>
  203. <artifactId>commons-fileupload</artifactId>
  204. <version>${commons-fileupload.version}</version>
  205. </dependency>
  206. <dependency>
  207. <groupId>org.apache.commons</groupId>
  208. <artifactId>commons-collections4</artifactId>
  209. <version>${commons-collections4.version}</version>
  210. </dependency>
  211. <dependency>
  212. <groupId>com.xiaoleilu</groupId>
  213. <artifactId>hutool</artifactId>
  214. <version>${hutool.version}</version>
  215. </dependency>
  216. <!-- <dependency>-->
  217. <!-- <groupId>com.feilong.platform</groupId>-->
  218. <!-- <artifactId>feilong-core</artifactId>-->
  219. <!-- <version>${feilong-platform.version}</version>-->
  220. <!-- </dependency>-->
  221. <dependency>
  222. <groupId>commons-codec</groupId>
  223. <artifactId>commons-codec</artifactId>
  224. <version>${commons-codec.version}</version>
  225. </dependency>
  226. <dependency>
  227. <groupId>com.alibaba</groupId>
  228. <artifactId>fastjson</artifactId>
  229. <version>1.2.44</version>
  230. </dependency>
  231. <!-- poi office -->
  232. <dependency>
  233. <groupId>org.apache.poi</groupId>
  234. <artifactId>poi</artifactId>
  235. <version>${poi.version}</version>
  236. </dependency>
  237. <dependency>
  238. <groupId>org.apache.poi</groupId>
  239. <artifactId>poi-ooxml</artifactId>
  240. <version>${poi.version}</version>
  241. </dependency>
  242. <dependency>
  243. <groupId>org.apache.poi</groupId>
  244. <artifactId>poi-ooxml-schemas</artifactId>
  245. <version>${poi.version}</version>
  246. </dependency>
  247. <dependency>
  248. <groupId>org.projectlombok</groupId>
  249. <artifactId>lombok</artifactId>
  250. <version>${lombok.version}</version>
  251. </dependency>
  252. <!-- Swagger2核心包-->
  253. <dependency>
  254. <groupId>io.springfox</groupId>
  255. <artifactId>springfox-swagger2</artifactId>
  256. <version>${springfox.version}</version>
  257. </dependency>
  258. <!-- Swagger2 UI包,前端展示API文档 -->
  259. <dependency>
  260. <groupId>io.springfox</groupId>
  261. <artifactId>springfox-swagger-ui</artifactId>
  262. <version>${springfox.version}</version>
  263. </dependency>
  264. <dependency>
  265. <groupId>org.bouncycastle</groupId>
  266. <artifactId>bcprov-jdk15on</artifactId>
  267. <version>1.63</version>
  268. </dependency>
  269. <dependency>
  270. <groupId>org.apache.httpcomponents</groupId>
  271. <artifactId>httpclient</artifactId>
  272. <version>4.5.2</version>
  273. </dependency>
  274. <!-- httpclient -->
  275. <!--<dependency>-->
  276. <!--<groupId>org.apache.httpcomponents</groupId>-->
  277. <!--<artifactId>httpclient</artifactId>-->
  278. <!--<version>${httpclient.version}</version>-->
  279. <!--</dependency>-->
  280. <dependency>
  281. <groupId>com.squareup.okhttp3</groupId>
  282. <artifactId>okhttp</artifactId>
  283. <version>${okhttp.version}</version>
  284. </dependency>
  285. <dependency>
  286. <groupId>org.springframework</groupId>
  287. <artifactId>springloaded</artifactId>
  288. </dependency>
  289. <dependency>
  290. <groupId>com.google.code.gson</groupId>
  291. <artifactId>gson</artifactId>
  292. <version>2.7</version>
  293. </dependency>
  294. <!-- httpclient 上传文件至文件服务器 -->
  295. <dependency>
  296. <groupId>org.apache.httpcomponents</groupId>
  297. <artifactId>httpmime</artifactId>
  298. <version>4.5.2</version>
  299. </dependency>
  300. <!-- 阿里大鱼短信 -->
  301. <dependency>
  302. <groupId>com.aliyun</groupId>
  303. <artifactId>aliyun-java-sdk-core</artifactId>
  304. <version>3.2.8</version>
  305. </dependency>
  306. <dependency>
  307. <groupId>com.aliyun</groupId>
  308. <artifactId>aliyun-java-sdk-dysmsapi</artifactId>
  309. <version>1.1.0</version>
  310. </dependency>
  311. <!-- json web token -->
  312. <dependency>
  313. <groupId>io.jsonwebtoken</groupId>
  314. <artifactId>jjwt</artifactId>
  315. <version>${jwt.version}</version>
  316. </dependency>
  317. <!--&lt;!&ndash; https://mvnrepository.com/artifact/com.google.gwt/gwt-user &ndash;&gt;-->
  318. <dependency>
  319. <groupId>com.google.gwt</groupId>
  320. <artifactId>gwt-user</artifactId>
  321. <version>2.8.2</version>
  322. </dependency>
  323. <!-- https://mvnrepository.com/artifact/org.jxls/jxls -->
  324. <dependency>
  325. <groupId>org.jxls</groupId>
  326. <artifactId>jxls</artifactId>
  327. <version>2.4.7</version>
  328. </dependency>
  329. <dependency>
  330. <groupId>com.alibaba</groupId>
  331. <artifactId>easyexcel</artifactId>
  332. <version>2.1.6</version>
  333. </dependency>
  334. <!-- ETL -->
  335. <dependency>
  336. <groupId>com.javaforge.scriptella</groupId>
  337. <artifactId>scriptella-core</artifactId>
  338. <version>1.1</version>
  339. </dependency>
  340. <dependency>
  341. <groupId>com.javaforge.scriptella</groupId>
  342. <artifactId>scriptella-drivers</artifactId>
  343. <version>1.1</version>
  344. </dependency>
  345. <dependency>
  346. <groupId>com.javaforge.scriptella</groupId>
  347. <artifactId>scriptella-tools</artifactId>
  348. <version>1.1</version>
  349. </dependency>
  350. </dependencies>
  351. <!--配置方案-->
  352. <profiles>
  353. <profile>
  354. <id>local</id>
  355. <properties>
  356. <environment.env>local</environment.env>
  357. </properties>
  358. <activation>
  359. <activeByDefault>true</activeByDefault>
  360. </activation>
  361. </profile>
  362. <profile>
  363. <id>test</id>
  364. <properties>
  365. <environment.env>test</environment.env>
  366. </properties>
  367. </profile>
  368. <profile>
  369. <id>aliyun</id>
  370. <properties>
  371. <environment.env>aliyun</environment.env>
  372. </properties>
  373. </profile>
  374. <profile>
  375. <id>prodin</id>
  376. <properties>
  377. <environment.env>prodin</environment.env>
  378. </properties>
  379. </profile>
  380. <profile>
  381. <id>prodout</id>
  382. <properties>
  383. <environment.env>prodout</environment.env>
  384. </properties>
  385. </profile>
  386. </profiles>
  387. <build>
  388. <resources>
  389. <resource>
  390. <directory>src/main/resources</directory>
  391. <excludes>
  392. <exclude>**/*.yml</exclude>
  393. </excludes>
  394. </resource>
  395. <resource>
  396. <directory>src/main/java</directory>
  397. <includes>
  398. <include>**/*.xml</include>
  399. </includes>
  400. <filtering>false</filtering>
  401. </resource>
  402. <resource>
  403. <directory>src/main/resources</directory>
  404. <filtering>true</filtering>
  405. <includes>
  406. <include>application.yml</include>
  407. <include>bootstrap.yml</include>
  408. <include>application-${environment.env}.yml</include>
  409. <include>**/*.yml</include>
  410. <include>**/*.xml</include>
  411. </includes>
  412. </resource>
  413. </resources>
  414. <finalName>${artifactId}</finalName>
  415. <plugins>
  416. <!-- <plugin>
  417. <groupId>org.apache.maven.plugins</groupId>
  418. <artifactId>maven-resources-plugin</artifactId>
  419. &lt;!&ndash;排除对二进制文件的过滤,解决字体图标无法显示&ndash;&gt;
  420. <configuration>
  421. <nonFilteredFileExtensions>
  422. &lt;!&ndash; fonts &ndash;&gt;
  423. <nonFilteredFileExtension>eot</nonFilteredFileExtension>
  424. <nonFilteredFileExtension>svg</nonFilteredFileExtension>
  425. <nonFilteredFileExtension>ttf</nonFilteredFileExtension>
  426. <nonFilteredFileExtension>woff</nonFilteredFileExtension>
  427. <nonFilteredFileExtension>woff2</nonFilteredFileExtension>
  428. </nonFilteredFileExtensions>
  429. </configuration>
  430. </plugin>-->
  431. <plugin>
  432. <groupId>org.apache.maven.plugins</groupId>
  433. <artifactId>maven-compiler-plugin</artifactId>
  434. <version>3.5.1</version>
  435. <configuration>
  436. <source>${java.version}</source>
  437. <target>${java.version}</target>
  438. <encoding>UTF-8</encoding>
  439. </configuration>
  440. </plugin>
  441. <plugin>
  442. <groupId>org.apache.maven.plugins</groupId>
  443. <artifactId>maven-surefire-plugin</artifactId>
  444. <configuration>
  445. <!-- <testFailureIgnore>true</testFailureIgnore> -->
  446. <skip>true</skip>
  447. </configuration>
  448. <version>2.19.1</version>
  449. </plugin>
  450. <plugin>
  451. <groupId>org.springframework.boot</groupId>
  452. <artifactId>spring-boot-maven-plugin</artifactId>
  453. <configuration>
  454. <mainClass>platform.RootApplication</mainClass>
  455. <jvmArguments>-Dfile.encoding=UTF-8 -Xdebug
  456. -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
  457. </jvmArguments>
  458. <executable>true</executable>
  459. <fork>true</fork>
  460. </configuration>
  461. </plugin>
  462. </plugins>
  463. </build>
  464. <distributionManagement>
  465. <repository>
  466. <!--这里的id与settings.xml中的servers节点配置的用户ID一直,这样才能使用配置的用户去上传到maven私有仓库 -->
  467. <!--此仓库对应的为RELEASE版本的jar-->
  468. <id>public</id>
  469. <url>http://221.224.91.21:9019/repository/maven-releases/</url>
  470. </repository>
  471. <snapshotRepository>
  472. <!--这里的id与settings.xml中的servers节点配置的用户ID一直,这样才能使用配置的用户去上传到maven私有仓库 -->
  473. <!--此仓库对应的为SNAPSHOT版本的jar-->
  474. <id>public</id>
  475. <url>http://221.224.91.21:9019/repository/maven-snapshots/</url>
  476. </snapshotRepository>
  477. </distributionManagement>
  478. </project>