Hi all,

I was trying to build flink source code by using mvn clean install -DskipTests 
command, and it turned out report build failure and the following error info:


[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.8.0:testCompile 
(default-testCompile) on project flink-runtime: Compilation failure: 
Compilation failure: 
[ERROR] 
/opt/source-code/flink-master/flink-runtime/src/test/java/org/apache/flink/runtime/taskexecutor/TaskManagerRunnerConfigurationTest.java:[45,20]
 sun.net.util.IPAddressUtil is internal proprietary API and may be removed in a 
future release
[ERROR] 
/opt/source-code/flink-master/flink-runtime/src/test/java/org/apache/flink/runtime/taskexecutor/TaskManagerRunnerConfigurationTest.java:[45,20]
 sun.net.util.IPAddressUtil is internal proprietary API and may be removed in a 
future release
[ERROR] 
/opt/source-code/flink-master/flink-runtime/src/test/java/org/apache/flink/runtime/taskexecutor/TaskManagerRunnerConfigurationTest.java:[45,20]
 sun.net.util.IPAddressUtil is internal proprietary API and may be removed in a 
future release
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :flink-runtime


And my system configuration is shown as following:
Maven home: /opt/apache-maven-3.8.4
Java version: 11, vendor: Oracle Corporation, runtime: /usr/java/jdk-11
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-431.el6.x86_64", arch: "amd64", family: 
"unix"


Can anyone suggest anything to help me fix this? Thanks in advance!

Reply via email to