<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>
</testResource>
</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>
<name>Sonar :: Plugins :: Squid Java</name>
<description>Squid analyzer for Java.</description>
+ <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>
<build>
<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>
</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.
</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>