Browse Source

HDFS-11610. sun.net.spi.nameservice.NameService has moved to a new location. Contributed by Akira Ajisaka.

Takanobu Asanuma 6 years ago
parent
commit
2b18bb4f37
1 changed files with 18 additions and 1 deletions
  1. 18 1
      hadoop-hdfs-project/hadoop-hdfs/pom.xml

+ 18 - 1
hadoop-hdfs-project/hadoop-hdfs/pom.xml

@@ -580,6 +580,23 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">
         </plugins>
         </plugins>
       </build>
       </build>
     </profile>
     </profile>
-
+    <profile>
+      <id>java9</id>
+      <activation>
+        <jdk>[9,)</jdk>
+      </activation>
+      <build>
+        <plugins>
+          <plugin>
+            <artifactId>maven-compiler-plugin</artifactId>
+            <configuration>
+              <testExcludes>
+                <testExclude>org/apache/hadoop/hdfs/TestDFSClientFailover.java</testExclude>
+              </testExcludes>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
   </profiles>
   </profiles>
 </project>
 </project>