pom.xml 15 KB

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