pom.xml 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  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. <parent>
  5. <groupId>cn.vbdsm</groupId>
  6. <artifactId>vbdsm-statistics</artifactId>
  7. <version>2.1.0</version>
  8. </parent>
  9. <artifactId>vbdsm-analysis</artifactId>
  10. <packaging>war</packaging>
  11. <dependencies>
  12. <dependency>
  13. <groupId>org.springframework</groupId>
  14. <artifactId>spring-test</artifactId>
  15. <scope>test</scope>
  16. </dependency>
  17. <dependency>
  18. <groupId>javax.servlet</groupId>
  19. <artifactId>servlet-api</artifactId>
  20. </dependency>
  21. <dependency>
  22. <groupId>org.quartz-scheduler</groupId>
  23. <artifactId>quartz</artifactId>
  24. </dependency>
  25. <dependency>
  26. <groupId>org.dom4j</groupId>
  27. <artifactId>dom4j</artifactId>
  28. </dependency>
  29. <dependency>
  30. <groupId>org.projectlombok</groupId>
  31. <artifactId>lombok</artifactId>
  32. <scope>compile</scope>
  33. </dependency>
  34. <dependency>
  35. <groupId>cn.vbdsm</groupId>
  36. <artifactId>vbdsm-base</artifactId>
  37. </dependency>
  38. </dependencies>
  39. <build>
  40. <finalName>ROOT</finalName>
  41. <resources>
  42. <resource>
  43. <directory>${basedir}/src/main/resources</directory>
  44. <includes>
  45. <include>**/*</include>
  46. </includes>
  47. </resource>
  48. <resource>
  49. <directory>${basedir}/src/main/java</directory>
  50. <excludes>
  51. <exclude>**/*.java</exclude>
  52. <exclude>**/*.class</exclude>
  53. </excludes>
  54. </resource>
  55. </resources>
  56. <plugins>
  57. <plugin>
  58. <artifactId>maven-compiler-plugin</artifactId>
  59. <version>2.3.2</version>
  60. <configuration>
  61. <source>1.6</source>
  62. <target>1.6</target>
  63. <encoding>UTF-8</encoding>
  64. </configuration>
  65. </plugin>
  66. <!-- cxf wsdl2java 插件 -->
  67. <plugin>
  68. <groupId>org.apache.cxf</groupId>
  69. <artifactId>cxf-codegen-plugin</artifactId>
  70. <version>2.7.1</version>
  71. <configuration>
  72. <sourceRoot>${basedir}/target/generated-sources/cxf</sourceRoot>
  73. <wsdlOptions>
  74. <wsdlOption>
  75. <wsdl>${basedir}/target/wsdl/accountservice.wsdl</wsdl>
  76. </wsdlOption>
  77. </wsdlOptions>
  78. </configuration>
  79. </plugin>
  80. <plugin>
  81. <artifactId>maven-resources-plugin</artifactId>
  82. <version>2.5</version>
  83. <executions>
  84. <execution>
  85. <id>copy-resources</id>
  86. <!-- here the phase you need -->
  87. <phase>validate</phase>
  88. <goals>
  89. <goal>copy-resources</goal>
  90. </goals>
  91. <configuration>
  92. <encoding>UTF-8</encoding>
  93. <outputDirectory>${basedir}/target/classes</outputDirectory>
  94. <resources>
  95. <resource>
  96. <directory>src/main/resources/${package.environment}</directory>
  97. <includes>
  98. <include>**/*.*</include>
  99. </includes>
  100. <filtering>true</filtering>
  101. </resource>
  102. </resources>
  103. </configuration>
  104. </execution>
  105. </executions>
  106. </plugin>
  107. <plugin>
  108. <groupId>org.mortbay.jetty</groupId>
  109. <artifactId>maven-jetty-plugin</artifactId>
  110. <version>6.1.26</version>
  111. <configuration>
  112. <webDefaultXml>src/main/resources/webdefault.xml</webDefaultXml>
  113. <contextPath>/</contextPath>
  114. <connectors>
  115. <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
  116. <port>7087</port>
  117. </connector>
  118. </connectors>
  119. <scanIntervalSeconds>0</scanIntervalSeconds>
  120. <scanTargetPatterns>
  121. <scanTargetPattern>
  122. <directory>src/main/webapp</directory>
  123. <includes>
  124. <include>**/*.xml</include>
  125. <include>**/*.properties</include>
  126. </includes>
  127. </scanTargetPattern>
  128. </scanTargetPatterns>
  129. <systemProperties>
  130. <systemProperty>
  131. <name>
  132. javax.xml.parsers.DocumentBuilderFactory
  133. </name>
  134. <value>
  135. com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
  136. </value>
  137. </systemProperty>
  138. <systemProperty>
  139. <name>
  140. javax.xml.parsers.SAXParserFactory
  141. </name>
  142. <value>
  143. com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
  144. </value>
  145. </systemProperty>
  146. <systemProperty>
  147. <name>
  148. javax.xml.transform.TransformerFactory
  149. </name>
  150. <value>
  151. com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
  152. </value>
  153. </systemProperty>
  154. <systemProperty>
  155. <name>org.eclipse.jetty.util.URI.charset</name>
  156. <value>UTF-8</value>
  157. </systemProperty>
  158. </systemProperties>
  159. </configuration>
  160. </plugin>
  161. <plugin>
  162. <groupId>org.apache.maven.plugins</groupId>
  163. <artifactId>maven-war-plugin</artifactId>
  164. <version>2.2</version>
  165. <configuration>
  166. <archive>
  167. <addMavenDescriptor>false</addMavenDescriptor>
  168. </archive>
  169. <webResources>
  170. <resource>
  171. <!-- this is relative to the pom.xml directory -->
  172. <directory>src/main/resources/</directory>
  173. <targetPath>WEB-INF/classes</targetPath>
  174. <includes>
  175. <include>**/*.*</include>
  176. </includes>
  177. <!-- <excludes>
  178. <exclude>**/local</exclude>
  179. <exclude>**/test</exclude>
  180. <exclude>**/product</exclude>
  181. <exclude>**/vbdsm</exclude>
  182. </excludes> -->
  183. <filtering>true</filtering>
  184. </resource>
  185. <resource>
  186. <!-- this is relative to the pom.xml directory -->
  187. <directory>src/main/resources/${package.environment}</directory>
  188. <targetPath>WEB-INF/classes</targetPath>
  189. <filtering>true</filtering>
  190. </resource>
  191. </webResources>
  192. </configuration>
  193. </plugin>
  194. <plugin>
  195. <groupId>org.zeroturnaround</groupId>
  196. <artifactId>javarebel-maven-plugin</artifactId>
  197. <executions>
  198. <execution>
  199. <id>generate-rebel-xml</id>
  200. <phase>process-resources</phase>
  201. <goals>
  202. <goal>generate</goal>
  203. </goals>
  204. </execution>
  205. </executions>
  206. <version>1.0.5</version>
  207. </plugin>
  208. <!-- <plugin>-->
  209. <!-- <groupId>net.sf.ehcache</groupId>-->
  210. <!-- <artifactId>ehcache-core</artifactId>-->
  211. <!-- <version>2.6.8</version>-->
  212. <!-- </plugin>-->
  213. </plugins>
  214. </build>
  215. </project>