pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  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. <oracle.driver.version>10.2.0.4.0</oracle.driver.version>
  44. </properties>
  45. <dependencies>
  46. <!-- 单元测试 start -->
  47. <dependency>
  48. <groupId>org.testng</groupId>
  49. <artifactId>testng</artifactId>
  50. <version>6.9.10</version>
  51. <scope>test</scope>
  52. <exclusions>
  53. <exclusion>
  54. <groupId>junit</groupId>
  55. <artifactId>junit</artifactId>
  56. </exclusion>
  57. </exclusions>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.mockito</groupId>
  61. <artifactId>mockito-all</artifactId>
  62. <version>1.10.19</version>
  63. <scope>test</scope>
  64. </dependency>
  65. <!-- 单元测试 end -->
  66. <dependency>
  67. <groupId>org.springframework.boot</groupId>
  68. <artifactId>spring-boot-starter-test</artifactId>
  69. <scope>test</scope>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.springframework.boot</groupId>
  73. <artifactId>spring-boot-starter-web</artifactId>
  74. <exclusions>
  75. <exclusion>
  76. <groupId>org.hibernate.validator</groupId>
  77. <artifactId>hibernate-validator</artifactId>
  78. </exclusion>
  79. <!-- 生成war时放开注释
  80. <exclusion>
  81. <groupId>org.springframework.boot</groupId>
  82. <artifactId>spring-boot-starter-tomcat</artifactId>
  83. </exclusion>
  84. -->
  85. </exclusions>
  86. </dependency>
  87. <dependency>
  88. <groupId>com.ibeetl</groupId>
  89. <artifactId>beetl-framework-starter</artifactId>
  90. <version>${beetl-version}</version>
  91. </dependency>
  92. <dependency>
  93. <groupId>org.springframework.boot</groupId>
  94. <artifactId>spring-boot-starter-aop</artifactId>
  95. </dependency>
  96. <dependency>
  97. <groupId>org.springframework</groupId>
  98. <artifactId>spring-context-support</artifactId>
  99. </dependency>
  100. <dependency>
  101. <groupId>org.springframework.boot</groupId>
  102. <artifactId>spring-boot-starter-data-redis</artifactId>
  103. </dependency>
  104. <dependency>
  105. <groupId>org.springframework.boot</groupId>
  106. <artifactId>spring-boot-configuration-processor</artifactId>
  107. <optional>true</optional>
  108. </dependency>
  109. <dependency>
  110. <groupId>org.springframework.boot</groupId>
  111. <artifactId>spring-boot-devtools</artifactId>
  112. <optional>true</optional>
  113. </dependency>
  114. <dependency>
  115. <groupId>org.mybatis.spring.boot</groupId>
  116. <artifactId>mybatis-spring-boot-starter</artifactId>
  117. <version>${mybatis-springboot-version}</version>
  118. </dependency>
  119. <dependency>
  120. <groupId>mysql</groupId>
  121. <artifactId>mysql-connector-java</artifactId>
  122. <version>${mysql-version}</version>
  123. </dependency>
  124. <dependency>
  125. <groupId>com.alibaba</groupId>
  126. <artifactId>druid-spring-boot-starter</artifactId>
  127. <version>${druid-version}</version>
  128. </dependency>
  129. <dependency>
  130. <groupId>com.alibaba</groupId>
  131. <artifactId>fastjson</artifactId>
  132. <version>1.2.76</version>
  133. </dependency>
  134. <dependency>
  135. <groupId>org.quartz-scheduler</groupId>
  136. <artifactId>quartz</artifactId>
  137. <version>${quartz-version}</version>
  138. <exclusions>
  139. <exclusion>
  140. <groupId>com.mchange</groupId>
  141. <artifactId>c3p0</artifactId>
  142. </exclusion>
  143. </exclusions>
  144. </dependency>
  145. <dependency>
  146. <groupId>commons-lang</groupId>
  147. <artifactId>commons-lang</artifactId>
  148. <version>${commons-lang-version}</version>
  149. </dependency>
  150. <dependency>
  151. <groupId>commons-fileupload</groupId>
  152. <artifactId>commons-fileupload</artifactId>
  153. <version>${commons-fileupload-version}</version>
  154. </dependency>
  155. <dependency>
  156. <groupId>commons-io</groupId>
  157. <artifactId>commons-io</artifactId>
  158. <version>${commons-io-version}</version>
  159. </dependency>
  160. <dependency>
  161. <groupId>commons-codec</groupId>
  162. <artifactId>commons-codec</artifactId>
  163. <version>${commons-codec-version}</version>
  164. </dependency>
  165. <dependency>
  166. <groupId>commons-configuration</groupId>
  167. <artifactId>commons-configuration</artifactId>
  168. <version>${commons-configuration-version}</version>
  169. </dependency>
  170. <dependency>
  171. <groupId>org.aspectj</groupId>
  172. <artifactId>aspectjrt</artifactId>
  173. <version>${aspect-version}</version>
  174. </dependency>
  175. <dependency>
  176. <groupId>org.aspectj</groupId>
  177. <artifactId>aspectjweaver</artifactId>
  178. <version>${aspect-version}</version>
  179. </dependency>
  180. <dependency>
  181. <groupId>org.apache.shiro</groupId>
  182. <artifactId>shiro-core</artifactId>
  183. <version>${shiro-version}</version>
  184. </dependency>
  185. <dependency>
  186. <groupId>org.apache.shiro</groupId>
  187. <artifactId>shiro-spring</artifactId>
  188. <version>${shiro-version}</version>
  189. </dependency>
  190. <dependency>
  191. <groupId>org.apache.httpcomponents</groupId>
  192. <artifactId>httpclient</artifactId>
  193. <version>${httpclient-version}</version>
  194. </dependency>
  195. <dependency>
  196. <groupId>redis.clients</groupId>
  197. <artifactId>jedis</artifactId>
  198. </dependency>
  199. <dependency>
  200. <groupId>io.springfox</groupId>
  201. <artifactId>springfox-swagger2</artifactId>
  202. <version>${swagger-version}</version>
  203. </dependency>
  204. <dependency>
  205. <groupId>io.springfox</groupId>
  206. <artifactId>springfox-swagger-ui</artifactId>
  207. <version>${swagger-version}</version>
  208. </dependency>
  209. <dependency>
  210. <groupId>com.github.penggle</groupId>
  211. <artifactId>kaptcha</artifactId>
  212. <version>${kaptcha-version}</version>
  213. </dependency>
  214. <dependency>
  215. <groupId>javax.servlet</groupId>
  216. <artifactId>javax.servlet-api</artifactId>
  217. <version>${servlet-version}</version>
  218. <scope>provided</scope>
  219. </dependency>
  220. <dependency>
  221. <groupId>io.jsonwebtoken</groupId>
  222. <artifactId>jjwt</artifactId>
  223. <version>${jwt-version}</version>
  224. </dependency>
  225. <dependency>
  226. <groupId>com.taobao.top</groupId>
  227. <artifactId>top-api-sdk-dev</artifactId>
  228. <version>ding-open-mc-SNAPSHOT</version>
  229. <scope>system</scope>
  230. <systemPath>${pom.basedir}/doc/taobao-sdk-java-auto_1479188381469-20210817.jar</systemPath>
  231. </dependency>
  232. <dependency>
  233. <groupId>com.microsoft.sqlserver</groupId>
  234. <artifactId>mssql-jdbc</artifactId>
  235. <version>6.2.2.jre8</version>
  236. </dependency>
  237. <dependency>
  238. <groupId>net.sf.json-lib</groupId>
  239. <artifactId>json-lib</artifactId>
  240. <version>2.4</version>
  241. <classifier>jdk15</classifier>
  242. </dependency>
  243. <dependency>
  244. <groupId>com.oracle</groupId>
  245. <artifactId>ojdbc14</artifactId>
  246. <version>${oracle.driver.version}</version>
  247. <scope>system</scope>
  248. <systemPath>${pom.basedir}/doc/ojdbc14-10.2.0.4.0.jar</systemPath>
  249. </dependency>
  250. </dependencies>
  251. <profiles>
  252. <profile>
  253. <id>sit</id>
  254. <properties>
  255. <spring.active>sit</spring.active>
  256. </properties>
  257. <activation>
  258. <activeByDefault>true</activeByDefault>
  259. </activation>
  260. </profile>
  261. <profile>
  262. <id>pre</id>
  263. <properties>
  264. <spring.active>pre</spring.active>
  265. </properties>
  266. </profile>
  267. <profile>
  268. <id>prd</id>
  269. <properties>
  270. <spring.active>prd</spring.active>
  271. </properties>
  272. </profile>
  273. </profiles>
  274. <build>
  275. <finalName>${project.artifactId}</finalName>
  276. <plugins>
  277. <plugin>
  278. <groupId>org.springframework.boot</groupId>
  279. <artifactId>spring-boot-maven-plugin</artifactId>
  280. <configuration>
  281. <!-- <fork>true</fork>-->
  282. <includeSystemScope>true</includeSystemScope>
  283. </configuration>
  284. </plugin>
  285. <!-- 跳过单元测试 -->
  286. <plugin>
  287. <groupId>org.apache.maven.plugins</groupId>
  288. <artifactId>maven-surefire-plugin</artifactId>
  289. <configuration>
  290. <skipTests>true</skipTests>
  291. </configuration>
  292. </plugin>
  293. <plugin>
  294. <groupId>org.apache.maven.plugins</groupId>
  295. <artifactId>maven-resources-plugin</artifactId>
  296. <version>3.1.0</version>
  297. <configuration>
  298. <delimiters>
  299. <delimiter>@</delimiter>
  300. </delimiters>
  301. <useDefaultDelimiters>false</useDefaultDelimiters>
  302. </configuration>
  303. </plugin>
  304. </plugins>
  305. <resources>
  306. <resource>
  307. <directory>src/main/webapp</directory>
  308. </resource>
  309. <resource>
  310. <directory>src/main/resources</directory>
  311. <filtering>true</filtering>
  312. </resource>
  313. <resource>
  314. <directory>src/main/java</directory>
  315. <includes>
  316. <include>**/*.xml</include>
  317. </includes>
  318. </resource>
  319. </resources>
  320. </build>
  321. </project>