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 5.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  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>server</artifactId>
  7. <version>7.1-SNAPSHOT</version>
  8. </parent>
  9. <artifactId>sonar-db-core</artifactId>
  10. <name>SonarQube :: Database Core</name>
  11. <description>Core Database support</description>
  12. <dependencies>
  13. <dependency>
  14. <groupId>com.google.code.findbugs</groupId>
  15. <artifactId>jsr305</artifactId>
  16. <scope>provided</scope>
  17. </dependency>
  18. <dependency>
  19. <groupId>commons-codec</groupId>
  20. <artifactId>commons-codec</artifactId>
  21. </dependency>
  22. <dependency>
  23. <groupId>org.apache.commons</groupId>
  24. <artifactId>commons-csv</artifactId>
  25. </dependency>
  26. <dependency>
  27. <groupId>${project.groupId}</groupId>
  28. <artifactId>sonar-scanner-protocol</artifactId>
  29. </dependency>
  30. <dependency>
  31. <groupId>${project.groupId}</groupId>
  32. <artifactId>sonar-core</artifactId>
  33. </dependency>
  34. <dependency>
  35. <groupId>${project.groupId}</groupId>
  36. <artifactId>sonar-plugin-api</artifactId>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.mybatis</groupId>
  40. <artifactId>mybatis</artifactId>
  41. </dependency>
  42. <dependency>
  43. <groupId>commons-dbcp</groupId>
  44. <artifactId>commons-dbcp</artifactId>
  45. </dependency>
  46. <dependency>
  47. <groupId>commons-dbutils</groupId>
  48. <artifactId>commons-dbutils</artifactId>
  49. </dependency>
  50. <dependency>
  51. <groupId>net.jpountz.lz4</groupId>
  52. <artifactId>lz4</artifactId>
  53. </dependency>
  54. <!-- logging -->
  55. <dependency>
  56. <groupId>org.slf4j</groupId>
  57. <artifactId>slf4j-api</artifactId>
  58. </dependency>
  59. <dependency>
  60. <groupId>ch.qos.logback</groupId>
  61. <artifactId>logback-classic</artifactId>
  62. </dependency>
  63. <dependency>
  64. <groupId>ch.qos.logback</groupId>
  65. <artifactId>logback-core</artifactId>
  66. </dependency>
  67. <dependency>
  68. <groupId>${project.groupId}</groupId>
  69. <artifactId>sonar-process</artifactId>
  70. <version>${project.version}</version>
  71. </dependency>
  72. <!-- tests -->
  73. <dependency>
  74. <groupId>junit</groupId>
  75. <artifactId>junit</artifactId>
  76. <scope>test</scope>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.assertj</groupId>
  80. <artifactId>assertj-core</artifactId>
  81. <scope>test</scope>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.mockito</groupId>
  85. <artifactId>mockito-core</artifactId>
  86. <scope>test</scope>
  87. </dependency>
  88. <dependency>
  89. <groupId>org.dbunit</groupId>
  90. <artifactId>dbunit</artifactId>
  91. <scope>test</scope>
  92. </dependency>
  93. <dependency>
  94. <groupId>${project.groupId}</groupId>
  95. <artifactId>sonar-testing-harness</artifactId>
  96. <scope>test</scope>
  97. </dependency>
  98. <!--
  99. JDBC drivers for MyBatis integration tests.
  100. They can't be moved to the profile run-mybatis-its because
  101. -->
  102. <dependency>
  103. <groupId>mysql</groupId>
  104. <artifactId>mysql-connector-java</artifactId>
  105. <scope>test</scope>
  106. </dependency>
  107. <dependency>
  108. <groupId>org.postgresql</groupId>
  109. <artifactId>postgresql</artifactId>
  110. <scope>test</scope>
  111. </dependency>
  112. <dependency>
  113. <groupId>com.h2database</groupId>
  114. <artifactId>h2</artifactId>
  115. <scope>test</scope>
  116. </dependency>
  117. </dependencies>
  118. <build>
  119. <plugins>
  120. <plugin>
  121. <groupId>org.apache.maven.plugins</groupId>
  122. <artifactId>maven-jar-plugin</artifactId>
  123. <executions>
  124. <execution>
  125. <goals>
  126. <goal>test-jar</goal>
  127. </goals>
  128. <configuration>
  129. <excludes>
  130. <exclude>logback-test.xml</exclude>
  131. </excludes>
  132. </configuration>
  133. </execution>
  134. </executions>
  135. </plugin>
  136. </plugins>
  137. </build>
  138. <profiles>
  139. <profile>
  140. <id>create-db</id>
  141. <activation>
  142. <property>
  143. <name>env.SONARSOURCE_QA</name>
  144. <value>true</value>
  145. </property>
  146. </activation>
  147. <build>
  148. <plugins>
  149. <plugin>
  150. <groupId>org.apache.maven.plugins</groupId>
  151. <artifactId>maven-dependency-plugin</artifactId>
  152. <executions>
  153. <execution>
  154. <id>download-sq</id>
  155. <goals>
  156. <goal>get</goal>
  157. </goals>
  158. <phase>generate-test-resources</phase>
  159. <configuration>
  160. <artifact>${project.groupId}:sonar-application:${project.version}:zip</artifact>
  161. <transitive>false</transitive>
  162. </configuration>
  163. </execution>
  164. </executions>
  165. </plugin>
  166. <plugin>
  167. <groupId>org.sonarsource.orchestrator</groupId>
  168. <artifactId>orchestrator-maven-plugin</artifactId>
  169. <version>${orchestrator.version}</version>
  170. <executions>
  171. <execution>
  172. <id>create-db</id>
  173. <goals>
  174. <goal>create-db</goal>
  175. </goals>
  176. <phase>generate-test-resources</phase>
  177. <configuration>
  178. <sqVersion>${project.version}</sqVersion>
  179. </configuration>
  180. </execution>
  181. </executions>
  182. </plugin>
  183. </plugins>
  184. </build>
  185. </profile>
  186. </profiles>
  187. </project>