Advertisement
Guest User

Untitled

a guest
Jan 26th, 2015
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.04 KB | None | 0 0
  1. <build>
  2. <defaultGoal>package</defaultGoal>
  3. <finalName>wp2</finalName>
  4.  
  5. <resources>
  6. <resource>
  7. <directory>${isframework.conf.src}</directory>
  8. <targetPath>${isframework.conf.tmp}</targetPath>
  9. <filtering>true</filtering>
  10. <includes>
  11. <include>**/*.*</include>
  12. </includes>
  13. </resource>
  14. <resource>
  15. <directory>${isframework.root.src}/res</directory>
  16. <targetPath>${isframework.root.dst}/res</targetPath>
  17. <filtering>false</filtering>
  18. </resource>
  19. <resource>
  20. <directory>${isframework.root.src}/rss</directory>
  21. <targetPath>${isframework.root.dst}/rss</targetPath>
  22. <filtering>false</filtering>
  23. </resource>
  24. <resource>
  25. <directory>src/main/resources</directory>
  26. <filtering>true</filtering>
  27. <excludes>
  28. <exclude>*.ttf</exclude>
  29. </excludes>
  30. </resource>
  31. <resource>
  32. <directory>src/main/resources</directory>
  33. <filtering>false</filtering>
  34. <includes>
  35. <include>*.ttf</include>
  36. </includes>
  37. </resource>
  38. <resource>
  39. <directory>src/main/java</directory>
  40. <includes>
  41. <include>**/*.properties</include>
  42. </includes>
  43. </resource>
  44.  
  45.  
  46. </resources>
  47.  
  48. <plugins>
  49. <!-- плагин для определения версии в SCM -->
  50. <plugin>
  51. <groupId>org.codehaus.mojo</groupId>
  52. <artifactId>buildnumber-maven-plugin</artifactId>
  53. <version>1.0-beta-4</version>
  54. <executions>
  55. <execution>
  56. <phase>validate</phase>
  57. <goals>
  58. <goal>create</goal>
  59. </goals>
  60. </execution>
  61. </executions>
  62. <configuration>
  63. <buildNumberPropertyName>project.build.number</buildNumberPropertyName>
  64. <timestampPropertyName>project.build.timestamp</timestampPropertyName>
  65. <timestampFormat>{0,date,yyyy-MM-dd,HH:mm:ss}</timestampFormat>
  66.  
  67. <revisionOnScmFailure>unavailable</revisionOnScmFailure>
  68. <useLastCommittedRevision/>
  69. <doCheck>false</doCheck>
  70. <doUpdate>false</doUpdate>
  71. </configuration>
  72. </plugin>
  73.  
  74. <!-- юнит тесты -->
  75. <plugin>
  76. <groupId>org.apache.maven.plugins</groupId>
  77. <artifactId>maven-surefire-plugin</artifactId>
  78. <version>2.6</version>
  79. <configuration>
  80. <includes>
  81. <includes>**/*.java</includes>
  82. </includes>
  83. </configuration>
  84. </plugin>
  85.  
  86. <!-- java-компилятор -->
  87. <plugin>
  88. <groupId>org.apache.maven.plugins</groupId>
  89. <artifactId>maven-compiler-plugin</artifactId>
  90. <version>2.3.2</version>
  91. <configuration>
  92. <source>1.7</source>
  93. <target>1.7</target>
  94. </configuration>
  95. </plugin>
  96.  
  97. <!-- aspectj -->
  98. <plugin>
  99. <groupId>org.codehaus.mojo</groupId>
  100. <artifactId>aspectj-maven-plugin</artifactId>
  101. <version>1.4</version>
  102.  
  103. <configuration>
  104. <showWeaveInfo>false</showWeaveInfo>
  105. <verbose>false</verbose>
  106. <source>1.7</source>
  107. <target>1.7</target>
  108.  
  109. <aspectLibraries>
  110. <aspectLibrary>
  111. <groupId>...</groupId>
  112. <artifactId>ngutil-aspects</artifactId>
  113. </aspectLibrary>
  114.  
  115. <aspectLibrary>
  116. <groupId>org.springframework</groupId>
  117. <artifactId>spring-aspects</artifactId>
  118. </aspectLibrary>
  119. </aspectLibraries>
  120. </configuration>
  121.  
  122. <executions>
  123. <execution>
  124. <goals>
  125. <goal>compile</goal>
  126. <goal>test-compile</goal>
  127. </goals>
  128. </execution>
  129. </executions>
  130.  
  131. <dependencies>
  132. <dependency>
  133. <groupId>org.aspectj</groupId>
  134. <artifactId>aspectjrt</artifactId>
  135. <version>${aspectj.version}</version>
  136. </dependency>
  137. <dependency>
  138. <groupId>org.aspectj</groupId>
  139. <artifactId>aspectjtools</artifactId>
  140. <version>${aspectj.version}</version>
  141. </dependency>
  142. </dependencies>
  143. </plugin>
  144.  
  145. <plugin>
  146. <artifactId>maven-antrun-plugin</artifactId>
  147. <version>1.6</version>
  148. <executions>
  149. <execution>
  150. <id>build-config-files</id>
  151. <phase>compile</phase>
  152. <goals>
  153. <goal>run</goal>
  154. </goals>
  155. </execution>
  156. </executions>
  157. </plugin>
  158.  
  159.  
  160. <plugin>
  161. <groupId>org.codehaus.mojo</groupId>
  162. <artifactId>tomcat-maven-plugin</artifactId>
  163. <version>1.1</version>
  164. <configuration>
  165. <path>/wp2</path>
  166. <uriEncoding>UTF-8</uriEncoding>
  167. <port>8081</port>
  168. </configuration>
  169. </plugin>
  170.  
  171. <!-- findbugs -->
  172. <plugin>
  173. <groupId>org.codehaus.mojo</groupId>
  174. <artifactId>findbugs-maven-plugin</artifactId>
  175. <version>2.3.1</version>
  176. <configuration>
  177. <effort>Default</effort>
  178. <threshold>High</threshold>
  179. <xmlOutput>true</xmlOutput>
  180. </configuration>
  181. <executions>
  182. <execution>
  183. <phase>verify</phase>
  184. <goals>
  185. <goal>check</goal>
  186. </goals>
  187. </execution>
  188. </executions>
  189. </plugin>
  190.  
  191. <!-- checkstyle -->
  192. <plugin>
  193. <groupId>org.apache.maven.plugins</groupId>
  194. <artifactId>maven-checkstyle-plugin</artifactId>
  195. <version>2.6</version>
  196. <configuration>
  197. <consoleOutput>true</consoleOutput>
  198. <encoding>UTF-8</encoding>
  199. <configLocation>sofit_checks.xml</configLocation>
  200. </configuration>
  201. </plugin>
  202.  
  203. <!-- release -->
  204. <plugin>
  205. <groupId>org.apache.maven.plugins</groupId>
  206. <artifactId>maven-release-plugin</artifactId>
  207. <version>2.1</version>
  208. </plugin>
  209.  
  210. <!--resources -->
  211. <plugin>
  212. <groupId>org.apache.maven.plugins</groupId>
  213. <artifactId>maven-resources-plugin</artifactId>
  214. <version>2.5</version>
  215. </plugin>
  216.  
  217. <!-- Обязательно для java7-->
  218. <plugin>
  219. <groupId>org.apache.maven.plugins</groupId>
  220. <artifactId>maven-war-plugin</artifactId>
  221. <version>2.2</version>
  222. </plugin>
  223. </plugins>
  224. </build>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement