diff options
Diffstat (limited to 'sonar-core/pom.xml')
-rw-r--r-- | sonar-core/pom.xml | 35 |
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> |