pom.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423
  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. <dependency>
  212. <groupId>org.projectlombok</groupId>
  213. <artifactId>lombok</artifactId>
  214. <version>1.18.26</version>
  215. <scope>compile</scope>
  216. </dependency>
  217. </dependencies>
  218. <build>
  219. <finalName>ROOT</finalName>
  220. <resources>
  221. <resource>
  222. <directory>${basedir}/src/main/resources</directory>
  223. <includes>
  224. <include>**/*</include>
  225. </includes>
  226. </resource>
  227. <resource>
  228. <directory>${basedir}/src/main/java</directory>
  229. <excludes>
  230. <exclude>**/*.java</exclude>
  231. <exclude>**/*.class</exclude>
  232. </excludes>
  233. </resource>
  234. </resources>
  235. <plugins>
  236. <plugin>
  237. <artifactId>maven-compiler-plugin</artifactId>
  238. <version>2.3.2</version>
  239. <configuration>
  240. <source>1.6</source>
  241. <target>1.6</target>
  242. <encoding>UTF-8</encoding>
  243. </configuration>
  244. </plugin>
  245. <!-- cxf wsdl2java 插件 -->
  246. <plugin>
  247. <groupId>org.apache.cxf</groupId>
  248. <artifactId>cxf-codegen-plugin</artifactId>
  249. <version>2.7.1</version>
  250. <configuration>
  251. <sourceRoot>${basedir}/target/generated-sources/cxf</sourceRoot>
  252. <wsdlOptions>
  253. <wsdlOption>
  254. <wsdl>${basedir}/target/wsdl/accountservice.wsdl</wsdl>
  255. </wsdlOption>
  256. </wsdlOptions>
  257. </configuration>
  258. </plugin>
  259. <plugin>
  260. <artifactId>maven-resources-plugin</artifactId>
  261. <version>2.5</version>
  262. <executions>
  263. <execution>
  264. <id>copy-resources</id>
  265. <!-- here the phase you need -->
  266. <phase>validate</phase>
  267. <goals>
  268. <goal>copy-resources</goal>
  269. </goals>
  270. <configuration>
  271. <encoding>UTF-8</encoding>
  272. <outputDirectory>${basedir}/target/classes</outputDirectory>
  273. <resources>
  274. <resource>
  275. <directory>src/main/resources/${package.environment}</directory>
  276. <includes>
  277. <include>**/*.*</include>
  278. </includes>
  279. <filtering>true</filtering>
  280. </resource>
  281. </resources>
  282. </configuration>
  283. </execution>
  284. </executions>
  285. </plugin>
  286. <plugin>
  287. <groupId>org.mortbay.jetty</groupId>
  288. <artifactId>maven-jetty-plugin</artifactId>
  289. <version>6.1.26</version>
  290. <configuration>
  291. <webDefaultXml>src/main/resources/webdefault.xml</webDefaultXml>
  292. <contextPath>/</contextPath>
  293. <connectors>
  294. <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
  295. <port>9001</port>
  296. </connector>
  297. </connectors>
  298. <scanIntervalSeconds>0</scanIntervalSeconds>
  299. <scanTargetPatterns>
  300. <scanTargetPattern>
  301. <directory>src/main/webapp</directory>
  302. <includes>
  303. <include>**/*.xml</include>
  304. <include>**/*.properties</include>
  305. </includes>
  306. </scanTargetPattern>
  307. </scanTargetPatterns>
  308. <systemProperties>
  309. <systemProperty>
  310. <name>
  311. javax.xml.parsers.DocumentBuilderFactory
  312. </name>
  313. <value>
  314. com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
  315. </value>
  316. </systemProperty>
  317. <systemProperty>
  318. <name>
  319. javax.xml.parsers.SAXParserFactory
  320. </name>
  321. <value>
  322. com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
  323. </value>
  324. </systemProperty>
  325. <systemProperty>
  326. <name>
  327. javax.xml.transform.TransformerFactory
  328. </name>
  329. <value>
  330. com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
  331. </value>
  332. </systemProperty>
  333. <systemProperty>
  334. <name>org.eclipse.jetty.util.URI.charset</name>
  335. <value>UTF-8</value>
  336. </systemProperty>
  337. </systemProperties>
  338. </configuration>
  339. </plugin>
  340. <plugin>
  341. <groupId>org.apache.maven.plugins</groupId>
  342. <artifactId>maven-war-plugin</artifactId>
  343. <version>2.2</version>
  344. <configuration>
  345. <archive>
  346. <addMavenDescriptor>false</addMavenDescriptor>
  347. </archive>
  348. <webResources>
  349. <resource>
  350. <!-- this is relative to the pom.xml directory -->
  351. <directory>src/main/resources/</directory>
  352. <targetPath>WEB-INF/classes</targetPath>
  353. <includes>
  354. <include>**/*.*</include>
  355. </includes>
  356. <!-- <excludes>
  357. <exclude>**/local</exclude>
  358. <exclude>**/test</exclude>
  359. <exclude>**/product</exclude>
  360. <exclude>**/vbdsm</exclude>
  361. </excludes> -->
  362. <filtering>true</filtering>
  363. </resource>
  364. <resource>
  365. <!-- this is relative to the pom.xml directory -->
  366. <directory>src/main/resources/${package.environment}</directory>
  367. <targetPath>WEB-INF/classes</targetPath>
  368. <filtering>true</filtering>
  369. </resource>
  370. </webResources>
  371. </configuration>
  372. </plugin>
  373. <plugin>
  374. <groupId>org.zeroturnaround</groupId>
  375. <artifactId>javarebel-maven-plugin</artifactId>
  376. <executions>
  377. <execution>
  378. <id>generate-rebel-xml</id>
  379. <phase>process-resources</phase>
  380. <goals>
  381. <goal>generate</goal>
  382. </goals>
  383. </execution>
  384. </executions>
  385. <version>1.0.5</version>
  386. </plugin>
  387. <!-- <plugin>-->
  388. <!-- <groupId>net.sf.ehcache</groupId>-->
  389. <!-- <artifactId>ehcache-core</artifactId>-->
  390. <!-- <version>2.6.8</version>-->
  391. <!-- </plugin>-->
  392. </plugins>
  393. </build>
  394. </project>