From eb20690f5b006f2e9a1bcb39b5797db19b1c75b2 Mon Sep 17 00:00:00 2001 From: Evgeny Mandrikov Date: Sat, 1 Oct 2011 05:14:56 +0400 Subject: [PATCH] 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. --- plugins/sonar-checkstyle-plugin/pom.xml | 29 +++++++++++++++++++++++++ plugins/sonar-squid-java-plugin/pom.xml | 29 +++++++++++++++++++++++++ pom.xml | 29 ++++++++++++------------- 3 files changed, 72 insertions(+), 15 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 @@ 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. + + + +