pom.xml 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>cn.ourwill</groupId>
  5. <artifactId>house</artifactId>
  6. <packaging>war</packaging>
  7. <version>0.0.1-SNAPSHOT</version>
  8. <name>house</name>
  9. <url>todo</url>
  10. <!-- 项目属性 -->
  11. <properties>
  12. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13. <s>1.8</s>
  14. <!-- main version setting -->
  15. <spring.version>4.2.4.RELEASE</spring.version>
  16. <mybatis.version>3.3.0</mybatis.version>
  17. <druid.version>1.0.11</druid.version>
  18. <junit.version>4.9</junit.version>
  19. <aspectj.version>1.8.8</aspectj.version>
  20. <servlet-api.version>2.5</servlet-api.version>
  21. <server-jstl.version>1.2</server-jstl.version>
  22. <!-- tools version setting -->
  23. <slf4j.version>1.7.7</slf4j.version>
  24. <commons-lang.version>3.3.2</commons-lang.version>
  25. <commons-io.version>2.4</commons-io.version>
  26. <commons-codec.version>1.9</commons-codec.version>
  27. <commons-beanutils.version>1.9.1</commons-beanutils.version>
  28. <commons-logging.version>1.2</commons-logging.version>
  29. <commons-fileupload.version>1.3.1</commons-fileupload.version>
  30. <commons-validator.version>1.3.1</commons-validator.version>
  31. <commons-beanutils.version>1.8.3</commons-beanutils.version>
  32. <commons-digester.version>1.8</commons-digester.version>
  33. <commons-collections.version>3.2.1</commons-collections.version>
  34. <commons-logging.version>1.1.3</commons-logging.version>
  35. <commons-configuration.version>1.10</commons-configuration.version>
  36. <guava.version>17.0</guava.version>
  37. <jackson.version>2.2.3</jackson.version>
  38. <!-- jdbc driver setting -->
  39. <mysql.driver.version>5.1.30</mysql.driver.version>
  40. <!-- environment setting -->
  41. <jdk.version>1.7</jdk.version>
  42. <tomcat.version>2.2</tomcat.version>
  43. <jetty.version>9.3.7.v20160115</jetty.version>
  44. <server.port>8181</server.port>
  45. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  46. <downloadSources>true</downloadSources>
  47. <!--maven settings -->
  48. <maven-war-plugin.version>2.1.1</maven-war-plugin.version>
  49. <maven-compiler-plugin.version>3.3</maven-compiler-plugin.version>
  50. </properties>
  51. <!-- 配置文件 -->
  52. <profiles>
  53. <profile>
  54. <id>mine</id>
  55. <activation>
  56. <activeByDefault>true</activeByDefault>
  57. </activation>
  58. <build>
  59. <filters>
  60. <filter>src/main/resources/filter/filter-mine.properties</filter>
  61. </filters>
  62. </build>
  63. </profile>
  64. <profile>
  65. <id>release</id>
  66. <activation>
  67. <activeByDefault>false</activeByDefault>
  68. </activation>
  69. <build>
  70. <filters>
  71. <filter>src/main/resources/filters/filter-release.properties</filter>
  72. </filters>
  73. </build>
  74. </profile>
  75. </profiles>
  76. <!-- 设定主仓库,按设定顺序进行查找。 -->
  77. <repositories>
  78. <!-- 如有Nexus私服, 取消注释并指向正确的服务器地址.
  79. <repository>
  80. <id>nexus-repos</id>
  81. <name>Team Nexus Repository</name>
  82. <url>http://192.168.11.36:8888/nexus/content/groups/public</url>
  83. </repository>
  84. <repository>
  85. <id>oschina-repos</id>
  86. <name>Oschina Releases</name>
  87. <url>http://maven.oschina.net/content/groups/public</url>
  88. </repository>
  89. <repository>
  90. <id>java-repos</id>
  91. <name>Java Repository</name>
  92. <url>http://download.java.net/maven/2/</url>
  93. </repository>
  94. <repository>
  95. <id>springsource-repos</id>
  96. <name>SpringSource Repository</name>
  97. <url>http://repo.spring.io/release/</url>
  98. </repository>
  99. <repository>
  100. <id>central-repos</id>
  101. <name>Central Repository</name>
  102. <url>http://repo.maven.apache.org/maven2</url>
  103. </repository>
  104. -->
  105. <repository>
  106. <id>alimaven</id>
  107. <name>aliyun maven</name>
  108. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  109. </repository>
  110. <repository>
  111. <id>central-repos2</id>
  112. <name>Central Repository 2</name>
  113. <url>http://repo1.maven.org/maven2/</url>
  114. </repository>
  115. <repository>
  116. <id>activiti-repos</id>
  117. <name>Activiti Repository</name>
  118. <url>https://maven.alfresco.com/nexus/content/groups/public</url>
  119. </repository>
  120. <repository>
  121. <id>activiti-repos2</id>
  122. <name>Activiti Repository 2</name>
  123. <url>https://app.camunda.com/nexus/content/groups/public</url>
  124. </repository>
  125. <repository>
  126. <id>thinkgem-repos2</id>
  127. <name>ThinkGem Repository 2</name>
  128. <url>https://raw.github.com/thinkgem/repository/master</url>
  129. </repository>
  130. </repositories>
  131. <!-- 设定插件仓库 -->
  132. <pluginRepositories>
  133. <pluginRepository>
  134. <id>oschina-repos</id>
  135. <name>Oschina Releases</name>
  136. <url>http://maven.oschina.net/content/groups/public</url>
  137. </pluginRepository>
  138. </pluginRepositories>
  139. <dependencies>
  140. <!-- 导出pdf文件 -->
  141. <dependency>
  142. <groupId>com.itextpdf</groupId>
  143. <artifactId>itextpdf</artifactId>
  144. <version>5.4.3</version>
  145. </dependency>
  146. <!--中文依赖包 -->
  147. <dependency>
  148. <groupId>com.itextpdf</groupId>
  149. <artifactId>itext-asian</artifactId>
  150. <version>5.2.0</version>
  151. </dependency>
  152. <!-- spring beans -->
  153. <dependency>
  154. <groupId>org.springframework</groupId>
  155. <artifactId>spring-core</artifactId>
  156. <version>${spring.version}</version>
  157. </dependency>
  158. <dependency>
  159. <groupId>org.springframework</groupId>
  160. <artifactId>spring-beans</artifactId>
  161. <version>${spring.version}</version>
  162. </dependency>
  163. <dependency>
  164. <groupId>org.springframework</groupId>
  165. <artifactId>spring-context</artifactId>
  166. <version>${spring.version}</version>
  167. </dependency>
  168. <dependency>
  169. <groupId>org.springframework</groupId>
  170. <artifactId>spring-context-support</artifactId>
  171. <version>${spring.version}</version>
  172. </dependency>
  173. <!-- spring mvc -->
  174. <dependency>
  175. <groupId>org.springframework</groupId>
  176. <artifactId>spring-web</artifactId>
  177. <version>${spring.version}</version>
  178. </dependency>
  179. <dependency>
  180. <groupId>org.springframework</groupId>
  181. <artifactId>spring-webmvc</artifactId>
  182. <version>${spring.version}</version>
  183. </dependency>
  184. <!-- spring AOP -->
  185. <dependency>
  186. <groupId>org.springframework</groupId>
  187. <artifactId>spring-aop</artifactId>
  188. <version>${spring.version}</version>
  189. </dependency>
  190. <dependency>
  191. <groupId>org.springframework</groupId>
  192. <artifactId>spring-test</artifactId>
  193. <version>${spring.version}</version>
  194. </dependency>
  195. <dependency>
  196. <groupId>org.aspectj</groupId>
  197. <artifactId>aspectjrt</artifactId>
  198. <version>${aspectj.version}</version>
  199. </dependency>
  200. <dependency>
  201. <groupId>org.aspectj</groupId>
  202. <artifactId>aspectjweaver</artifactId>
  203. <version>${aspectj.version}</version>
  204. <scope>runtime</scope>
  205. </dependency>
  206. <dependency>
  207. <groupId>org.springframework</groupId>
  208. <artifactId>spring-tx</artifactId>
  209. <version>${spring.version}</version>
  210. </dependency>
  211. <!-- spring orm -->
  212. <dependency>
  213. <groupId>org.springframework</groupId>
  214. <artifactId>spring-orm</artifactId>
  215. <version>${spring.version}</version>
  216. </dependency>
  217. <dependency>
  218. <groupId>org.springframework</groupId>
  219. <artifactId>spring-jdbc</artifactId>
  220. <version>${spring.version}</version>
  221. </dependency>
  222. <!-- mybatis -->
  223. <dependency>
  224. <groupId>org.mybatis</groupId>
  225. <artifactId>mybatis</artifactId>
  226. <version>${mybatis.version}</version>
  227. </dependency>
  228. <dependency>
  229. <groupId>org.mybatis.generator</groupId>
  230. <artifactId>mybatis-generator-core</artifactId>
  231. <version>1.3.2</version>
  232. </dependency>
  233. <dependency>
  234. <groupId>org.mybatis</groupId>
  235. <artifactId>mybatis-spring</artifactId>
  236. <version>1.2.1</version>
  237. </dependency>
  238. <dependency>
  239. <groupId>tk.mybatis</groupId>
  240. <artifactId>mapper</artifactId>
  241. <version>4.0.0</version>
  242. </dependency>
  243. <dependency>
  244. <groupId>com.github.pagehelper</groupId>
  245. <artifactId>pagehelper</artifactId>
  246. <version>5.0.0</version>
  247. </dependency>
  248. <dependency>
  249. <groupId>javax.persistence</groupId>
  250. <artifactId>persistence-api</artifactId>
  251. <version>1.0</version>
  252. </dependency>
  253. <!-- druid -->
  254. <dependency>
  255. <groupId>com.alibaba</groupId>
  256. <artifactId>druid</artifactId>
  257. <version>${druid.version}</version>
  258. </dependency>
  259. <!-- mysql -->
  260. <dependency>
  261. <groupId>mysql</groupId>
  262. <artifactId>mysql-connector-java</artifactId>
  263. <version>${mysql.driver.version}</version>
  264. </dependency>
  265. <dependency>
  266. <groupId>org.projectlombok</groupId>
  267. <artifactId>lombok</artifactId>
  268. <version>1.12.2</version>
  269. <scope>provided</scope>
  270. </dependency>
  271. <!-- j2ee web spec -->
  272. <dependency>
  273. <groupId>javax.servlet</groupId>
  274. <artifactId>servlet-api</artifactId>
  275. <version>${servlet-api.version}</version>
  276. <scope>provided</scope>
  277. </dependency>
  278. <dependency>
  279. <groupId>javax.servlet</groupId>
  280. <artifactId>jstl</artifactId>
  281. <version>${server-jstl.version}</version>
  282. </dependency>
  283. <!-- GENERAL UTILS begin -->
  284. <dependency>
  285. <groupId>org.apache.commons</groupId>
  286. <artifactId>commons-lang3</artifactId>
  287. <version>${commons-lang.version}</version>
  288. </dependency>
  289. <dependency>
  290. <groupId>commons-io</groupId>
  291. <artifactId>commons-io</artifactId>
  292. <version>${commons-io.version}</version>
  293. </dependency>
  294. <dependency>
  295. <groupId>commons-fileupload</groupId>
  296. <artifactId>commons-fileupload</artifactId>
  297. <version>${commons-fileupload.version}</version>
  298. </dependency>
  299. <dependency>
  300. <groupId>commons-codec</groupId>
  301. <artifactId>commons-codec</artifactId>
  302. <version>${commons-codec.version}</version>
  303. </dependency>
  304. <dependency>
  305. <groupId>commons-validator</groupId>
  306. <artifactId>commons-validator</artifactId>
  307. <version>${commons-validator.version}</version>
  308. </dependency>
  309. <dependency>
  310. <groupId>commons-beanutils</groupId>
  311. <artifactId>commons-beanutils</artifactId>
  312. <version>${commons-beanutils.version}</version>
  313. </dependency>
  314. <dependency>
  315. <groupId>commons-digester</groupId>
  316. <artifactId>commons-digester</artifactId>
  317. <version>${commons-digester.version}</version>
  318. </dependency>
  319. <dependency>
  320. <groupId>commons-collections</groupId>
  321. <artifactId>commons-collections</artifactId>
  322. <version>${commons-collections.version}</version>
  323. </dependency>
  324. <dependency>
  325. <groupId>commons-logging</groupId>
  326. <artifactId>commons-logging</artifactId>
  327. <version>${commons-logging.version}</version>
  328. </dependency>
  329. <dependency>
  330. <groupId>commons-configuration</groupId>
  331. <artifactId>commons-configuration</artifactId>
  332. <version>${commons-configuration.version}</version>
  333. </dependency>
  334. <dependency>
  335. <groupId>com.google.guava</groupId>
  336. <artifactId>guava</artifactId>
  337. <version>${guava.version}</version>
  338. </dependency>
  339. <!-- Gson -->
  340. <dependency>
  341. <groupId>com.google.code.gson</groupId>
  342. <artifactId>gson</artifactId>
  343. <version>2.2.4</version>
  344. </dependency>
  345. <!-- jackson json -->
  346. <dependency>
  347. <groupId>com.fasterxml.jackson.core</groupId>
  348. <artifactId>jackson-core</artifactId>
  349. <version>${jackson.version}</version>
  350. </dependency>
  351. <dependency>
  352. <groupId>com.fasterxml.jackson.core</groupId>
  353. <artifactId>jackson-databind</artifactId>
  354. <version>${jackson.version}</version>
  355. </dependency>
  356. <dependency>
  357. <groupId>com.fasterxml.jackson.core</groupId>
  358. <artifactId>jackson-annotations</artifactId>
  359. <version>${jackson.version}</version>
  360. </dependency>
  361. <dependency>
  362. <groupId>com.fasterxml.jackson.module</groupId>
  363. <artifactId>jackson-module-jaxb-annotations</artifactId>
  364. <version>${jackson.version}</version>
  365. </dependency>
  366. <dependency>
  367. <groupId>net.sf.json-lib</groupId>
  368. <artifactId>json-lib</artifactId>
  369. <version>2.4</version>
  370. <classifier>jdk15</classifier>
  371. </dependency>
  372. <dependency>
  373. <groupId>org.json</groupId>
  374. <artifactId>json</artifactId>
  375. <version>20180130</version>
  376. </dependency>
  377. <!-- javamelody监控sql -->
  378. <dependency>
  379. <groupId>net.bull.javamelody</groupId>
  380. <artifactId>javamelody-core</artifactId>
  381. <version>1.49.0</version>
  382. </dependency>
  383. <dependency>
  384. <groupId>org.jrobin</groupId>
  385. <artifactId>jrobin</artifactId>
  386. <version>1.5.9</version>
  387. </dependency>
  388. <dependency>
  389. <groupId>com.caucho</groupId>
  390. <artifactId>hessian</artifactId>
  391. <version>3.1.5</version>
  392. </dependency>
  393. <dependency>
  394. <groupId>com.github.miemiedev</groupId>
  395. <artifactId>mybatis-paginator</artifactId>
  396. <version>1.2.17</version>
  397. </dependency>
  398. <dependency>
  399. <!-- jsoup HTML parser library @ http://jsoup.org/ -->
  400. <groupId>org.jsoup</groupId>
  401. <artifactId>jsoup</artifactId>
  402. <version>1.8.1</version>
  403. </dependency>
  404. <dependency>
  405. <groupId>com.fasterxml.jackson.core</groupId>
  406. <artifactId>jackson-core</artifactId>
  407. <version>2.1.0</version>
  408. </dependency>
  409. <dependency>
  410. <groupId>com.fasterxml.jackson.core</groupId>
  411. <artifactId>jackson-databind</artifactId>
  412. <version>2.1.0</version>
  413. </dependency>
  414. <dependency>
  415. <groupId>com.fasterxml.jackson.core</groupId>
  416. <artifactId>jackson-annotations</artifactId>
  417. <version>2.1.0</version>
  418. </dependency>
  419. <!-- log -->
  420. <dependency>
  421. <groupId>org.slf4j</groupId>
  422. <artifactId>slf4j-api</artifactId>
  423. <version>1.7.7</version>
  424. </dependency>
  425. <dependency>
  426. <groupId>ch.qos.logback</groupId>
  427. <artifactId>logback-classic</artifactId>
  428. <version>1.1.2</version>
  429. </dependency>
  430. <dependency>
  431. <groupId>dom4j</groupId>
  432. <artifactId>dom4j</artifactId>
  433. <version>1.6.1</version>
  434. <exclusions>
  435. <exclusion>
  436. <groupId>xml-apis</groupId>
  437. <artifactId>xml-apis</artifactId>
  438. </exclusion>
  439. </exclusions>
  440. </dependency>
  441. <!-- User Agent -->
  442. <dependency>
  443. <groupId>bitwalker</groupId>
  444. <artifactId>UserAgentUtils</artifactId>
  445. <version>1.13</version>
  446. </dependency>
  447. <!-- 条形码、二维码生成 -->
  448. <dependency>
  449. <groupId>com.google.zxing</groupId>
  450. <artifactId>core</artifactId>
  451. <version>2.2</version>
  452. </dependency>
  453. <dependency>
  454. <groupId>com.google.zxing</groupId>
  455. <artifactId>javase</artifactId>
  456. <version>2.2</version>
  457. </dependency>
  458. <!-- CKFinder begin -->
  459. <dependency>
  460. <groupId>net.coobird</groupId>
  461. <artifactId>thumbnailator</artifactId>
  462. <version>0.4.2</version>
  463. </dependency>
  464. <dependency>
  465. <groupId>com.ckfinder</groupId>
  466. <artifactId>apache-ant-zip</artifactId>
  467. <version>2.3</version>
  468. </dependency>
  469. <dependency>
  470. <groupId>com.ckfinder</groupId>
  471. <artifactId>ckfinder</artifactId>
  472. <version>2.3</version>
  473. </dependency>
  474. <dependency>
  475. <groupId>com.ckfinder</groupId>
  476. <artifactId>ckfinderplugin-fileeditor</artifactId>
  477. <version>2.3</version>
  478. </dependency>
  479. <dependency>
  480. <groupId>com.ckfinder</groupId>
  481. <artifactId>ckfinderplugin-imageresize</artifactId>
  482. <version>2.3</version>
  483. </dependency>
  484. <dependency>
  485. <groupId>junit</groupId>
  486. <artifactId>junit</artifactId>
  487. <version>${junit.version}</version>
  488. </dependency>
  489. <!-- CKFinder end -->
  490. <!-- poi -->
  491. <dependency>
  492. <groupId>org.apache.poi</groupId>
  493. <artifactId>poi</artifactId>
  494. <version>3.8</version>
  495. </dependency>
  496. <dependency>
  497. <groupId>org.apache.poi</groupId>
  498. <artifactId>poi-ooxml</artifactId>
  499. <version>3.8</version>
  500. </dependency>
  501. <dependency>
  502. <groupId>org.apache.poi</groupId>
  503. <artifactId>poi-ooxml-schemas</artifactId>
  504. <version>3.8</version>
  505. </dependency>
  506. <!--图表-->
  507. <dependency>
  508. <groupId>org.jfree.chart</groupId>
  509. <artifactId>com.springsource.org.jfree.chart</artifactId>
  510. <version>1.0.9</version>
  511. </dependency>
  512. <dependency>
  513. <groupId>org.jfree</groupId>
  514.  <artifactId>com.springsource.org.jfree</artifactId>
  515. <version>1.0.12</version>
  516. </dependency>
  517. <!--二维码-->
  518. <dependency>
  519. <groupId>com.google.zxing</groupId>
  520. <artifactId>core</artifactId>
  521. <version>3.2.1</version>
  522. </dependency>
  523. <dependency>
  524. <groupId>joda-time</groupId>
  525. <artifactId>joda-time</artifactId>
  526. <version>2.9.2</version>
  527. </dependency>
  528. <!--图片压缩imgscalr-->
  529. <dependency>
  530. <groupId>org.imgscalr</groupId>
  531. <artifactId>imgscalr-lib</artifactId>
  532. <version>4.2</version>
  533. </dependency>
  534. <dependency>
  535. <groupId>caja</groupId>
  536. <artifactId>json_simple</artifactId>
  537. <version>r1</version>
  538. </dependency>
  539. <dependency>
  540. <groupId>org.jetbrains</groupId>
  541. <artifactId>annotations-java5</artifactId>
  542. <version>15.0</version>
  543. </dependency>
  544. <dependency>
  545. <groupId>com.alibaba</groupId>
  546. <artifactId>fastjson</artifactId>
  547. <version>1.2.29</version>
  548. <scope>compile</scope>
  549. </dependency>
  550. <!--sqllite-->
  551. <dependency>
  552. <groupId>org.xerial</groupId>
  553. <artifactId>sqlite-jdbc</artifactId>
  554. <version>3.8.11.2</version>
  555. </dependency>
  556. <!--定时器-->
  557. <dependency>
  558. <groupId>org.quartz-scheduler</groupId>
  559. <artifactId>quartz</artifactId>
  560. <version>2.2.3</version>
  561. </dependency>
  562. <dependency>
  563. <groupId>org.quartz-scheduler</groupId>
  564. <artifactId>quartz-jobs</artifactId>
  565. <version>2.2.1</version>
  566. </dependency>
  567. <!--http://git.oschina.net/free/ECharts-->
  568. <dependency>
  569. <groupId>com.github.abel533</groupId>
  570. <artifactId>ECharts</artifactId>
  571. <version>3.0.0</version>
  572. </dependency>
  573. <!-- <dependency>
  574. <groupId>org.jeewxframework</groupId>
  575. <artifactId>P3-Core</artifactId>
  576. <version>2.1-SNAPSHOT</version>
  577. </dependency>-->
  578. <dependency>
  579. <groupId>com.vaadin.external.google</groupId>
  580. <artifactId>android-json</artifactId>
  581. <version>0.0.20131108.vaadin1</version>
  582. </dependency>
  583. </dependencies>
  584. <build>
  585. <finalName>house</finalName>
  586. <resources>
  587. <resource>
  588. <directory>src/main/resources</directory>
  589. <filtering>true</filtering>
  590. </resource>
  591. </resources>
  592. <plugins>
  593. <!-- 需要指定WebRoot路径或者web.xml路径 -->
  594. <plugin>
  595. <groupId>org.apache.maven.plugins</groupId>
  596. <artifactId>maven-war-plugin</artifactId>
  597. <version>${maven-war-plugin.version}</version>
  598. <configuration>
  599. <warName>${project.artifactId}</warName>
  600. <webResources>
  601. <resource>
  602. <!-- this is relative to the pom.xml directory -->
  603. <directory>src/main/webapp</directory>
  604. </resource>
  605. </webResources>
  606. </configuration>
  607. </plugin>
  608. <plugin>
  609. <groupId>org.apache.maven.plugins</groupId>
  610. <artifactId>maven-compiler-plugin</artifactId>
  611. <version>${maven-compiler-plugin.version}</version>
  612. <configuration>
  613. <source>${jdk.version}</source>
  614. <target>${jdk.version}</target>
  615. <encoding>UTF-8</encoding>
  616. <!--引入外部jar时添加,编译参数,否则无法使用jar中的类-->
  617. <compilerArguments>
  618. <extdirs>src/main/webapp/WEB-INF/lib</extdirs>
  619. </compilerArguments>
  620. </configuration>
  621. </plugin>
  622. <plugin>
  623. <groupId>org.eclipse.jetty</groupId>
  624. <artifactId>jetty-maven-plugin</artifactId>
  625. <version>${jetty.version}</version>
  626. <configuration>
  627. <scanIntervalSeconds>2</scanIntervalSeconds>
  628. <reload>automatic</reload>
  629. <webApp>
  630. <contextPath>/</contextPath>
  631. </webApp>
  632. <scanTargetPatterns>
  633. <scanTargetPattern>
  634. <directory>src/main/resources/mappings/modules</directory>
  635. <includes>
  636. <include>**/**/*.xml</include>
  637. </includes>
  638. </scanTargetPattern>
  639. </scanTargetPatterns>
  640. </configuration>
  641. </plugin>
  642. <!-- tomcat plugin -->
  643. <plugin>
  644. <groupId>org.apache.tomcat.maven</groupId>
  645. <artifactId>tomcat7-maven-plugin</artifactId>
  646. <version>${tomcat.version}</version>
  647. <configuration>
  648. <path>/</path>
  649. <port>${server.port}</port>
  650. <uriEncoding>UTF-8</uriEncoding>
  651. <url>http://127.0.0.1/manager</url>
  652. <server>tomcat7</server>
  653. <contextReloadable>true</contextReloadable>
  654. <warSourceDirectory>src/main/webapp</warSourceDirectory>
  655. <contextReloadable>false</contextReloadable>
  656. </configuration>
  657. </plugin>
  658. </plugins>
  659. </build>
  660. </project>