aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-checkstyle-plugin/pom.xml
diff options
context:
space:
mode:
authorEvgeny Mandrikov <mandrikov@gmail.com>2011-10-01 05:14:56 +0400
committerEvgeny Mandrikov <mandrikov@gmail.com>2011-10-26 21:33:15 +0400
commiteb20690f5b006f2e9a1bcb39b5797db19b1c75b2 (patch)
tree89f596dabfed13df6e8334321cf155635dfae6f0 /plugins/sonar-checkstyle-plugin/pom.xml
parentaf58e35a58579484d6521bd3e675c90e43c18623 (diff)
downloadsonarqube-eb20690f5b006f2e9a1bcb39b5797db19b1c75b2.tar.gz
sonarqube-eb20690f5b006f2e9a1bcb39b5797db19b1c75b2.zip
SONAR-2849 Remove declarations of third-party repositories from root pom
Enforce that repositories not declared in pom.xml, except of modules sonar-checkstyle-plugin and sonar-squid-java-plugin due to dependency on Checktyle 5.1, which is not available in Central. This allows to remove side effects in Maven plugins.
Diffstat (limited to 'plugins/sonar-checkstyle-plugin/pom.xml')
-rw-r--r--plugins/sonar-checkstyle-plugin/pom.xml29
1 files changed, 29 insertions, 0 deletions
diff --git a/plugins/sonar-checkstyle-plugin/pom.xml b/plugins/sonar-checkstyle-plugin/pom.xml
index ca05ff09557..d77722f6d66 100644
--- a/plugins/sonar-checkstyle-plugin/pom.xml
+++ b/plugins/sonar-checkstyle-plugin/pom.xml
@@ -17,6 +17,21 @@
<checkstyle.version>5.1</checkstyle.version>
</properties>
+ <repositories>
+ <!-- for checkstyle 5.1 -->
+ <repository>
+ <id>sonar</id>
+ <name>Sonar</name>
+ <url>http://repository.sonarsource.org/content/repositories/sonar</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </repository>
+ </repositories>
+
<dependencies>
<dependency>
<groupId>org.codehaus.sonar</groupId>
@@ -91,6 +106,20 @@
</testResources>
<plugins>
<plugin>
+ <!-- TODO remove (see SONAR-2938) -->
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>enforce-no-repositories</id>
+ <configuration>
+ <skip>true</skip>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
<groupId>org.codehaus.sonar</groupId>
<artifactId>sonar-packaging-maven-plugin</artifactId>
<configuration>