pom.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425
  1. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
  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>cn.vbdsm</groupId>
  5. <artifactId>vbdsm-gov</artifactId>
  6. <version>2.0.0</version>
  7. <packaging>war</packaging>
  8. <distributionManagement>
  9. <repository>
  10. <id>vbpdsm-releases</id>
  11. <name>Internal Releases</name>
  12. <url>http://shvber.com:8881/repository/vbpdsm-releases</url>
  13. </repository>
  14. <snapshotRepository>
  15. <id>vbpdsm-snapshots</id>
  16. <name>Internal Snapshots</name>
  17. <url>http://shvber.com:8881/repository/vbpdsm-snapshots</url>
  18. </snapshotRepository>
  19. </distributionManagement>
  20. <repositories>
  21. <repository>
  22. <id>vbpdsm</id>
  23. <name>vbpdsm Repository</name>
  24. <url>http://shvber.com:8881/repository/vbpdsm/</url>
  25. <snapshots>
  26. <enabled>true</enabled>
  27. </snapshots>
  28. </repository>
  29. </repositories>
  30. <profiles>
  31. <profile>
  32. <id>local</id>
  33. <activation>
  34. <activeByDefault>false</activeByDefault>
  35. </activation>
  36. <properties>
  37. <package.environment>local</package.environment>
  38. </properties>
  39. </profile>
  40. <profile>
  41. <id>test</id>
  42. <activation>
  43. <activeByDefault>true</activeByDefault>
  44. </activation>
  45. <properties>
  46. <package.environment>test</package.environment>
  47. </properties>
  48. </profile>
  49. <profile>
  50. <id>product</id>
  51. <activation>
  52. <activeByDefault>false</activeByDefault>
  53. </activation>
  54. <properties>
  55. <package.environment>product</package.environment>
  56. </properties>
  57. </profile>
  58. </profiles>
  59. <properties>
  60. <!-- dependency versions -->
  61. <spring.version>3.2.6.RELEASE</spring.version>
  62. <core.common.version>1.0</core.common.version>
  63. <servlet.api.version>2.4</servlet.api.version>
  64. <shiro.version>1.2.2</shiro.version>
  65. </properties>
  66. <dependencies>
  67. <!-- spring framework start -->
  68. <dependency>
  69. <groupId>org.springframework</groupId>
  70. <artifactId>spring-core</artifactId>
  71. <version>${spring.version}</version>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.springframework</groupId>
  75. <artifactId>spring-beans</artifactId>
  76. <version>${spring.version}</version>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.springframework</groupId>
  80. <artifactId>spring-aop</artifactId>
  81. <version>${spring.version}</version>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.springframework</groupId>
  85. <artifactId>spring-context</artifactId>
  86. <version>${spring.version}</version>
  87. </dependency>
  88. <dependency>
  89. <groupId>org.springframework</groupId>
  90. <artifactId>spring-context-support</artifactId>
  91. <version>${spring.version}</version>
  92. </dependency>
  93. <dependency>
  94. <groupId>org.springframework</groupId>
  95. <artifactId>spring-expression</artifactId>
  96. <version>${spring.version}</version>
  97. </dependency>
  98. <dependency>
  99. <groupId>org.springframework</groupId>
  100. <artifactId>spring-jdbc</artifactId>
  101. <version>${spring.version}</version>
  102. </dependency>
  103. <dependency>
  104. <groupId>org.springframework</groupId>
  105. <artifactId>spring-tx</artifactId>
  106. <version>${spring.version}</version>
  107. </dependency>
  108. <dependency>
  109. <groupId>org.springframework</groupId>
  110. <artifactId>spring-web</artifactId>
  111. <version>${spring.version}</version>
  112. </dependency>
  113. <dependency>
  114. <groupId>org.springframework</groupId>
  115. <artifactId>spring-webmvc</artifactId>
  116. <version>${spring.version}</version>
  117. </dependency>
  118. <dependency>
  119. <groupId>org.springframework</groupId>
  120. <artifactId>spring-test</artifactId>
  121. <version>${spring.version}</version>
  122. <scope>test</scope>
  123. </dependency>
  124. <!-- spring framework end -->
  125. <!-- requied start -->
  126. <dependency>
  127. <groupId>aopalliance</groupId>
  128. <artifactId>aopalliance</artifactId>
  129. <version>1.0</version>
  130. </dependency>
  131. <dependency>
  132. <groupId>org.aspectj</groupId>
  133. <artifactId>aspectjweaver</artifactId>
  134. <version>1.6.2</version>
  135. </dependency>
  136. <dependency>
  137. <groupId>cglib</groupId>
  138. <artifactId>cglib-nodep</artifactId>
  139. <version>3.1</version>
  140. </dependency>
  141. <dependency>
  142. <groupId>javax.servlet</groupId>
  143. <artifactId>servlet-api</artifactId>
  144. <version>${servlet.api.version}</version>
  145. <scope>provided</scope>
  146. </dependency>
  147. <!-- requied end -->
  148. <!-- apache commons start -->
  149. <dependency>
  150. <groupId>commons-beanutils</groupId>
  151. <artifactId>commons-beanutils</artifactId>
  152. <version>1.8.3</version>
  153. </dependency>
  154. <dependency>
  155. <groupId>commons-collections</groupId>
  156. <artifactId>commons-collections</artifactId>
  157. <version>3.2.1</version>
  158. </dependency>
  159. <dependency>
  160. <groupId>commons-fileupload</groupId>
  161. <artifactId>commons-fileupload</artifactId>
  162. <version>1.3</version>
  163. </dependency>
  164. <dependency>
  165. <groupId>commons-io</groupId>
  166. <artifactId>commons-io</artifactId>
  167. <version>2.4</version>
  168. </dependency>
  169. <dependency>
  170. <groupId>commons-lang</groupId>
  171. <artifactId>commons-lang</artifactId>
  172. <version>2.6</version>
  173. </dependency>
  174. <dependency>
  175. <groupId>commons-logging</groupId>
  176. <artifactId>commons-logging</artifactId>
  177. <version>1.2</version>
  178. </dependency>
  179. <!-- apache commons end -->
  180. <!-- jdbc driver start -->
  181. <dependency>
  182. <groupId>mysql</groupId>
  183. <artifactId>mysql-connector-java</artifactId>
  184. <version>8.0.11</version>
  185. </dependency>
  186. <dependency>
  187. <groupId>ojdbc</groupId>
  188. <artifactId>ojdbc</artifactId>
  189. <version>14</version>
  190. </dependency>
  191. <dependency>
  192. <groupId>oracle</groupId>
  193. <artifactId>oraclejdbc</artifactId>
  194. <version>11</version>
  195. </dependency>
  196. <!-- jdbc driver end -->
  197. <!-- others start -->
  198. <dependency>
  199. <groupId>log4j</groupId>
  200. <artifactId>log4j</artifactId>
  201. <version>1.2.17</version>
  202. </dependency>
  203. <dependency>
  204. <groupId>javax.persistence</groupId>
  205. <artifactId>persistence-api</artifactId>
  206. <version>1.0</version>
  207. </dependency>
  208. <dependency>
  209. <groupId>org.apache.poi</groupId>
  210. <artifactId>poi</artifactId>
  211. <version>3.6</version>
  212. </dependency>
  213. <dependency>
  214. <groupId>com.alibaba</groupId>
  215. <artifactId>fastjson</artifactId>
  216. <version>1.1.33</version>
  217. </dependency>
  218. <dependency>
  219. <groupId>junit</groupId>
  220. <artifactId>junit</artifactId>
  221. <version>4.8.1</version>
  222. </dependency>
  223. <dependency>
  224. <groupId>com.alibaba</groupId>
  225. <artifactId>druid</artifactId>
  226. <version>1.0.9</version>
  227. </dependency>
  228. <!-- others end -->
  229. <!-- vbdsm jars start -->
  230. <dependency>
  231. <groupId>cn.vbdsm</groupId>
  232. <artifactId>vbdsm-base</artifactId>
  233. <version>2.0.0</version>
  234. </dependency>
  235. <!-- vbdsm jars end -->
  236. <!-- quartz requied start -->
  237. <dependency>
  238. <groupId>org.quartz-scheduler</groupId>
  239. <artifactId>quartz</artifactId>
  240. <version>1.8.6</version>
  241. </dependency>
  242. <!-- quartz requied end -->
  243. </dependencies>
  244. <build>
  245. <finalName>ROOT</finalName>
  246. <resources>
  247. <resource>
  248. <directory>${basedir}/src/main/resources</directory>
  249. <includes>
  250. <include>**/*</include>
  251. </includes>
  252. </resource>
  253. <resource>
  254. <directory>${basedir}/src/main/java</directory>
  255. <excludes>
  256. <exclude>**/*.java</exclude>
  257. <exclude>**/*.class</exclude>
  258. </excludes>
  259. </resource>
  260. </resources>
  261. <plugins>
  262. <plugin>
  263. <artifactId>maven-compiler-plugin</artifactId>
  264. <version>2.3.2</version>
  265. <configuration>
  266. <source>1.6</source>
  267. <target>1.6</target>
  268. <encoding>UTF-8</encoding>
  269. </configuration>
  270. </plugin>
  271. <plugin>
  272. <artifactId>maven-resources-plugin</artifactId>
  273. <version>2.5</version>
  274. <executions>
  275. <execution>
  276. <id>copy-resources</id>
  277. <!-- here the phase you need -->
  278. <phase>validate</phase>
  279. <goals>
  280. <goal>copy-resources</goal>
  281. </goals>
  282. <configuration>
  283. <encoding>UTF-8</encoding>
  284. <outputDirectory>${basedir}/target/classes</outputDirectory>
  285. <resources>
  286. <resource>
  287. <directory>src/main/resources/${package.environment}</directory>
  288. <includes>
  289. <include>**/*.*</include>
  290. </includes>
  291. <filtering>true</filtering>
  292. </resource>
  293. </resources>
  294. </configuration>
  295. </execution>
  296. </executions>
  297. </plugin>
  298. <plugin>
  299. <groupId>org.mortbay.jetty</groupId>
  300. <artifactId>maven-jetty-plugin</artifactId>
  301. <version>6.1.26</version>
  302. <configuration>
  303. <webDefaultXml>src/main/resources/webdefault.xml</webDefaultXml>
  304. <contextPath>/</contextPath>
  305. <connectors>
  306. <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
  307. <port>8084</port>
  308. </connector>
  309. </connectors>
  310. <scanIntervalSeconds>0</scanIntervalSeconds>
  311. <scanTargetPatterns>
  312. <scanTargetPattern>
  313. <directory>src/main/webapp</directory>
  314. <includes>
  315. <include>**/*.xml</include>
  316. <include>**/*.properties</include>
  317. </includes>
  318. </scanTargetPattern>
  319. </scanTargetPatterns>
  320. <systemProperties>
  321. <systemProperty>
  322. <name>
  323. javax.xml.parsers.DocumentBuilderFactory
  324. </name>
  325. <value>
  326. com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
  327. </value>
  328. </systemProperty>
  329. <systemProperty>
  330. <name>
  331. javax.xml.parsers.SAXParserFactory
  332. </name>
  333. <value>
  334. com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
  335. </value>
  336. </systemProperty>
  337. <systemProperty>
  338. <name>
  339. javax.xml.transform.TransformerFactory
  340. </name>
  341. <value>
  342. com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
  343. </value>
  344. </systemProperty>
  345. <systemProperty>
  346. <name>org.eclipse.jetty.util.URI.charset</name>
  347. <value>UTF-8</value>
  348. </systemProperty>
  349. </systemProperties>
  350. </configuration>
  351. </plugin>
  352. <plugin>
  353. <groupId>org.apache.maven.plugins</groupId>
  354. <artifactId>maven-war-plugin</artifactId>
  355. <version>2.2</version>
  356. <configuration>
  357. <archive>
  358. <addMavenDescriptor>false</addMavenDescriptor>
  359. </archive>
  360. <webResources>
  361. <resource>
  362. <!-- this is relative to the pom.xml directory -->
  363. <directory>src/main/resources/</directory>
  364. <targetPath>WEB-INF/classes</targetPath>
  365. <includes>
  366. <include>**/*.*</include>
  367. </includes>
  368. <!-- <excludes>
  369. <exclude>**/local</exclude>
  370. <exclude>**/test</exclude>
  371. <exclude>**/product</exclude>
  372. <exclude>**/vbdsm</exclude>
  373. </excludes> -->
  374. <filtering>true</filtering>
  375. </resource>
  376. <resource>
  377. <!-- this is relative to the pom.xml directory -->
  378. <directory>src/main/resources/${package.environment}</directory>
  379. <targetPath>WEB-INF/classes</targetPath>
  380. <filtering>true</filtering>
  381. </resource>
  382. </webResources>
  383. </configuration>
  384. </plugin>
  385. <plugin>
  386. <groupId>org.zeroturnaround</groupId>
  387. <artifactId>javarebel-maven-plugin</artifactId>
  388. <executions>
  389. <execution>
  390. <id>generate-rebel-xml</id>
  391. <phase>process-resources</phase>
  392. <goals>
  393. <goal>generate</goal>
  394. </goals>
  395. </execution>
  396. </executions>
  397. <version>1.0.5</version>
  398. </plugin>
  399. <!-- <plugin>-->
  400. <!-- <groupId>net.sf.ehcache</groupId>-->
  401. <!-- <artifactId>ehcache-core</artifactId>-->
  402. <!-- <version>2.6.8</version>-->
  403. <!-- </plugin>-->
  404. </plugins>
  405. </build>
  406. </project>