pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  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>net.chenlin.dp</groupId>
  6. <artifactId>dp</artifactId>
  7. <version>0.0.1-SNAPSHOT</version>
  8. <packaging>jar</packaging>
  9. <!-- 生成war时放开注释,以及第58行注释
  10. <packaging>war</packaging>
  11. -->
  12. <name>dp-lte-boot</name>
  13. <description>dp-lte开发框架SpringBoot版本</description>
  14. <parent>
  15. <groupId>org.springframework.boot</groupId>
  16. <artifactId>spring-boot-starter-parent</artifactId>
  17. <version>2.0.4.RELEASE</version>
  18. <relativePath/>
  19. </parent>
  20. <properties>
  21. <!-- base setting -->
  22. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  23. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  24. <java.version>1.8</java.version>
  25. <!-- lib versions -->
  26. <mybatis-springboot-version>1.3.0</mybatis-springboot-version>
  27. <mysql-version>8.0.23</mysql-version>
  28. <druid-version>1.1.9</druid-version>
  29. <commons-lang-version>2.6</commons-lang-version>
  30. <commons-fileupload-version>1.3.1</commons-fileupload-version>
  31. <commons-io-version>2.5</commons-io-version>
  32. <commons-codec-version>1.10</commons-codec-version>
  33. <commons-configuration-version>1.10</commons-configuration-version>
  34. <aspect-version>1.8.10</aspect-version>
  35. <shiro-version>1.3.2</shiro-version>
  36. <quartz-version>2.2.3</quartz-version>
  37. <httpclient-version>4.5.3</httpclient-version>
  38. <beetl-version>1.1.60.RELEASE</beetl-version>
  39. <swagger-version>2.9.2</swagger-version>
  40. <servlet-version>3.1.0</servlet-version>
  41. <kaptcha-version>2.3.2</kaptcha-version>
  42. <jwt-version>0.9.0</jwt-version>
  43. </properties>
  44. <dependencies>
  45. <dependency>
  46. <groupId>org.jxls</groupId>
  47. <artifactId>jxls</artifactId>
  48. <version>2.3.0</version>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.jxls</groupId>
  52. <artifactId>jxls-poi</artifactId>
  53. <version>1.0.9</version>
  54. </dependency>
  55. <dependency>
  56. <groupId>net.sf.jxls</groupId>
  57. <artifactId>jxls-core</artifactId>
  58. <version>1.0.5</version>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.jxls</groupId>
  62. <artifactId>jxls-jexcel</artifactId>
  63. <version>[1.0.6,)</version>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.jxls</groupId>
  67. <artifactId>jxls-reader</artifactId>
  68. <version>[2.0.3,)</version>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.apache.poi</groupId>
  72. <artifactId>poi</artifactId>
  73. <version>3.13</version>
  74. </dependency>
  75. <dependency>
  76. <groupId>org.apache.poi</groupId>
  77. <artifactId>poi-ooxml</artifactId>
  78. <version>3.13</version>
  79. </dependency>
  80. <!-- 单元测试 start -->
  81. <dependency>
  82. <groupId>org.testng</groupId>
  83. <artifactId>testng</artifactId>
  84. <version>6.9.10</version>
  85. <scope>test</scope>
  86. <exclusions>
  87. <exclusion>
  88. <groupId>junit</groupId>
  89. <artifactId>junit</artifactId>
  90. </exclusion>
  91. </exclusions>
  92. </dependency>
  93. <dependency>
  94. <groupId>org.mockito</groupId>
  95. <artifactId>mockito-all</artifactId>
  96. <version>1.10.19</version>
  97. <scope>test</scope>
  98. </dependency>
  99. <!-- 单元测试 end -->
  100. <dependency>
  101. <groupId>org.springframework.boot</groupId>
  102. <artifactId>spring-boot-starter-test</artifactId>
  103. <scope>test</scope>
  104. </dependency>
  105. <dependency>
  106. <groupId>org.springframework.boot</groupId>
  107. <artifactId>spring-boot-starter-web</artifactId>
  108. <exclusions>
  109. <exclusion>
  110. <groupId>org.hibernate.validator</groupId>
  111. <artifactId>hibernate-validator</artifactId>
  112. </exclusion>
  113. <!-- 生成war时放开注释
  114. <exclusion>
  115. <groupId>org.springframework.boot</groupId>
  116. <artifactId>spring-boot-starter-tomcat</artifactId>
  117. </exclusion>
  118. -->
  119. </exclusions>
  120. </dependency>
  121. <dependency>
  122. <groupId>com.ibeetl</groupId>
  123. <artifactId>beetl-framework-starter</artifactId>
  124. <version>${beetl-version}</version>
  125. </dependency>
  126. <dependency>
  127. <groupId>org.springframework.boot</groupId>
  128. <artifactId>spring-boot-starter-aop</artifactId>
  129. </dependency>
  130. <dependency>
  131. <groupId>org.springframework</groupId>
  132. <artifactId>spring-context-support</artifactId>
  133. </dependency>
  134. <dependency>
  135. <groupId>org.springframework.boot</groupId>
  136. <artifactId>spring-boot-starter-data-redis</artifactId>
  137. </dependency>
  138. <dependency>
  139. <groupId>org.springframework.boot</groupId>
  140. <artifactId>spring-boot-configuration-processor</artifactId>
  141. <optional>true</optional>
  142. </dependency>
  143. <dependency>
  144. <groupId>org.springframework.boot</groupId>
  145. <artifactId>spring-boot-devtools</artifactId>
  146. <optional>true</optional>
  147. </dependency>
  148. <dependency>
  149. <groupId>org.mybatis.spring.boot</groupId>
  150. <artifactId>mybatis-spring-boot-starter</artifactId>
  151. <version>${mybatis-springboot-version}</version>
  152. </dependency>
  153. <dependency>
  154. <groupId>mysql</groupId>
  155. <artifactId>mysql-connector-java</artifactId>
  156. <version>${mysql-version}</version>
  157. </dependency>
  158. <dependency>
  159. <groupId>com.alibaba</groupId>
  160. <artifactId>druid-spring-boot-starter</artifactId>
  161. <version>${druid-version}</version>
  162. </dependency>
  163. <dependency>
  164. <groupId>org.quartz-scheduler</groupId>
  165. <artifactId>quartz</artifactId>
  166. <version>${quartz-version}</version>
  167. <exclusions>
  168. <exclusion>
  169. <groupId>com.mchange</groupId>
  170. <artifactId>c3p0</artifactId>
  171. </exclusion>
  172. </exclusions>
  173. </dependency>
  174. <dependency>
  175. <groupId>commons-lang</groupId>
  176. <artifactId>commons-lang</artifactId>
  177. <version>${commons-lang-version}</version>
  178. </dependency>
  179. <dependency>
  180. <groupId>commons-fileupload</groupId>
  181. <artifactId>commons-fileupload</artifactId>
  182. <version>${commons-fileupload-version}</version>
  183. </dependency>
  184. <dependency>
  185. <groupId>commons-io</groupId>
  186. <artifactId>commons-io</artifactId>
  187. <version>${commons-io-version}</version>
  188. </dependency>
  189. <dependency>
  190. <groupId>commons-codec</groupId>
  191. <artifactId>commons-codec</artifactId>
  192. <version>${commons-codec-version}</version>
  193. </dependency>
  194. <dependency>
  195. <groupId>commons-configuration</groupId>
  196. <artifactId>commons-configuration</artifactId>
  197. <version>${commons-configuration-version}</version>
  198. </dependency>
  199. <dependency>
  200. <groupId>org.aspectj</groupId>
  201. <artifactId>aspectjrt</artifactId>
  202. <version>${aspect-version}</version>
  203. </dependency>
  204. <dependency>
  205. <groupId>org.aspectj</groupId>
  206. <artifactId>aspectjweaver</artifactId>
  207. <version>${aspect-version}</version>
  208. </dependency>
  209. <dependency>
  210. <groupId>org.apache.shiro</groupId>
  211. <artifactId>shiro-core</artifactId>
  212. <version>${shiro-version}</version>
  213. </dependency>
  214. <dependency>
  215. <groupId>org.apache.shiro</groupId>
  216. <artifactId>shiro-spring</artifactId>
  217. <version>${shiro-version}</version>
  218. </dependency>
  219. <dependency>
  220. <groupId>org.apache.httpcomponents</groupId>
  221. <artifactId>httpclient</artifactId>
  222. <version>${httpclient-version}</version>
  223. </dependency>
  224. <dependency>
  225. <groupId>redis.clients</groupId>
  226. <artifactId>jedis</artifactId>
  227. </dependency>
  228. <dependency>
  229. <groupId>io.springfox</groupId>
  230. <artifactId>springfox-swagger2</artifactId>
  231. <version>${swagger-version}</version>
  232. </dependency>
  233. <dependency>
  234. <groupId>io.springfox</groupId>
  235. <artifactId>springfox-swagger-ui</artifactId>
  236. <version>${swagger-version}</version>
  237. </dependency>
  238. <dependency>
  239. <groupId>com.github.penggle</groupId>
  240. <artifactId>kaptcha</artifactId>
  241. <version>${kaptcha-version}</version>
  242. </dependency>
  243. <dependency>
  244. <groupId>javax.servlet</groupId>
  245. <artifactId>javax.servlet-api</artifactId>
  246. <version>${servlet-version}</version>
  247. <scope>provided</scope>
  248. </dependency>
  249. <dependency>
  250. <groupId>io.jsonwebtoken</groupId>
  251. <artifactId>jjwt</artifactId>
  252. <version>${jwt-version}</version>
  253. </dependency>
  254. </dependencies>
  255. <profiles>
  256. <profile>
  257. <id>sit</id>
  258. <properties>
  259. <spring.active>sit</spring.active>
  260. </properties>
  261. <activation>
  262. <activeByDefault>true</activeByDefault>
  263. </activation>
  264. </profile>
  265. <profile>
  266. <id>pre</id>
  267. <properties>
  268. <spring.active>pre</spring.active>
  269. </properties>
  270. </profile>
  271. <profile>
  272. <id>prd</id>
  273. <properties>
  274. <spring.active>prd</spring.active>
  275. </properties>
  276. </profile>
  277. </profiles>
  278. <build>
  279. <finalName>${project.artifactId}</finalName>
  280. <plugins>
  281. <plugin>
  282. <groupId>org.springframework.boot</groupId>
  283. <artifactId>spring-boot-maven-plugin</artifactId>
  284. <configuration>
  285. <fork>true</fork>
  286. </configuration>
  287. </plugin>
  288. <!-- 跳过单元测试 -->
  289. <plugin>
  290. <groupId>org.apache.maven.plugins</groupId>
  291. <artifactId>maven-surefire-plugin</artifactId>
  292. <configuration>
  293. <skipTests>true</skipTests>
  294. </configuration>
  295. </plugin>
  296. <plugin>
  297. <groupId>org.apache.maven.plugins</groupId>
  298. <artifactId>maven-resources-plugin</artifactId>
  299. <version>3.1.0</version>
  300. <configuration>
  301. <delimiters>
  302. <delimiter>@</delimiter>
  303. </delimiters>
  304. <useDefaultDelimiters>false</useDefaultDelimiters>
  305. </configuration>
  306. </plugin>
  307. <plugin>
  308. <groupId>org.apache.maven.plugins</groupId>
  309. <artifactId>maven-resources-plugin</artifactId>
  310. <configuration>
  311. <nonFilteredFileExtensions>
  312. <nonFilteredFileExtension>xls</nonFilteredFileExtension>
  313. </nonFilteredFileExtensions>
  314. </configuration>
  315. </plugin>
  316. </plugins>
  317. <resources>
  318. <resource>
  319. <directory>src/main/webapp</directory>
  320. </resource>
  321. <resource>
  322. <directory>src/main/resources</directory>
  323. <filtering>true</filtering>
  324. </resource>
  325. <resource>
  326. <directory>src/main/java</directory>
  327. <includes>
  328. <include>**/*.xml</include>
  329. <include>**/*.xlsx</include>
  330. <include>**/*.xls</include>
  331. </includes>
  332. </resource>
  333. </resources>
  334. </build>
  335. </project>