flink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Visser, M.J.H. (Martijn)" <martijn.j.h.vis...@ing.com>
Subject RE: Can't build Flink for Scala 2.12
Date Wed, 01 May 2019 06:05:56 GMT
In the meantime, I had a look at the Travis YAML file for examples how there the compilation
for 2.12 is happening. It appears that 1) there might be a typo, because the build profile
is 2.112 instead of 2.12 (see https://github.com/apache/flink/blob/master/.travis.yml#L143)
and there's also not a build profile for only 2.12, it always includes Hadoop

Thanks, Martijn

From: Visser, M.J.H. (Martijn)
Sent: dinsdag 30 april 2019 19:09
To: user@flink.apache.org
Subject: Can't build Flink for Scala 2.12

Hi all,

I'm trying to build Flink (from current master branch) for Scala 2.12, using:

mvn clean install -Pscala-2.12 -Dscala-2.12 -DskipTests

It fails for me on the with this error:

[ERROR] /home/pa35uq/Workspace/flink/flink-table/flink-table-planner-blink/src/main/scala/org/apache/flink/table/plan/metadata/FlinkRelMetadataQuery.scala:52:
error: value EMPTY in class RelMetadataQuery cannot be accessed in object org.apache.calcite.rel.metadata.RelMetadataQuery
[ERROR]  Access to protected value EMPTY not permitted because
[ERROR]  enclosing package metadata in package plan is not a subclass of
[ERROR]  class RelMetadataQuery in package metadata where target is defined
[ERROR]     this(RelMetadataQuery.THREAD_PROVIDERS.get, RelMetadataQuery.EMPTY)
[ERROR]

[ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.2.2:compile (scala-compile-first)
on project flink-table-planner-blink_2.12: wrap: org.apache.commons.exec.ExecuteException:
Process exited with an error: 1 (Exit value: 1) -> [Help 1]

Anyone an idea how to fix this?

Best regards,

Martijn


-----------------------------------------------------------------
ATTENTION:
The information in this e-mail is confidential and only meant for the intended recipient.
If you are not the intended recipient, don't use or disclose it in any way. Please let the
sender know and delete the message immediately.
-----------------------------------------------------------------

Mime
View raw message