summaryrefslogtreecommitdiffstats
path: root/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 /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 'pom.xml')
-rw-r--r--pom.xml29
1 files changed, 14 insertions, 15 deletions
diff --git a/pom.xml b/pom.xml
index 4c8b9516a83..432b62b4118 100644
--- a/pom.xml
+++ b/pom.xml
@@ -74,21 +74,6 @@
</snapshotRepository>
</distributionManagement>
- <repositories>
- <repository>
- <!-- for checkstyle 5.1-->
- <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>
-
<properties>
<!--
Warning before upgrading Derby to 10.8 : new conversion from BOOLEAN to CHAR.
@@ -370,6 +355,20 @@
</rules>
</configuration>
</execution>
+ <execution>
+ <id>enforce-no-repositories</id>
+ <goals>
+ <goal>enforce</goal>
+ </goals>
+ <configuration>
+ <rules>
+ <requireNoRepositories>
+ <!-- Also see SONAR-2849 -->
+ <message>The rules for repo1.maven.org are that pom.xml files should not include repository definitions.</message>
+ </requireNoRepositories>
+ </rules>
+ </configuration>
+ </execution>
</executions>
</plugin>
<plugin>