pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450
  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/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>com.xtframe</groupId>
  5. <version>0.1.3-SNAPSHOT</version>
  6. <packaging>pom</packaging>
  7. <name>新通开发框架</name>
  8. <artifactId>xtproject-oa</artifactId>
  9. <description>基本功能运行稳定。港口OA系统专用版本</description>
  10. <modules>
  11. <module>modules/xtframe-core</module>
  12. <module>modules/xtframe-util</module>
  13. <module>modules/xtframe-security</module>
  14. <module>modules/xtframe-workflow</module>
  15. <module>modules/xtframe-io</module>
  16. <module>modules/xtframe-web</module>
  17. </modules>
  18. <properties>
  19. <!-- java 版本 -->
  20. <jdk.version>1.7</jdk.version>
  21. <!-- spring 版本 -->
  22. <spring.version>4.1.2.RELEASE</spring.version>
  23. <!-- hiberante 版本 -->
  24. <hibernate.version>4.3.7.Final</hibernate.version>
  25. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  26. <aspectj.version>1.8.2</aspectj.version>
  27. <shiro.version>1.2.3</shiro.version>
  28. <activiti.version>5.16</activiti.version>
  29. <junit.version>4.11</junit.version>
  30. <commons-io.version>2.4</commons-io.version>
  31. <slf4j.version>1.7.12</slf4j.version>
  32. </properties>
  33. <!-- 依赖管理 -->
  34. <dependencyManagement>
  35. <dependencies>
  36. <!-- modules -->
  37. <dependency>
  38. <groupId>com.xtframe</groupId>
  39. <artifactId>xtutil-oa</artifactId>
  40. <version>${project.version}</version>
  41. </dependency>
  42. <dependency>
  43. <groupId>com.xtframe</groupId>
  44. <artifactId>xtCore-oa</artifactId>
  45. <version>${project.version}</version>
  46. </dependency>
  47. <dependency>
  48. <groupId>com.xtframe</groupId>
  49. <artifactId>xtio-oa</artifactId>
  50. <version>${project.version}</version>
  51. </dependency>
  52. <dependency>
  53. <groupId>com.xtframe</groupId>
  54. <artifactId>xtSecurity-oa</artifactId>
  55. <version>${project.version}</version>
  56. </dependency>
  57. <dependency>
  58. <groupId>com.xtframe</groupId>
  59. <artifactId>xtWorkflow-oa</artifactId>
  60. <version>${project.version}</version>
  61. </dependency>
  62. <dependency>
  63. <groupId>com.xtframe</groupId>
  64. <artifactId>xtweb-oa</artifactId>
  65. <version>${project.version}</version>
  66. </dependency>
  67. <!-- spring -->
  68. <dependency>
  69. <groupId>org.springframework</groupId>
  70. <artifactId>spring-framework-bom</artifactId>
  71. <version>${spring.version}</version>
  72. <type>pom</type>
  73. <scope>import</scope>
  74. </dependency>
  75. <!-- hibernate -->
  76. <dependency>
  77. <groupId>org.hibernate</groupId>
  78. <artifactId>hibernate-core</artifactId>
  79. <version>${hibernate.version}</version>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.hibernate</groupId>
  83. <artifactId>hibernate-entitymanager</artifactId>
  84. <version>${hibernate.version}</version>
  85. </dependency>
  86. <!-- optional datasource pool -->
  87. <dependency>
  88. <groupId>commons-dbcp</groupId>
  89. <artifactId>commons-dbcp</artifactId>
  90. <version>1.4</version>
  91. </dependency>
  92. <dependency>
  93. <groupId>commons-pool</groupId>
  94. <artifactId>commons-pool</artifactId>
  95. <version>1.6</version>
  96. </dependency>
  97. <dependency>
  98. <groupId>org.aspectj</groupId>
  99. <artifactId>aspectjrt</artifactId>
  100. <version>${aspectj.version}</version>
  101. </dependency>
  102. <dependency>
  103. <groupId>org.aspectj</groupId>
  104. <artifactId>aspectjweaver</artifactId>
  105. <version>${aspectj.version}</version>
  106. </dependency>
  107. <!-- apache -->
  108. <dependency>
  109. <groupId>commons-io</groupId>
  110. <artifactId>commons-io</artifactId>
  111. <version>2.1</version>
  112. </dependency>
  113. <dependency>
  114. <groupId>commons-codec</groupId>
  115. <artifactId>commons-codec</artifactId>
  116. <version>1.6</version>
  117. </dependency>
  118. <!-- provided -->
  119. <!-- j2ee web spec -->
  120. <dependency>
  121. <groupId>javax.servlet.jsp</groupId>
  122. <artifactId>jsp-api</artifactId>
  123. <version>2.2</version>
  124. <scope>provided</scope>
  125. </dependency>
  126. <dependency>
  127. <groupId>javax.servlet</groupId>
  128. <artifactId>servlet-api</artifactId>
  129. <version>2.5</version>
  130. <scope>provided</scope>
  131. </dependency>
  132. <dependency>
  133. <groupId>javax.servlet</groupId>
  134. <artifactId>jstl</artifactId>
  135. <version>1.2</version>
  136. </dependency>
  137. <dependency>
  138. <groupId>taglibs</groupId>
  139. <artifactId>standard</artifactId>
  140. <version>1.1.2</version>
  141. </dependency>
  142. <!-- WEB end -->
  143. <dependency>
  144. <groupId>org.mockito</groupId>
  145. <artifactId>mockito-core</artifactId>
  146. <version>1.9.0</version>
  147. </dependency>
  148. <!-- log -->
  149. <dependency>
  150. <groupId>log4j</groupId>
  151. <artifactId>log4j</artifactId>
  152. <version>1.2.17</version>
  153. </dependency>
  154. <dependency>
  155. <groupId>org.slf4j</groupId>
  156. <artifactId>slf4j-api</artifactId>
  157. <version>${slf4j.version}</version>
  158. </dependency>
  159. <dependency>
  160. <groupId>org.slf4j</groupId>
  161. <artifactId>slf4j-log4j12</artifactId>
  162. <version>${slf4j.version}</version>
  163. </dependency>
  164. <!-- SECURITY begin -->
  165. <dependency>
  166. <groupId>org.apache.shiro</groupId>
  167. <artifactId>shiro-core</artifactId>
  168. <version>${shiro.version}</version>
  169. </dependency>
  170. <dependency>
  171. <groupId>org.apache.shiro</groupId>
  172. <artifactId>shiro-spring</artifactId>
  173. <version>${shiro.version}</version>
  174. </dependency>
  175. <dependency>
  176. <groupId>org.apache.shiro</groupId>
  177. <artifactId>shiro-web</artifactId>
  178. <version>${shiro.version}</version>
  179. </dependency>
  180. <dependency>
  181. <groupId>org.apache.shiro</groupId>
  182. <artifactId>shiro-ehcache</artifactId>
  183. <version>${shiro.version}</version>
  184. </dependency>
  185. <dependency>
  186. <groupId>org.apache.shiro</groupId>
  187. <artifactId>shiro-cas</artifactId>
  188. <version>${shiro.version}</version>
  189. </dependency>
  190. <!-- SECURITY end -->
  191. <!-- jackson -->
  192. <dependency>
  193. <groupId>com.fasterxml.jackson.core</groupId>
  194. <artifactId>jackson-annotations</artifactId>
  195. <version>2.2.0</version>
  196. </dependency>
  197. <dependency>
  198. <groupId>com.fasterxml.jackson.core</groupId>
  199. <artifactId>jackson-core</artifactId>
  200. <version>2.2.0</version>
  201. </dependency>
  202. <dependency>
  203. <groupId>com.fasterxml.jackson.core</groupId>
  204. <artifactId>jackson-databind</artifactId>
  205. <version>2.2.0</version>
  206. </dependency>
  207. <dependency>
  208. <groupId>org.springframework.data</groupId>
  209. <artifactId>spring-data-jpa</artifactId>
  210. <version>1.7.1.RELEASE</version>
  211. </dependency>
  212. <!-- activiti -->
  213. <dependency>
  214. <groupId>org.activiti</groupId>
  215. <artifactId>activiti-engine</artifactId>
  216. <version>${activiti.version}</version>
  217. </dependency>
  218. <dependency>
  219. <groupId>org.activiti</groupId>
  220. <artifactId>activiti-spring</artifactId>
  221. <version>${activiti.version}</version>
  222. </dependency>
  223. <!-- test -->
  224. <dependency>
  225. <groupId>junit</groupId>
  226. <artifactId>junit</artifactId>
  227. <version>${junit.version}</version>
  228. <scope>test</scope>
  229. </dependency>
  230. <dependency>
  231. <groupId>org.springframework</groupId>
  232. <artifactId>spring-test</artifactId>
  233. <version>${spring.version}</version>
  234. <scope>test</scope>
  235. </dependency>
  236. <dependency>
  237. <groupId>commons-io</groupId>
  238. <artifactId>commons-io</artifactId>
  239. <version>${commons-io.version}</version>
  240. </dependency>
  241. <!-- json -->
  242. <dependency>
  243. <groupId>net.sf.json-lib</groupId>
  244. <artifactId>json-lib</artifactId>
  245. <version>2.4</version>
  246. <classifier>jdk15</classifier>
  247. </dependency>
  248. </dependencies>
  249. </dependencyManagement>
  250. <build>
  251. <!-- 插件配置 -->
  252. <pluginManagement>
  253. <plugins>
  254. <!-- compiler插件, 设定JDK版本 -->
  255. <plugin>
  256. <groupId>org.apache.maven.plugins</groupId>
  257. <artifactId>maven-compiler-plugin</artifactId>
  258. <version>3.0</version>
  259. <configuration>
  260. <source>${jdk.version}</source>
  261. <target>${jdk.version}</target>
  262. <showWarnings>true</showWarnings>
  263. </configuration>
  264. </plugin>
  265. <!-- test插件, 增大内存且仅测试名称为*Test的类 -->
  266. <plugin>
  267. <groupId>org.apache.maven.plugins</groupId>
  268. <artifactId>maven-surefire-plugin</artifactId>
  269. <version>2.12.4</version>
  270. <configuration>
  271. <includes>
  272. <include>**/*Test.java</include>
  273. </includes>
  274. </configuration>
  275. </plugin>
  276. <plugin>
  277. <groupId>org.apache.maven.plugins</groupId>
  278. <artifactId>maven-failsafe-plugin</artifactId>
  279. <version>2.12</version>
  280. <executions>
  281. <execution>
  282. <id>integration-test</id>
  283. <goals>
  284. <goal>integration-test</goal>
  285. </goals>
  286. </execution>
  287. </executions>
  288. </plugin>
  289. <!-- cobertura插件 -->
  290. <plugin>
  291. <groupId>org.codehaus.mojo</groupId>
  292. <artifactId>cobertura-maven-plugin</artifactId>
  293. <version>2.5.1</version>
  294. </plugin>
  295. <!-- war插件, 设定war名称不带版本号 -->
  296. <plugin>
  297. <groupId>org.apache.maven.plugins</groupId>
  298. <artifactId>maven-war-plugin</artifactId>
  299. <version>2.2</version>
  300. <configuration>
  301. <warName>${project.artifactId}</warName>
  302. </configuration>
  303. </plugin>
  304. <!-- resource插件, 设定编码 -->
  305. <plugin>
  306. <groupId>org.apache.maven.plugins</groupId>
  307. <artifactId>maven-resources-plugin</artifactId>
  308. <version>2.5</version>
  309. <configuration>
  310. <encoding>${project.build.sourceEncoding}</encoding>
  311. </configuration>
  312. </plugin>
  313. <!-- jar相关插件 -->
  314. <plugin>
  315. <groupId>org.apache.maven.plugins</groupId>
  316. <artifactId>maven-jar-plugin</artifactId>
  317. <version>2.4</version>
  318. <configuration>
  319. <archive>
  320. <manifest>
  321. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  322. <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
  323. </manifest>
  324. </archive>
  325. <outputDirectory>${war.lib}</outputDirectory>
  326. </configuration>
  327. </plugin>
  328. <!-- clean插件 -->
  329. <plugin>
  330. <groupId>org.apache.maven.plugins</groupId>
  331. <artifactId>maven-clean-plugin</artifactId>
  332. <version>2.4.1</version>
  333. </plugin>
  334. <!-- install插件 -->
  335. <plugin>
  336. <groupId>org.apache.maven.plugins</groupId>
  337. <artifactId>maven-install-plugin</artifactId>
  338. <version>2.3.1</version>
  339. </plugin>
  340. <!-- eclipse插件,设定下载Source并屏蔽.svn文件 -->
  341. <plugin>
  342. <groupId>org.apache.maven.plugins</groupId>
  343. <artifactId>maven-eclipse-plugin</artifactId>
  344. <version>2.9</version>
  345. <configuration>
  346. <sourceExcludes>
  347. <sourceExclude>**/.svn/</sourceExclude>
  348. </sourceExcludes>
  349. <downloadSources>true</downloadSources>
  350. <downloadJavadocs>false</downloadJavadocs>
  351. </configuration>
  352. </plugin>
  353. <!-- jetty插件,设定重载模式 -->
  354. <plugin>
  355. <groupId>org.mortbay.jetty</groupId>
  356. <artifactId>jetty-maven-plugin</artifactId>
  357. <version>${jetty.version}</version>
  358. <configuration>
  359. <reload>manual</reload>
  360. </configuration>
  361. </plugin>
  362. <!-- dependency插件 -->
  363. <plugin>
  364. <groupId>org.apache.maven.plugins</groupId>
  365. <artifactId>maven-dependency-plugin</artifactId>
  366. <version>2.6</version>
  367. </plugin>
  368. <plugin>
  369. <groupId>org.codehaus.mojo</groupId>
  370. <artifactId>versions-maven-plugin</artifactId>
  371. <version>1.2</version>
  372. </plugin>
  373. <!-- ant插件 -->
  374. <plugin>
  375. <groupId>org.apache.maven.plugins</groupId>
  376. <artifactId>maven-antrun-plugin</artifactId>
  377. <version>1.7</version>
  378. </plugin>
  379. <!-- assembly插件 -->
  380. <plugin>
  381. <groupId>org.apache.maven.plugins</groupId>
  382. <artifactId>maven-assembly-plugin</artifactId>
  383. <version>2.4</version>
  384. </plugin>
  385. <!-- source attach plugin -->
  386. <plugin>
  387. <groupId>org.apache.maven.plugins</groupId>
  388. <artifactId>maven-source-plugin</artifactId>
  389. <version>2.1.2</version>
  390. <executions>
  391. <execution>
  392. <id>attach-sources</id>
  393. <goals>
  394. <goal>jar</goal>
  395. </goals>
  396. </execution>
  397. </executions>
  398. </plugin>
  399. <plugin>
  400. <groupId>org.apache.tomcat.maven</groupId>
  401. <artifactId>tomcat6-maven-plugin</artifactId>
  402. <version>2.0-beta-1</version>
  403. </plugin>
  404. <plugin>
  405. <groupId>org.apache.tomcat.maven</groupId>
  406. <artifactId>tomcat7-maven-plugin</artifactId>
  407. <version>2.0-beta-1</version>
  408. </plugin>
  409. <plugin>
  410. <groupId>org.apache.maven.plugins</groupId>
  411. <artifactId>maven-javadoc-plugin</artifactId>
  412. <version>2.8.1</version>
  413. <configuration>
  414. <aggregate>true</aggregate>
  415. <charset>UTF-8</charset>
  416. <encoding>UTF-8</encoding>
  417. <docencoding>UTF-8</docencoding>
  418. </configuration>
  419. <executions>
  420. <execution>
  421. <id>attach-javadocs</id>
  422. <goals>
  423. <goal>jar</goal>
  424. </goals>
  425. </execution>
  426. </executions>
  427. </plugin>
  428. </plugins>
  429. </pluginManagement>
  430. </build>
  431. <distributionManagement>
  432. <repository>
  433. <id>xt-repository-snapshots</id>
  434. <name>xt Repository Snapshots</name>
  435. <url>http://192.168.57.74:8081/nexus/content/repositories/xt-repository-snapshots/</url>
  436. </repository>
  437. </distributionManagement>
  438. </project>