Hi all, i've been trying to setup Flink developmen...
# troubleshooting
k
Hi all, i've been trying to setup Flink development environment to fix some bugs that I have discovered following
<https://nightlies.apache.org/flink/flink-docs-master/docs/flinkdev/ide_setup/>
instructions. but on step 7, when i executed
mvn clean package -DskipTests
i'm getting
Copy code
[ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.2.2:testCompile (scala-test-compile) on project flink-scala_2.12: wrap: org.apache.commons.exec.ExecuteException: Process exited with an error: 240 (Exit value: 240) -> [Help 1]
i have Scala 2.12.17, JDK 11, Maven 3.9.0 installed How do I fix this issue?
m
Downgrade your Scala version
Flink is compatible up to Scala 2.12.7
k
Thanks for the response
I have changed Maven to 3.2.5 as specified
<https://nightlies.apache.org/flink/flink-docs-master/docs/flinkdev/building/>
Copy code
NOTE: Maven 3.3.x can build Flink, but will not properly shade away certain dependencies. Maven 3.2.5 creates the libraries properly.
and downgrade scala to 2.12.7, but still ran into another issue
Copy code
flink-core/src/main/java/org/apache/flink/management/jmx/JMXServer.java:123:62
java: package sun.rmi.registry does not exist
then i decided to disable --release option even though the documentation only said to disable when compiling to Java 8 with Java 11 (I'm doing Java 11 to Java 11 compilation), and the step 8 started to work now