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 @@
5.1
+
+
+
+ sonar
+ Sonar
+ http://repository.sonarsource.org/content/repositories/sonar
+
+ true
+
+
+ false
+
+
+
+
org.codehaus.sonar
@@ -90,6 +105,20 @@
+
+
+ org.apache.maven.plugins
+ maven-enforcer-plugin
+
+
+ enforce-no-repositories
+
+ true
+
+
+
+
+
org.codehaus.sonar
sonar-packaging-maven-plugin
diff --git a/plugins/sonar-squid-java-plugin/pom.xml b/plugins/sonar-squid-java-plugin/pom.xml
index 11b76dbdf15..e3920ee4d9b 100644
--- a/plugins/sonar-squid-java-plugin/pom.xml
+++ b/plugins/sonar-squid-java-plugin/pom.xml
@@ -13,6 +13,21 @@
Sonar :: Plugins :: Squid Java
Squid analyzer for Java.
+
+
+
+ sonar
+ Sonar
+ http://repository.sonarsource.org/content/repositories/sonar
+
+ true
+
+
+ false
+
+
+
+
org.codehaus.sonar
@@ -85,6 +100,20 @@
+
+
+ org.apache.maven.plugins
+ maven-enforcer-plugin
+
+
+ enforce-no-repositories
+
+ true
+
+
+
+
+
org.codehaus.sonar
sonar-packaging-maven-plugin
diff --git a/pom.xml b/pom.xml
index 4c8b9516a83..432b62b4118 100644
--- a/pom.xml
+++ b/pom.xml
@@ -74,21 +74,6 @@
-
-
-
- sonar
- Sonar
- http://repository.sonarsource.org/content/repositories/sonar
-
- true
-
-
- false
-
-
-
-
+ The rules for repo1.maven.org are that pom.xml files should not include repository definitions.
+
+
+
+