pom.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452
  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/maven-v4_0_0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>cn.vbdsm</groupId>
  5. <artifactId>vbdsm-base</artifactId>
  6. <version>2.0.0</version>
  7. <distributionManagement>
  8. <repository>
  9. <id>vbpdsm-releases</id>
  10. <name>Releases</name>
  11. <url>http://shvber.com:8881/repository/vbpdsm-releases/</url>
  12. </repository>
  13. <snapshotRepository>
  14. <id>vbpdsm-snapshots</id>
  15. <name>Snapshot</name>
  16. <url>http://shvber.com:8881/repository/vbpdsm-snapshots/</url>
  17. </snapshotRepository>
  18. </distributionManagement>
  19. <repositories>
  20. <repository>
  21. <id>vbpdsm</id>
  22. <name>vbpdsm Repository</name>
  23. <url>http://shvber.com:8881/repository/vbpdsm/</url>
  24. <releases>
  25. <enabled>true</enabled>
  26. </releases>
  27. <snapshots>
  28. <enabled>true</enabled>
  29. </snapshots>
  30. </repository>
  31. </repositories>
  32. <profiles>
  33. <profile>
  34. <id>local</id>
  35. <activation>
  36. <activeByDefault>false</activeByDefault>
  37. </activation>
  38. <properties>
  39. <package.environment>local</package.environment>
  40. </properties>
  41. </profile>
  42. <profile>
  43. <id>test</id>
  44. <activation>
  45. <activeByDefault>true</activeByDefault>
  46. </activation>
  47. <properties>
  48. <package.environment>test</package.environment>
  49. </properties>
  50. </profile>
  51. <profile>
  52. <id>product</id>
  53. <activation>
  54. <activeByDefault>false</activeByDefault>
  55. </activation>
  56. <properties>
  57. <package.environment>product</package.environment>
  58. </properties>
  59. </profile>
  60. </profiles>
  61. <properties>
  62. <!-- dependency versions -->
  63. <spring.version>3.2.6.RELEASE</spring.version>
  64. <core.common.version>1.0</core.common.version>
  65. <servlet.api.version>2.4</servlet.api.version>
  66. <shiro.version>1.2.2</shiro.version>
  67. <jedis.version>2.6.0</jedis.version>
  68. </properties>
  69. <dependencies>
  70. <!-- spring framework start -->
  71. <dependency>
  72. <groupId>org.springframework</groupId>
  73. <artifactId>spring-core</artifactId>
  74. <version>${spring.version}</version>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.springframework</groupId>
  78. <artifactId>spring-beans</artifactId>
  79. <version>${spring.version}</version>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.springframework</groupId>
  83. <artifactId>spring-aop</artifactId>
  84. <version>${spring.version}</version>
  85. </dependency>
  86. <!-- <dependency>
  87. <groupId>org.springframework</groupId>
  88. <artifactId>spring-asm</artifactId>
  89. <version>${spring.version}</version>
  90. </dependency> -->
  91. <dependency>
  92. <groupId>org.springframework</groupId>
  93. <artifactId>spring-context</artifactId>
  94. <version>${spring.version}</version>
  95. </dependency>
  96. <dependency>
  97. <groupId>org.springframework</groupId>
  98. <artifactId>spring-context-support</artifactId>
  99. <version>${spring.version}</version>
  100. </dependency>
  101. <dependency>
  102. <groupId>org.springframework</groupId>
  103. <artifactId>spring-expression</artifactId>
  104. <version>${spring.version}</version>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.springframework</groupId>
  108. <artifactId>spring-jdbc</artifactId>
  109. <version>${spring.version}</version>
  110. </dependency>
  111. <dependency>
  112. <groupId>org.springframework</groupId>
  113. <artifactId>spring-tx</artifactId>
  114. <version>${spring.version}</version>
  115. </dependency>
  116. <dependency>
  117. <groupId>org.springframework</groupId>
  118. <artifactId>spring-web</artifactId>
  119. <version>${spring.version}</version>
  120. </dependency>
  121. <dependency>
  122. <groupId>org.springframework</groupId>
  123. <artifactId>spring-webmvc</artifactId>
  124. <version>${spring.version}</version>
  125. </dependency>
  126. <dependency>
  127. <groupId>org.springframework</groupId>
  128. <artifactId>spring-test</artifactId>
  129. <version>${spring.version}</version>
  130. <scope>test</scope>
  131. </dependency>
  132. <!-- spring framework end -->
  133. <dependency>
  134. <groupId>redis.clients</groupId>
  135. <artifactId>jedis</artifactId>
  136. <version>${jedis.version}</version>
  137. </dependency>
  138. <!-- shiro framework start -->
  139. <!-- <dependency>
  140. <groupId>org.apache.shiro</groupId>
  141. <artifactId>shiro-core</artifactId>
  142. <version>${shiro.version}</version>
  143. </dependency>
  144. <dependency>
  145. <groupId>org.apache.shiro</groupId>
  146. <artifactId>shiro-web</artifactId>
  147. <version>${shiro.version}</version>
  148. </dependency>
  149. <dependency>
  150. <groupId>org.apache.shiro</groupId>
  151. <artifactId>shiro-cas</artifactId>
  152. <version>${shiro.version}</version>
  153. </dependency>
  154. <dependency>
  155. <groupId>org.apache.shiro</groupId>
  156. <artifactId>shiro-spring</artifactId>
  157. <version>${shiro.version}</version>
  158. </dependency>
  159. <dependency>
  160. <groupId>org.apache.shiro</groupId>
  161. <artifactId>shiro-quartz</artifactId>
  162. <version>${shiro.version}</version>
  163. </dependency>
  164. <dependency>
  165. <groupId>org.crazycake</groupId>
  166. <artifactId>shiro-redis</artifactId>
  167. <version>2.4.2.1-RELEASE</version>
  168. </dependency> -->
  169. <!-- shiro framework end -->
  170. <!-- framework core start -->
  171. <dependency>
  172. <groupId>javax.core.common</groupId>
  173. <artifactId>core-common</artifactId>
  174. <version>${core.common.version}</version>
  175. </dependency>
  176. <dependency>
  177. <groupId>javax.core.common</groupId>
  178. <artifactId>core-common-encrypt</artifactId>
  179. <version>${core.common.version}</version>
  180. </dependency>
  181. <dependency>
  182. <groupId>javax.core.common</groupId>
  183. <artifactId>core-common-utils</artifactId>
  184. <version>${core.common.version}</version>
  185. </dependency>
  186. <dependency>
  187. <groupId>javax.core.common</groupId>
  188. <artifactId>core-common-jdbc</artifactId>
  189. <version>1.4</version>
  190. </dependency>
  191. <dependency>
  192. <groupId>javax.core.common</groupId>
  193. <artifactId>core-common-redis</artifactId>
  194. <version>${core.common.version}</version>
  195. </dependency>
  196. <!-- framework core end -->
  197. <!-- requied start -->
  198. <dependency>
  199. <groupId>aopalliance</groupId>
  200. <artifactId>aopalliance</artifactId>
  201. <version>1.0</version>
  202. </dependency>
  203. <dependency>
  204. <groupId>org.aspectj</groupId>
  205. <artifactId>aspectjweaver</artifactId>
  206. <version>1.6.2</version>
  207. </dependency>
  208. <dependency>
  209. <groupId>cglib</groupId>
  210. <artifactId>cglib-nodep</artifactId>
  211. <version>3.1</version>
  212. </dependency>
  213. <dependency>
  214. <groupId>javax.servlet</groupId>
  215. <artifactId>servlet-api</artifactId>
  216. <version>${servlet.api.version}</version>
  217. <scope>provided</scope>
  218. </dependency>
  219. <!-- requied end -->
  220. <!-- apache commons start -->
  221. <dependency>
  222. <groupId>commons-beanutils</groupId>
  223. <artifactId>commons-beanutils</artifactId>
  224. <version>1.8.3</version>
  225. </dependency>
  226. <dependency>
  227. <groupId>commons-collections</groupId>
  228. <artifactId>commons-collections</artifactId>
  229. <version>3.2.1</version>
  230. </dependency>
  231. <dependency>
  232. <groupId>commons-fileupload</groupId>
  233. <artifactId>commons-fileupload</artifactId>
  234. <version>1.3</version>
  235. </dependency>
  236. <dependency>
  237. <groupId>commons-io</groupId>
  238. <artifactId>commons-io</artifactId>
  239. <version>2.4</version>
  240. </dependency>
  241. <dependency>
  242. <groupId>commons-lang</groupId>
  243. <artifactId>commons-lang</artifactId>
  244. <version>2.6</version>
  245. </dependency>
  246. <dependency>
  247. <groupId>commons-logging</groupId>
  248. <artifactId>commons-logging</artifactId>
  249. <version>1.2</version>
  250. </dependency>
  251. <!-- apache commons end -->
  252. <!-- jdbc driver start -->
  253. <dependency>
  254. <groupId>mysql</groupId>
  255. <artifactId>mysql-connector-java</artifactId>
  256. <version>8.0.11</version>
  257. </dependency>
  258. <!-- jdbc driver end -->
  259. <!-- others start -->
  260. <dependency>
  261. <groupId>log4j</groupId>
  262. <artifactId>log4j</artifactId>
  263. <version>1.2.17</version>
  264. </dependency>
  265. <dependency>
  266. <groupId>javax.persistence</groupId>
  267. <artifactId>persistence-api</artifactId>
  268. <version>1.0</version>
  269. </dependency>
  270. <dependency>
  271. <groupId>org.apache.poi</groupId>
  272. <artifactId>poi</artifactId>
  273. <version>3.6</version>
  274. </dependency>
  275. <dependency>
  276. <groupId>com.alibaba</groupId>
  277. <artifactId>fastjson</artifactId>
  278. <version>1.2.4</version>
  279. </dependency>
  280. <dependency>
  281. <groupId>junit</groupId>
  282. <artifactId>junit</artifactId>
  283. <version>4.8.1</version>
  284. </dependency>
  285. <dependency>
  286. <groupId>com.alibaba</groupId>
  287. <artifactId>druid</artifactId>
  288. <version>1.0.9</version>
  289. </dependency>
  290. <!-- others end -->
  291. <dependency>
  292. <groupId>cn.vbdsm</groupId>
  293. <artifactId>vbdsm-api</artifactId>
  294. <version>2.0.0</version>
  295. </dependency>
  296. <dependency>
  297. <groupId>javax.core.common</groupId>
  298. <artifactId>core-common-doc</artifactId>
  299. <version>1.0</version>
  300. </dependency>
  301. <dependency>
  302. <groupId>org.jsoup</groupId>
  303. <artifactId>jsoup</artifactId>
  304. <version>1.9.2</version>
  305. </dependency>
  306. <!-- add by zhouzhengdong at 2015-09-16 httpclient start -->
  307. <dependency>
  308. <groupId>org.apache.httpcomponents</groupId>
  309. <artifactId>httpclient</artifactId>
  310. <version>4.3.5</version>
  311. </dependency>
  312. <dependency>
  313. <groupId>org.apache.httpcomponents</groupId>
  314. <artifactId>httpmime</artifactId>
  315. <version>4.2.1</version>
  316. </dependency>
  317. <!-- add by zhouzhengdong at 2015-09-16 httpclient end -->
  318. <!-- add by zhouzhengdong at 2015-09-16 jackson start -->
  319. <dependency>
  320. <groupId>com.fasterxml.jackson.core</groupId>
  321. <artifactId>jackson-core</artifactId>
  322. <version>2.6.1</version>
  323. </dependency>
  324. <dependency>
  325. <groupId>com.fasterxml.jackson.core</groupId>
  326. <artifactId>jackson-databind</artifactId>
  327. <version>2.6.1</version>
  328. </dependency>
  329. <dependency>
  330. <groupId>com.fasterxml.jackson.module</groupId>
  331. <artifactId>jackson-module-jaxb-annotations</artifactId>
  332. <version>2.6.1</version>
  333. </dependency>
  334. <!-- joda for jackson -->
  335. <dependency>
  336. <groupId>com.fasterxml.jackson.datatype</groupId>
  337. <artifactId>jackson-datatype-joda</artifactId>
  338. <version>2.6.1</version>
  339. </dependency>
  340. <dependency>
  341. <groupId>com.fasterxml.jackson.jaxrs</groupId>
  342. <artifactId>jackson-jaxrs-json-provider</artifactId>
  343. <version>2.6.1</version>
  344. </dependency>
  345. <!-- add by zhouzhengdong at 2015-09-16 jackson end -->
  346. <!-- add by zhouzhengdong at 2015-09-16 commons-lang3 start -->
  347. <dependency>
  348. <groupId>org.apache.commons</groupId>
  349. <artifactId>commons-lang3</artifactId>
  350. <version>3.3.2</version>
  351. </dependency>
  352. <!-- add by zhouzhengdong at 2015-09-16 commons-lang3 end -->
  353. </dependencies>
  354. <build>
  355. <finalName>${artifactId}</finalName>
  356. <plugins>
  357. <plugin>
  358. <artifactId>maven-compiler-plugin</artifactId>
  359. <version>2.3.2</version>
  360. <configuration>
  361. <source>1.6</source>
  362. <target>1.6</target>
  363. <encoding>UTF-8</encoding>
  364. </configuration>
  365. </plugin>
  366. <plugin>
  367. <artifactId>maven-resources-plugin</artifactId>
  368. <version>2.5</version>
  369. <executions>
  370. <execution>
  371. <id>copy-resources</id>
  372. <!-- here the phase you need -->
  373. <phase>validate</phase>
  374. <goals>
  375. <goal>copy-resources</goal>
  376. </goals>
  377. <configuration>
  378. <encoding>UTF-8</encoding>
  379. <outputDirectory>${basedir}/target/classes</outputDirectory>
  380. <resources>
  381. <resource>
  382. <directory>src/main/resources/${package.environment}</directory>
  383. <includes>
  384. <include>**/*.*</include>
  385. </includes>
  386. <filtering>true</filtering>
  387. </resource>
  388. </resources>
  389. </configuration>
  390. </execution>
  391. </executions>
  392. </plugin>
  393. <plugin>
  394. <artifactId>maven-assembly-plugin</artifactId>
  395. <version>2.2-beta-2</version>
  396. <configuration>
  397. <finalName>${project.artifactId}</finalName>
  398. <descriptors>
  399. <descriptor>src/main/assembly/distribution.xml</descriptor>
  400. </descriptors>
  401. </configuration>
  402. <executions>
  403. <execution>
  404. <id>make-assembly</id>
  405. <phase>package</phase>
  406. <goals>
  407. <goal>single</goal>
  408. </goals>
  409. </execution>
  410. </executions>
  411. </plugin>
  412. <plugin>
  413. <groupId>org.apache.maven.plugins</groupId>
  414. <artifactId>maven-source-plugin</artifactId>
  415. <executions>
  416. <execution>
  417. <goals>
  418. <goal>jar</goal>
  419. </goals>
  420. </execution>
  421. </executions>
  422. </plugin>
  423. </plugins>
  424. </build>
  425. </project>