|
@@ -78,38 +78,6 @@
|
|
<excludePackageNames>org.apache.hadoop.yarn.proto:org.apache.hadoop.yarn.federation.proto:org.apache.hadoop.yarn.service</excludePackageNames>
|
|
<excludePackageNames>org.apache.hadoop.yarn.proto:org.apache.hadoop.yarn.federation.proto:org.apache.hadoop.yarn.service</excludePackageNames>
|
|
</configuration>
|
|
</configuration>
|
|
</plugin>
|
|
</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 Sets rather than Guava provided Sets</reason>
|
|
|
|
- <bannedImports>
|
|
|
|
- <bannedImport>org.apache.hadoop.thirdparty.com.google.common.collect.Sets</bannedImport>
|
|
|
|
- <bannedImport>com.google.common.collect.Sets</bannedImport>
|
|
|
|
- </bannedImports>
|
|
|
|
- </restrictImports>
|
|
|
|
- </rules>
|
|
|
|
- </configuration>
|
|
|
|
- </execution>
|
|
|
|
- </executions>
|
|
|
|
- </plugin>
|
|
|
|
</plugins>
|
|
</plugins>
|
|
</build>
|
|
</build>
|
|
|
|
|