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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  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.sonarsource.sonarqube</groupId>
  6. <artifactId>sonarqube</artifactId>
  7. <version>6.0.1-SNAPSHOT</version>
  8. </parent>
  9. <artifactId>sonar-db</artifactId>
  10. <name>SonarQube :: Database</name>
  11. <description>Create and request SonarQube schema</description>
  12. <properties>
  13. <sonar.exclusions>target/generated-sources/**</sonar.exclusions>
  14. </properties>
  15. <dependencies>
  16. <dependency>
  17. <groupId>com.google.code.findbugs</groupId>
  18. <artifactId>jsr305</artifactId>
  19. <scope>provided</scope>
  20. </dependency>
  21. <dependency>
  22. <groupId>commons-codec</groupId>
  23. <artifactId>commons-codec</artifactId>
  24. </dependency>
  25. <dependency>
  26. <groupId>org.apache.commons</groupId>
  27. <artifactId>commons-csv</artifactId>
  28. </dependency>
  29. <dependency>
  30. <groupId>${project.groupId}</groupId>
  31. <artifactId>sonar-scanner-protocol</artifactId>
  32. </dependency>
  33. <dependency>
  34. <groupId>${project.groupId}</groupId>
  35. <artifactId>sonar-core</artifactId>
  36. </dependency>
  37. <dependency>
  38. <groupId>${project.groupId}</groupId>
  39. <artifactId>sonar-plugin-api</artifactId>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.mybatis</groupId>
  43. <artifactId>mybatis</artifactId>
  44. </dependency>
  45. <dependency>
  46. <groupId>commons-dbcp</groupId>
  47. <artifactId>commons-dbcp</artifactId>
  48. </dependency>
  49. <dependency>
  50. <groupId>commons-dbutils</groupId>
  51. <artifactId>commons-dbutils</artifactId>
  52. </dependency>
  53. <dependency>
  54. <groupId>net.jpountz.lz4</groupId>
  55. <artifactId>lz4</artifactId>
  56. </dependency>
  57. <!-- logging -->
  58. <dependency>
  59. <groupId>org.slf4j</groupId>
  60. <artifactId>slf4j-api</artifactId>
  61. </dependency>
  62. <dependency>
  63. <groupId>ch.qos.logback</groupId>
  64. <artifactId>logback-classic</artifactId>
  65. </dependency>
  66. <dependency>
  67. <groupId>ch.qos.logback</groupId>
  68. <artifactId>logback-core</artifactId>
  69. </dependency>
  70. <!-- tests -->
  71. <dependency>
  72. <groupId>${project.groupId}</groupId>
  73. <artifactId>sonar-testing-harness</artifactId>
  74. <scope>test</scope>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.dbunit</groupId>
  78. <artifactId>dbunit</artifactId>
  79. <scope>test</scope>
  80. </dependency>
  81. <dependency>
  82. <groupId>com.google.code.bean-matchers</groupId>
  83. <artifactId>bean-matchers</artifactId>
  84. <scope>test</scope>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.simpleframework</groupId>
  88. <artifactId>simple</artifactId>
  89. <version>4.1.21</version>
  90. <scope>test</scope>
  91. </dependency>
  92. <!--
  93. JDBC drivers for MyBatis integration tests.
  94. They can't be moved to the profile run-mybatis-its because
  95. -->
  96. <dependency>
  97. <groupId>mysql</groupId>
  98. <artifactId>mysql-connector-java</artifactId>
  99. <scope>test</scope>
  100. </dependency>
  101. <dependency>
  102. <groupId>org.postgresql</groupId>
  103. <artifactId>postgresql</artifactId>
  104. <scope>test</scope>
  105. </dependency>
  106. <dependency>
  107. <groupId>com.h2database</groupId>
  108. <artifactId>h2</artifactId>
  109. <scope>test</scope>
  110. </dependency>
  111. </dependencies>
  112. <build>
  113. <plugins>
  114. <plugin>
  115. <groupId>org.apache.maven.plugins</groupId>
  116. <artifactId>maven-surefire-plugin</artifactId>
  117. <configuration>
  118. <skipTests>${skipServerTests}</skipTests>
  119. </configuration>
  120. </plugin>
  121. <plugin>
  122. <groupId>org.apache.maven.plugins</groupId>
  123. <artifactId>maven-jar-plugin</artifactId>
  124. <executions>
  125. <execution>
  126. <goals>
  127. <goal>test-jar</goal>
  128. </goals>
  129. </execution>
  130. </executions>
  131. </plugin>
  132. </plugins>
  133. </build>
  134. <profiles>
  135. <profile>
  136. <id>create-db</id>
  137. <activation>
  138. <property>
  139. <name>env.SONARSOURCE_QA</name>
  140. <value>true</value>
  141. </property>
  142. </activation>
  143. <build>
  144. <plugins>
  145. <plugin>
  146. <groupId>org.apache.maven.plugins</groupId>
  147. <artifactId>maven-dependency-plugin</artifactId>
  148. <executions>
  149. <execution>
  150. <id>download-sq</id>
  151. <goals>
  152. <goal>get</goal>
  153. </goals>
  154. <phase>generate-test-resources</phase>
  155. <configuration>
  156. <artifact>${project.groupId}:sonar-application:${project.version}:zip</artifact>
  157. <transitive>false</transitive>
  158. </configuration>
  159. </execution>
  160. </executions>
  161. </plugin>
  162. <plugin>
  163. <groupId>org.sonarsource.orchestrator</groupId>
  164. <artifactId>orchestrator-maven-plugin</artifactId>
  165. <version>${orchestrator.version}</version>
  166. <executions>
  167. <execution>
  168. <id>create-db</id>
  169. <goals>
  170. <goal>create-db</goal>
  171. </goals>
  172. <phase>generate-test-resources</phase>
  173. <configuration>
  174. <sqVersion>${project.version}</sqVersion>
  175. </configuration>
  176. </execution>
  177. </executions>
  178. </plugin>
  179. </plugins>
  180. </build>
  181. </profile>
  182. <profile>
  183. <!-- SonarSource internal use -->
  184. <id>with-db-drivers</id>
  185. <activation>
  186. <property>
  187. <name>with-db-drivers</name>
  188. </property>
  189. </activation>
  190. <dependencies>
  191. <dependency>
  192. <groupId>mysql</groupId>
  193. <artifactId>mysql-connector-java</artifactId>
  194. </dependency>
  195. <dependency>
  196. <groupId>org.postgresql</groupId>
  197. <artifactId>postgresql</artifactId>
  198. </dependency>
  199. <dependency>
  200. <groupId>com.oracle</groupId>
  201. <artifactId>ojdbc6</artifactId>
  202. </dependency>
  203. <dependency>
  204. <groupId>com.microsoft.sqljdbc</groupId>
  205. <artifactId>sqljdbc</artifactId>
  206. <version>4.2</version>
  207. <scope>system</scope>
  208. <systemPath>${project.basedir}/../sonar-application/src/main/assembly/lib/jdbc/mssql/sqljdbc42.jar
  209. </systemPath>
  210. </dependency>
  211. </dependencies>
  212. </profile>
  213. </profiles>
  214. </project>