|
@@ -178,38 +178,6 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
<excludePackageNames>org.apache.hadoop.hdfs.protocol.proto</excludePackageNames>
|
|
|
</configuration>
|
|
|
</plugin>
|
|
|
- <plugin>
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-enforcer-plugin</artifactId>
|
|
|
- <dependencies>
|
|
|
- <dependency>
|
|
|
- <groupId>de.skuzzle.enforcer</groupId>
|
|
|
- <artifactId>restrict-imports-enforcer-rule</artifactId>
|
|
|
- <version>${restrict-imports.enforcer.version}</version>
|
|
|
- </dependency>
|
|
|
- </dependencies>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <id>banned-illegal-imports</id>
|
|
|
- <phase>process-sources</phase>
|
|
|
- <goals>
|
|
|
- <goal>enforce</goal>
|
|
|
- </goals>
|
|
|
- <configuration>
|
|
|
- <rules>
|
|
|
- <restrictImports implementation="de.skuzzle.enforcer.restrictimports.rule.RestrictImports">
|
|
|
- <includeTestCode>true</includeTestCode>
|
|
|
- <reason>Use hadoop-common provided VisibleForTesting rather than the one provided by Guava</reason>
|
|
|
- <bannedImports>
|
|
|
- <bannedImport>org.apache.hadoop.thirdparty.com.google.common.annotations.VisibleForTesting</bannedImport>
|
|
|
- <bannedImport>com.google.common.annotations.VisibleForTesting</bannedImport>
|
|
|
- </bannedImports>
|
|
|
- </restrictImports>
|
|
|
- </rules>
|
|
|
- </configuration>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
- </plugin>
|
|
|
</plugins>
|
|
|
</build>
|
|
|
</project>
|