pom.xml 7.7 KB

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