aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core/pom.xml
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2011-11-10 15:47:39 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2011-11-10 16:07:11 +0100
commit4869dfedbf3f95537889ce5d1f13a42616c9ce8c (patch)
treecb96fd54fce1762dbe242d1dc13222df8998f26b /sonar-core/pom.xml
parentbfd65b9192884e560f50c62fe8e852034b8e2990 (diff)
downloadsonarqube-4869dfedbf3f95537889ce5d1f13a42616c9ce8c.tar.gz
sonarqube-4869dfedbf3f95537889ce5d1f13a42616c9ce8c.zip
MyBatis: prefix SQL requests with schema, when available.
Add support for integration tests, hosted at SonarSource.
Diffstat (limited to 'sonar-core/pom.xml')
-rw-r--r--sonar-core/pom.xml35
1 files changed, 34 insertions, 1 deletions
diff --git a/sonar-core/pom.xml b/sonar-core/pom.xml
index aae6c8d74f5..dba6c874164 100644
--- a/sonar-core/pom.xml
+++ b/sonar-core/pom.xml
@@ -138,7 +138,10 @@
<scope>test</scope>
</dependency>
- <!-- JDBC drivers for MyBatis integration tests -->
+ <!--
+ JDBC drivers for MyBatis integration tests.
+ They can't be moved to the profile run-mybatis-its because
+ -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
@@ -155,4 +158,34 @@
<scope>test</scope>
</dependency>
</dependencies>
+
+ <profiles>
+ <profile>
+ <!-- Integration Tests are not open-source -->
+ <!-- This profile is for internal use at SonarSource -->
+ <id>run-mybatis-its</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <includes>
+ <include>org/sonar/persistence/dao/*Test.java</include>
+ </includes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <!-- this artifact is located in the SonarSource internal repository -->
+ <groupId>com.oracle</groupId>
+ <artifactId>ojdbc5</artifactId>
+ <version>11.2.0.2.0</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ </profile>
+ </profiles>
</project>