You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pom.xml 8.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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>org.codehaus.sonar</groupId>
  6. <artifactId>sonar</artifactId>
  7. <version>2.3-SNAPSHOT</version>
  8. <relativePath>../..</relativePath>
  9. </parent>
  10. <groupId>org.codehaus.sonar.tests</groupId>
  11. <artifactId>volume</artifactId>
  12. <name>Sonar :: Volume Testing</name>
  13. <description>High volume testing, for example to check the Oracle constraint on max number of elements in the clause IN.</description>
  14. <properties>
  15. <sonar.url>http://localhost:9000/</sonar.url>
  16. <sonar.runtimeVersion>${project.version}</sonar.runtimeVersion>
  17. <projectsCount>1010</projectsCount>
  18. <packagesCount>5</packagesCount>
  19. <classesCount>5</classesCount>
  20. </properties>
  21. <build>
  22. <testSourceDirectory>src/it/java</testSourceDirectory>
  23. <testResources>
  24. <testResource>
  25. <filtering>false</filtering>
  26. <directory>src/it/resources</directory>
  27. </testResource>
  28. </testResources>
  29. <plugins>
  30. <plugin>
  31. <groupId>org.apache.maven.plugins</groupId>
  32. <artifactId>maven-dependency-plugin</artifactId>
  33. <version>2.1</version>
  34. <executions>
  35. <execution>
  36. <id>copy</id>
  37. <!-- must be executed after the ant task that builds the directory target/extensions -->
  38. <phase>package</phase>
  39. <goals>
  40. <goal>copy</goal>
  41. </goals>
  42. <configuration>
  43. <artifactItems>
  44. <artifactItem>
  45. <groupId>com.oracle</groupId>
  46. <artifactId>ojdbc14</artifactId>
  47. <version>10.2.0.3.0</version>
  48. <type>jar</type>
  49. <overWrite>false</overWrite>
  50. <outputDirectory>${basedir}/target/extensions/jdbc-driver/oracle</outputDirectory>
  51. </artifactItem>
  52. </artifactItems>
  53. </configuration>
  54. </execution>
  55. </executions>
  56. </plugin>
  57. <plugin>
  58. <groupId>org.codehaus.sonar</groupId>
  59. <artifactId>sonar-dev-maven-plugin</artifactId>
  60. <version>0.5</version>
  61. <executions>
  62. <execution>
  63. <id>start-server</id>
  64. <phase>pre-integration-test</phase>
  65. <configuration>
  66. <background>true</sonar.background>
  67. <dropDatabase>false</sonar.dropDatabase>
  68. <extensionsDir>${basedir}/target/extensions</extensionsDir>
  69. </configuration>
  70. <goals>
  71. <goal>start-war</goal>
  72. </goals>
  73. </execution>
  74. <execution>
  75. <id>stop-server</id>
  76. <phase>post-integration-test</phase>
  77. <goals>
  78. <goal>stop-war</goal>
  79. </goals>
  80. </execution>
  81. </executions>
  82. </plugin>
  83. <plugin>
  84. <artifactId>maven-antrun-plugin</artifactId>
  85. <version>1.4</version>
  86. <dependencies>
  87. <dependency>
  88. <groupId>org.apache.ant</groupId>
  89. <artifactId>ant-nodeps</artifactId>
  90. <version>1.7.1</version>
  91. </dependency>
  92. <dependency>
  93. <groupId>org.apache.ant</groupId>
  94. <artifactId>ant-junit</artifactId>
  95. <version>1.7.1</version>
  96. </dependency>
  97. <dependency>
  98. <groupId>org.apache.ant</groupId>
  99. <artifactId>ant-trax</artifactId>
  100. <version>1.7.1</version>
  101. </dependency>
  102. </dependencies>
  103. <executions>
  104. <execution>
  105. <id>analyze-projects</id>
  106. <phase>pre-integration-test</phase>
  107. <configuration>
  108. <tasks>
  109. <ant dir="${basedir}" inheritRefs="true">
  110. <property name="projectsCount" value="${projectsCount}" />
  111. <property name="packagesCount" value="${packagesCount}" />
  112. <property name="classesCount" value="${classesCount}" />
  113. <property name="jdbcDriver" value="${sonar.jdbc.driver}" />
  114. <property name="jdbcUrl" value="${sonar.jdbc.url}" />
  115. <property name="jdbcUsername" value="${sonar.jdbc.username}" />
  116. <property name="jdbcPassword" value="${sonar.jdbc.password}" />
  117. <property name="sonarVersion" value="${sonar.runtimeVersion}" />
  118. <target name="analyze-projects" />
  119. </ant>
  120. </tasks>
  121. </configuration>
  122. <goals>
  123. <goal>run</goal>
  124. </goals>
  125. </execution>
  126. </executions>
  127. </plugin>
  128. <plugin>
  129. <groupId>org.codehaus.mojo</groupId>
  130. <artifactId>selenium-maven-plugin</artifactId>
  131. <version>1.0.1</version>
  132. <executions>
  133. <execution>
  134. <id>start-selenium</id>
  135. <phase>pre-integration-test</phase>
  136. <goals>
  137. <goal>start-server</goal>
  138. </goals>
  139. <configuration>
  140. <background>true</background>
  141. </configuration>
  142. </execution>
  143. <execution>
  144. <id>stop-selenium</id>
  145. <phase>post-integration-test</phase>
  146. <goals>
  147. <goal>stop-server</goal>
  148. </goals>
  149. </execution>
  150. </executions>
  151. </plugin>
  152. <plugin>
  153. <groupId>org.apache.maven.plugins</groupId>
  154. <artifactId>maven-surefire-plugin</artifactId>
  155. <configuration>
  156. <!-- Skip the normal tests, we'll run them in the integration-test phase -->
  157. <skip>true</skip>
  158. </configuration>
  159. <executions>
  160. <execution>
  161. <phase>integration-test</phase>
  162. <goals>
  163. <goal>test</goal>
  164. </goals>
  165. <configuration>
  166. <skip>false</skip>
  167. </configuration>
  168. </execution>
  169. </executions>
  170. </plugin>
  171. </plugins>
  172. </build>
  173. <dependencies>
  174. <dependency>
  175. <groupId>org.apache.ant</groupId>
  176. <artifactId>ant-nodeps</artifactId>
  177. <version>1.7.1</version>
  178. </dependency>
  179. <dependency>
  180. <groupId>org.apache.ant</groupId>
  181. <artifactId>ant-junit</artifactId>
  182. <version>1.7.1</version>
  183. </dependency>
  184. <dependency>
  185. <groupId>org.apache.ant</groupId>
  186. <artifactId>ant-trax</artifactId>
  187. <version>1.7.1</version>
  188. </dependency>
  189. <dependency>
  190. <groupId>com.oracle</groupId>
  191. <artifactId>ojdbc14</artifactId>
  192. <version>10.2.0.3.0</version>
  193. </dependency>
  194. <dependency>
  195. <groupId>org.seleniumhq.selenium.client-drivers</groupId>
  196. <artifactId>selenium-java-client-driver</artifactId>
  197. <version>1.0.2</version>
  198. </dependency>
  199. </dependencies>
  200. <profiles>
  201. <!-- BROWSERS -->
  202. <profile>
  203. <id>firefox</id>
  204. <properties>
  205. <selenium.browser>*firefox</selenium.browser>
  206. </properties>
  207. </profile>
  208. <profile>
  209. <id>ie</id>
  210. <properties>
  211. <selenium.browser>*iexplore</selenium.browser>
  212. </properties>
  213. </profile>
  214. <profile>
  215. <id>oracle</id>
  216. <properties>
  217. <sonar.jdbc.url>jdbc:oracle:thin:@localhost/XE</sonar.jdbc.url>
  218. <sonar.jdbc.username>sonar_volume</sonar.jdbc.username>
  219. <sonar.jdbc.password>sonar_volume</sonar.jdbc.password>
  220. <sonar.jdbc.driver>oracle.jdbc.driver.OracleDriver</sonar.jdbc.driver>
  221. </properties>
  222. </profile>
  223. <profile>
  224. <id>postgresql</id>
  225. <properties>
  226. <sonar.jdbc.url>jdbc:postgresql://localhost/sonar</sonar.jdbc.url>
  227. <sonar.jdbc.username>sonar</sonar.jdbc.username>
  228. <sonar.jdbc.password>sonar</sonar.jdbc.password>
  229. <sonar.jdbc.driver>org.postgresql.Driver</sonar.jdbc.driver>
  230. </properties>
  231. </profile>
  232. <profile>
  233. <id>mssql</id>
  234. <properties>
  235. <sonar.jdbc.url>jdbc:jtds:sqlserver://localhost;databaseName=SONAR;SelectMethod=Cursor</sonar.jdbc.url>
  236. <sonar.jdbc.username>sonar</sonar.jdbc.username>
  237. <sonar.jdbc.password>sonar</sonar.jdbc.password>
  238. <sonar.jdbc.driver>net.sourceforge.jtds.jdbc.Driver</sonar.jdbc.driver>
  239. </properties>
  240. </profile>
  241. <profile>
  242. <id>mysql</id>
  243. <properties>
  244. <sonar.jdbc.url>jdbc:mysql://localhost:3306/sonar?useUnicode=true&amp;characterEncoding=utf8</sonar.jdbc.url>
  245. <sonar.jdbc.driver>com.mysql.jdbc.Driver</sonar.jdbc.driver>
  246. <sonar.jdbc.username>sonar</sonar.jdbc.username>
  247. <sonar.jdbc.password>sonar</sonar.jdbc.password>
  248. </properties>
  249. </profile>
  250. </profiles>
  251. </project>