pom.xml 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xmlns="http://maven.apache.org/POM/4.0.0"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>cn.vbdsm</groupId>
  8. <artifactId>vbdsm</artifactId>
  9. <version>2.1.0</version>
  10. </parent>
  11. <packaging>pom</packaging>
  12. <artifactId>vbdsm-web</artifactId>
  13. <name>${project.artifactId}</name>
  14. <modules>
  15. <module>vbdsm-passport</module>
  16. <module>vbdsm-manage</module>
  17. <module>vbdsm-powerservice</module>
  18. <module>vbdsm-gov</module>
  19. <module>vbdsm-gov-new</module>
  20. <module>vbdsm-explorer</module>
  21. <module>vbdsm-charts</module>
  22. </modules>
  23. <build>
  24. <resources>
  25. <resource>
  26. <directory>${basedir}/src/main/resources</directory>
  27. <includes>
  28. <include>**/*</include>
  29. </includes>
  30. </resource>
  31. <resource>
  32. <directory>${basedir}/src/main/java</directory>
  33. <excludes>
  34. <exclude>**/*.java</exclude>
  35. <exclude>**/*.class</exclude>
  36. </excludes>
  37. </resource>
  38. </resources>
  39. <plugins>
  40. <plugin>
  41. <artifactId>maven-compiler-plugin</artifactId>
  42. <version>2.3.2</version>
  43. <configuration>
  44. <source>1.6</source>
  45. <target>1.6</target>
  46. <encoding>UTF-8</encoding>
  47. </configuration>
  48. </plugin>
  49. <plugin>
  50. <artifactId>maven-resources-plugin</artifactId>
  51. <version>2.5</version>
  52. <executions>
  53. <execution>
  54. <id>copy-resources</id>
  55. <!-- here the phase you need -->
  56. <phase>validate</phase>
  57. <goals>
  58. <goal>copy-resources</goal>
  59. </goals>
  60. <configuration>
  61. <encoding>UTF-8</encoding>
  62. <outputDirectory>${basedir}/target/classes</outputDirectory>
  63. <resources>
  64. <resource>
  65. <directory>src/main/resources/${package.environment}</directory>
  66. <includes>
  67. <include>**/*.*</include>
  68. </includes>
  69. <filtering>true</filtering>
  70. </resource>
  71. </resources>
  72. </configuration>
  73. </execution>
  74. </executions>
  75. </plugin>
  76. <plugin>
  77. <groupId>org.mortbay.jetty</groupId>
  78. <artifactId>maven-jetty-plugin</artifactId>
  79. <version>6.1.26</version>
  80. <configuration>
  81. <webDefaultXml>src/main/resources/webdefault.xml</webDefaultXml>
  82. <contextPath>/</contextPath>
  83. <scanIntervalSeconds>0</scanIntervalSeconds>
  84. <scanTargetPatterns>
  85. <scanTargetPattern>
  86. <directory>src/main/webapp</directory>
  87. <includes>
  88. <include>**/*.xml</include>
  89. <include>**/*.properties</include>
  90. </includes>
  91. </scanTargetPattern>
  92. </scanTargetPatterns>
  93. <systemProperties>
  94. <systemProperty>
  95. <name>
  96. javax.xml.parsers.DocumentBuilderFactory
  97. </name>
  98. <value>
  99. com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
  100. </value>
  101. </systemProperty>
  102. <systemProperty>
  103. <name>
  104. javax.xml.parsers.SAXParserFactory
  105. </name>
  106. <value>
  107. com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
  108. </value>
  109. </systemProperty>
  110. <systemProperty>
  111. <name>
  112. javax.xml.transform.TransformerFactory
  113. </name>
  114. <value>
  115. com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
  116. </value>
  117. </systemProperty>
  118. <systemProperty>
  119. <name>org.eclipse.jetty.util.URI.charset</name>
  120. <value>UTF-8</value>
  121. </systemProperty>
  122. </systemProperties>
  123. </configuration>
  124. </plugin>
  125. <plugin>
  126. <groupId>org.apache.maven.plugins</groupId>
  127. <artifactId>maven-war-plugin</artifactId>
  128. <version>2.2</version>
  129. <configuration>
  130. <archive>
  131. <addMavenDescriptor>false</addMavenDescriptor>
  132. </archive>
  133. <webResources>
  134. <resource>
  135. <!-- this is relative to the pom.xml directory -->
  136. <directory>src/main/resources/</directory>
  137. <targetPath>WEB-INF/classes</targetPath>
  138. <includes>
  139. <include>**/*.*</include>
  140. </includes>
  141. <!-- <excludes>
  142. <exclude>**/local</exclude>
  143. <exclude>**/test</exclude>
  144. <exclude>**/product</exclude>
  145. <exclude>**/vbdsm</exclude>
  146. </excludes> -->
  147. <filtering>true</filtering>
  148. </resource>
  149. <resource>
  150. <!-- this is relative to the pom.xml directory -->
  151. <directory>src/main/resources/${package.environment}</directory>
  152. <targetPath>WEB-INF/classes</targetPath>
  153. <filtering>true</filtering>
  154. </resource>
  155. </webResources>
  156. </configuration>
  157. </plugin>
  158. <plugin>
  159. <groupId>org.zeroturnaround</groupId>
  160. <artifactId>javarebel-maven-plugin</artifactId>
  161. <executions>
  162. <execution>
  163. <id>generate-rebel-xml</id>
  164. <phase>process-resources</phase>
  165. <goals>
  166. <goal>generate</goal>
  167. </goals>
  168. </execution>
  169. </executions>
  170. <version>1.0.5</version>
  171. </plugin>
  172. <!-- <plugin>-->
  173. <!-- <groupId>net.sf.ehcache</groupId>-->
  174. <!-- <artifactId>ehcache-core</artifactId>-->
  175. <!-- <version>2.6.8</version>-->
  176. <!-- </plugin>-->
  177. </plugins>
  178. </build>
  179. </project>