pom.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408
  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-manage</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. <jedis.version>2.6.0</jedis.version>
  66. </properties>
  67. <dependencies>
  68. <!-- spring framework start -->
  69. <dependency>
  70. <groupId>org.springframework</groupId>
  71. <artifactId>spring-core</artifactId>
  72. <version>${spring.version}</version>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.springframework</groupId>
  76. <artifactId>spring-beans</artifactId>
  77. <version>${spring.version}</version>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.springframework</groupId>
  81. <artifactId>spring-aop</artifactId>
  82. <version>${spring.version}</version>
  83. </dependency>
  84. <dependency>
  85. <groupId>org.springframework</groupId>
  86. <artifactId>spring-context</artifactId>
  87. <version>${spring.version}</version>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.springframework</groupId>
  91. <artifactId>spring-context-support</artifactId>
  92. <version>${spring.version}</version>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.springframework</groupId>
  96. <artifactId>spring-expression</artifactId>
  97. <version>${spring.version}</version>
  98. </dependency>
  99. <dependency>
  100. <groupId>org.springframework</groupId>
  101. <artifactId>spring-jdbc</artifactId>
  102. <version>${spring.version}</version>
  103. </dependency>
  104. <dependency>
  105. <groupId>org.springframework</groupId>
  106. <artifactId>spring-tx</artifactId>
  107. <version>${spring.version}</version>
  108. </dependency>
  109. <dependency>
  110. <groupId>org.springframework</groupId>
  111. <artifactId>spring-web</artifactId>
  112. <version>${spring.version}</version>
  113. </dependency>
  114. <dependency>
  115. <groupId>org.springframework</groupId>
  116. <artifactId>spring-webmvc</artifactId>
  117. <version>${spring.version}</version>
  118. </dependency>
  119. <dependency>
  120. <groupId>org.springframework</groupId>
  121. <artifactId>spring-test</artifactId>
  122. <version>${spring.version}</version>
  123. <scope>test</scope>
  124. </dependency>
  125. <!-- spring framework end -->
  126. <!-- requied start -->
  127. <dependency>
  128. <groupId>aopalliance</groupId>
  129. <artifactId>aopalliance</artifactId>
  130. <version>1.0</version>
  131. </dependency>
  132. <dependency>
  133. <groupId>org.aspectj</groupId>
  134. <artifactId>aspectjweaver</artifactId>
  135. <version>1.6.2</version>
  136. </dependency>
  137. <dependency>
  138. <groupId>cglib</groupId>
  139. <artifactId>cglib-nodep</artifactId>
  140. <version>3.1</version>
  141. </dependency>
  142. <dependency>
  143. <groupId>javax.servlet</groupId>
  144. <artifactId>servlet-api</artifactId>
  145. <version>${servlet.api.version}</version>
  146. <scope>provided</scope>
  147. </dependency>
  148. <!-- requied end -->
  149. <!-- apache commons start -->
  150. <dependency>
  151. <groupId>commons-beanutils</groupId>
  152. <artifactId>commons-beanutils</artifactId>
  153. <version>1.8.3</version>
  154. </dependency>
  155. <dependency>
  156. <groupId>commons-collections</groupId>
  157. <artifactId>commons-collections</artifactId>
  158. <version>3.2.1</version>
  159. </dependency>
  160. <dependency>
  161. <groupId>commons-fileupload</groupId>
  162. <artifactId>commons-fileupload</artifactId>
  163. <version>1.3</version>
  164. </dependency>
  165. <dependency>
  166. <groupId>commons-io</groupId>
  167. <artifactId>commons-io</artifactId>
  168. <version>2.4</version>
  169. </dependency>
  170. <dependency>
  171. <groupId>commons-lang</groupId>
  172. <artifactId>commons-lang</artifactId>
  173. <version>2.6</version>
  174. </dependency>
  175. <dependency>
  176. <groupId>commons-logging</groupId>
  177. <artifactId>commons-logging</artifactId>
  178. <version>1.2</version>
  179. </dependency>
  180. <!-- apache commons end -->
  181. <!-- jdbc driver start -->
  182. <dependency>
  183. <groupId>mysql</groupId>
  184. <artifactId>mysql-connector-java</artifactId>
  185. <version>8.0.11</version>
  186. </dependency>
  187. <!-- jdbc driver end -->
  188. <!-- others start -->
  189. <dependency>
  190. <groupId>log4j</groupId>
  191. <artifactId>log4j</artifactId>
  192. <version>1.2.17</version>
  193. </dependency>
  194. <dependency>
  195. <groupId>javax.persistence</groupId>
  196. <artifactId>persistence-api</artifactId>
  197. <version>1.0</version>
  198. </dependency>
  199. <dependency>
  200. <groupId>org.apache.poi</groupId>
  201. <artifactId>poi</artifactId>
  202. <version>3.6</version>
  203. </dependency>
  204. <dependency>
  205. <groupId>junit</groupId>
  206. <artifactId>junit</artifactId>
  207. <version>4.8.1</version>
  208. </dependency>
  209. <dependency>
  210. <groupId>com.alibaba</groupId>
  211. <artifactId>druid</artifactId>
  212. <version>1.0.9</version>
  213. </dependency>
  214. <!-- others end -->
  215. <!-- vbdsm jars start -->
  216. <dependency>
  217. <groupId>cn.vbdsm</groupId>
  218. <artifactId>vbdsm-base</artifactId>
  219. <version>2.0.0</version>
  220. </dependency>
  221. <!-- vbdsm jars end -->
  222. </dependencies>
  223. <build>
  224. <finalName>ROOT</finalName>
  225. <resources>
  226. <resource>
  227. <directory>${basedir}/src/main/resources</directory>
  228. <includes>
  229. <include>**/*</include>
  230. </includes>
  231. </resource>
  232. <resource>
  233. <directory>${basedir}/src/main/java</directory>
  234. <excludes>
  235. <exclude>**/*.java</exclude>
  236. <exclude>**/*.class</exclude>
  237. </excludes>
  238. </resource>
  239. </resources>
  240. <plugins>
  241. <plugin>
  242. <artifactId>maven-compiler-plugin</artifactId>
  243. <version>2.3.2</version>
  244. <configuration>
  245. <source>1.6</source>
  246. <target>1.6</target>
  247. <encoding>UTF-8</encoding>
  248. </configuration>
  249. </plugin>
  250. <plugin>
  251. <artifactId>maven-resources-plugin</artifactId>
  252. <version>2.5</version>
  253. <executions>
  254. <execution>
  255. <id>copy-resources</id>
  256. <!-- here the phase you need -->
  257. <phase>validate</phase>
  258. <goals>
  259. <goal>copy-resources</goal>
  260. </goals>
  261. <configuration>
  262. <encoding>UTF-8</encoding>
  263. <outputDirectory>${basedir}/target/classes</outputDirectory>
  264. <resources>
  265. <resource>
  266. <directory>src/main/resources/${package.environment}</directory>
  267. <includes>
  268. <include>**/*.*</include>
  269. </includes>
  270. <filtering>true</filtering>
  271. </resource>
  272. </resources>
  273. </configuration>
  274. </execution>
  275. </executions>
  276. </plugin>
  277. <plugin>
  278. <groupId>org.mortbay.jetty</groupId>
  279. <artifactId>maven-jetty-plugin</artifactId>
  280. <version>6.1.26</version>
  281. <configuration>
  282. <webDefaultXml>src/main/resources/webdefault.xml</webDefaultXml>
  283. <contextPath>/</contextPath>
  284. <connectors>
  285. <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
  286. <port>8082</port>
  287. </connector>
  288. </connectors>
  289. <scanIntervalSeconds>0</scanIntervalSeconds>
  290. <scanTargetPatterns>
  291. <scanTargetPattern>
  292. <directory>src/main/webapp</directory>
  293. <includes>
  294. <include>**/*.xml</include>
  295. <include>**/*.properties</include>
  296. </includes>
  297. </scanTargetPattern>
  298. </scanTargetPatterns>
  299. <systemProperties>
  300. <systemProperty>
  301. <name>
  302. javax.xml.parsers.DocumentBuilderFactory
  303. </name>
  304. <value>
  305. com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
  306. </value>
  307. </systemProperty>
  308. <systemProperty>
  309. <name>
  310. javax.xml.parsers.SAXParserFactory
  311. </name>
  312. <value>
  313. com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
  314. </value>
  315. </systemProperty>
  316. <systemProperty>
  317. <name>
  318. javax.xml.transform.TransformerFactory
  319. </name>
  320. <value>
  321. com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
  322. </value>
  323. </systemProperty>
  324. <systemProperty>
  325. <name>org.eclipse.jetty.util.URI.charset</name>
  326. <value>UTF-8</value>
  327. </systemProperty>
  328. </systemProperties>
  329. </configuration>
  330. </plugin>
  331. <plugin>
  332. <groupId>org.apache.maven.plugins</groupId>
  333. <artifactId>maven-war-plugin</artifactId>
  334. <version>2.2</version>
  335. <configuration>
  336. <archive>
  337. <addMavenDescriptor>false</addMavenDescriptor>
  338. </archive>
  339. <webResources>
  340. <resource>
  341. <!-- this is relative to the pom.xml directory -->
  342. <directory>src/main/resources/</directory>
  343. <targetPath>WEB-INF/classes</targetPath>
  344. <includes>
  345. <include>**/*.*</include>
  346. </includes>
  347. <!-- <excludes>
  348. <exclude>**/local</exclude>
  349. <exclude>**/test</exclude>
  350. <exclude>**/product</exclude>
  351. <exclude>**/vbdsm</exclude>
  352. </excludes> -->
  353. <filtering>true</filtering>
  354. </resource>
  355. <resource>
  356. <!-- this is relative to the pom.xml directory -->
  357. <directory>src/main/resources/${package.environment}</directory>
  358. <targetPath>WEB-INF/classes</targetPath>
  359. <filtering>true</filtering>
  360. </resource>
  361. </webResources>
  362. </configuration>
  363. </plugin>
  364. <plugin>
  365. <groupId>org.zeroturnaround</groupId>
  366. <artifactId>javarebel-maven-plugin</artifactId>
  367. <executions>
  368. <execution>
  369. <id>generate-rebel-xml</id>
  370. <phase>process-resources</phase>
  371. <goals>
  372. <goal>generate</goal>
  373. </goals>
  374. </execution>
  375. </executions>
  376. <version>1.0.5</version>
  377. </plugin>
  378. <!-- <plugin>-->
  379. <!-- <groupId>net.sf.ehcache</groupId>-->
  380. <!-- <artifactId>ehcache-core</artifactId>-->
  381. <!-- <version>2.6.8</version>-->
  382. <!-- </plugin>-->
  383. </plugins>
  384. </build>
  385. </project>