pom.xml 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  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. <profiles>
  40. <profile>
  41. <id>local</id>
  42. <activation>
  43. <activeByDefault>false</activeByDefault>
  44. </activation>
  45. <properties>
  46. <profiles.active>dev</profiles.active>
  47. </properties>
  48. </profile>
  49. <profile>
  50. <id>test</id>
  51. <activation>
  52. <activeByDefault>false</activeByDefault>
  53. </activation>
  54. <properties>
  55. <profiles.active>test</profiles.active>
  56. </properties>
  57. </profile>
  58. <profile>
  59. <id>product</id>
  60. <activation>
  61. <activeByDefault>true</activeByDefault>
  62. </activation>
  63. <properties>
  64. <profiles.active>prod</profiles.active>
  65. </properties>
  66. </profile>
  67. </profiles>
  68. <build>
  69. <finalName>ROOT</finalName>
  70. <resources>
  71. <resource>
  72. <directory>${basedir}/src/main/resources</directory>
  73. <includes>
  74. <include>**/*</include>
  75. </includes>
  76. </resource>
  77. <resource>
  78. <directory>${basedir}/src/main/java</directory>
  79. <excludes>
  80. <exclude>**/*.java</exclude>
  81. <exclude>**/*.class</exclude>
  82. </excludes>
  83. </resource>
  84. </resources>
  85. <plugins>
  86. <plugin>
  87. <artifactId>maven-compiler-plugin</artifactId>
  88. <version>2.3.2</version>
  89. <configuration>
  90. <source>1.6</source>
  91. <target>1.6</target>
  92. <encoding>UTF-8</encoding>
  93. </configuration>
  94. </plugin>
  95. <!-- cxf wsdl2java 插件 -->
  96. <plugin>
  97. <groupId>org.apache.cxf</groupId>
  98. <artifactId>cxf-codegen-plugin</artifactId>
  99. <version>2.7.1</version>
  100. <configuration>
  101. <sourceRoot>${basedir}/target/generated-sources/cxf</sourceRoot>
  102. <wsdlOptions>
  103. <wsdlOption>
  104. <wsdl>${basedir}/target/wsdl/accountservice.wsdl</wsdl>
  105. </wsdlOption>
  106. </wsdlOptions>
  107. </configuration>
  108. </plugin>
  109. <plugin>
  110. <artifactId>maven-resources-plugin</artifactId>
  111. <version>2.5</version>
  112. <executions>
  113. <execution>
  114. <id>copy-resources</id>
  115. <!-- here the phase you need -->
  116. <phase>validate</phase>
  117. <goals>
  118. <goal>copy-resources</goal>
  119. </goals>
  120. <configuration>
  121. <encoding>UTF-8</encoding>
  122. <outputDirectory>${basedir}/target/classes</outputDirectory>
  123. <resources>
  124. <resource>
  125. <directory>src/main/resources/${package.environment}</directory>
  126. <includes>
  127. <include>**/*.*</include>
  128. </includes>
  129. <filtering>true</filtering>
  130. </resource>
  131. </resources>
  132. </configuration>
  133. </execution>
  134. </executions>
  135. </plugin>
  136. <plugin>
  137. <groupId>org.mortbay.jetty</groupId>
  138. <artifactId>maven-jetty-plugin</artifactId>
  139. <version>6.1.26</version>
  140. <configuration>
  141. <webDefaultXml>src/main/resources/webdefault.xml</webDefaultXml>
  142. <contextPath>/</contextPath>
  143. <connectors>
  144. <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
  145. <port>7090</port>
  146. </connector>
  147. </connectors>
  148. <scanIntervalSeconds>0</scanIntervalSeconds>
  149. <scanTargetPatterns>
  150. <scanTargetPattern>
  151. <directory>src/main/webapp</directory>
  152. <includes>
  153. <include>**/*.xml</include>
  154. <include>**/*.properties</include>
  155. </includes>
  156. </scanTargetPattern>
  157. </scanTargetPatterns>
  158. <systemProperties>
  159. <systemProperty>
  160. <name>
  161. javax.xml.parsers.DocumentBuilderFactory
  162. </name>
  163. <value>
  164. com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
  165. </value>
  166. </systemProperty>
  167. <systemProperty>
  168. <name>
  169. javax.xml.parsers.SAXParserFactory
  170. </name>
  171. <value>
  172. com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
  173. </value>
  174. </systemProperty>
  175. <systemProperty>
  176. <name>
  177. javax.xml.transform.TransformerFactory
  178. </name>
  179. <value>
  180. com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
  181. </value>
  182. </systemProperty>
  183. <systemProperty>
  184. <name>org.eclipse.jetty.util.URI.charset</name>
  185. <value>UTF-8</value>
  186. </systemProperty>
  187. </systemProperties>
  188. </configuration>
  189. </plugin>
  190. <plugin>
  191. <groupId>org.apache.maven.plugins</groupId>
  192. <artifactId>maven-war-plugin</artifactId>
  193. <version>2.2</version>
  194. <configuration>
  195. <archive>
  196. <addMavenDescriptor>false</addMavenDescriptor>
  197. </archive>
  198. <webResources>
  199. <resource>
  200. <!-- this is relative to the pom.xml directory -->
  201. <directory>src/main/resources/</directory>
  202. <targetPath>WEB-INF/classes</targetPath>
  203. <includes>
  204. <include>**/*.*</include>
  205. </includes>
  206. <!-- <excludes>
  207. <exclude>**/local</exclude>
  208. <exclude>**/test</exclude>
  209. <exclude>**/product</exclude>
  210. <exclude>**/vbdsm</exclude>
  211. </excludes> -->
  212. <filtering>true</filtering>
  213. </resource>
  214. <resource>
  215. <!-- this is relative to the pom.xml directory -->
  216. <directory>src/main/resources/${package.environment}</directory>
  217. <targetPath>WEB-INF/classes</targetPath>
  218. <filtering>true</filtering>
  219. </resource>
  220. </webResources>
  221. </configuration>
  222. </plugin>
  223. <plugin>
  224. <groupId>org.zeroturnaround</groupId>
  225. <artifactId>javarebel-maven-plugin</artifactId>
  226. <executions>
  227. <execution>
  228. <id>generate-rebel-xml</id>
  229. <phase>process-resources</phase>
  230. <goals>
  231. <goal>generate</goal>
  232. </goals>
  233. </execution>
  234. </executions>
  235. <version>1.0.5</version>
  236. </plugin>
  237. <!-- <plugin>-->
  238. <!-- <groupId>net.sf.ehcache</groupId>-->
  239. <!-- <artifactId>ehcache-core</artifactId>-->
  240. <!-- <version>2.6.8</version>-->
  241. <!-- </plugin>-->
  242. </plugins>
  243. </build>
  244. </project>