Building Flink distribution with Scala2.12

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Building Flink distribution with Scala2.12

Boris Lublinsky
Hi, I am trying to build Flink distribution for Scala 2.12 using the following command:
mvn clean package -pl flink-dist -am -Pscala-2.12 -DskipTests
, but I am getting the following error:

[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce-versions) @ flink-runtime_2.12 ---
[WARNING] Rule 0: org.apache.maven.plugins.enforcer.BannedDependencies failed with message:
Found Banned Dependency: com.typesafe.akka:akka-testkit_2.12:jar:2.4.20
Found Banned Dependency: org.apache.flink:flink-queryable-state-client-java_2.12:jar:1.8.0
Found Banned Dependency: com.typesafe.akka:akka-remote_2.12:jar:2.4.20
Found Banned Dependency: org.scala-lang.modules:scala-java8-compat_2.12:jar:0.8.0
Found Banned Dependency: com.typesafe:ssl-config-core_2.12:jar:0.2.1
Found Banned Dependency: org.clapper:grizzled-slf4j_2.12:jar:1.3.2
Found Banned Dependency: com.github.scopt:scopt_2.12:jar:3.5.0
Found Banned Dependency: com.typesafe.akka:akka-protobuf_2.12:jar:2.4.20
Found Banned Dependency: com.twitter:chill_2.12:jar:0.7.6
Found Banned Dependency: org.scalatest:scalatest_2.12:jar:3.0.0
Found Banned Dependency: com.typesafe.akka:akka-actor_2.12:jar:2.4.20
Found Banned Dependency: com.typesafe.akka:akka-slf4j_2.12:jar:2.4.20
Found Banned Dependency: org.scalactic:scalactic_2.12:jar:3.0.0
Found Banned Dependency: com.typesafe.akka:akka-stream_2.12:jar:2.4.20
Found Banned Dependency: org.scala-lang.modules:scala-xml_2.12:jar:1.0.5
Found Banned Dependency: org.scala-lang.modules:scala-parser-combinators_2.12:jar:1.0.4
Use 'mvn dependency:tree' to locate the source of the banned dependencies.
[INFO] ---------------------------------------------------------------------

Which fails the build.

At the same time, build 

mvn clean package -pl flink-dist -am -Pscala-2.11 -DskipTests
Works fine

Am I doing something wrong?


Boris Lublinsky
FDP Architect
[hidden email]
https://www.lightbend.com/

Reply | Threaded
Open this post in threaded view
|

RE: Building Flink distribution with Scala2.12

Visser, M.J.H. (Martijn)

Hi Boris,

 

I believe you have to change your commando to:

mvn clean package -pl flink-dist -am -Pscala-2.12 -Dscala-2.12 -DskipTests

 

Also see https://issues.apache.org/jira/browse/FLINK-12007

 

Thanks,

 

Martijn

 

From: Boris Lublinsky <[hidden email]>
Sent: woensdag 29 mei 2019 00:38
To: user <[hidden email]>
Subject: Building Flink distribution with Scala2.12

 

Hi, I am trying to build Flink distribution for Scala 2.12 using the following command:

mvn clean package -pl flink-dist -am -Pscala-2.12 -DskipTests

, but I am getting the following error:

 

[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce-versions) @ flink-runtime_2.12 ---

[WARNING] Rule 0: org.apache.maven.plugins.enforcer.BannedDependencies failed with message:

Found Banned Dependency: com.typesafe.akka:akka-testkit_2.12:jar:2.4.20

Found Banned Dependency: org.apache.flink:flink-queryable-state-client-java_2.12:jar:1.8.0

Found Banned Dependency: com.typesafe.akka:akka-remote_2.12:jar:2.4.20

Found Banned Dependency: org.scala-lang.modules:scala-java8-compat_2.12:jar:0.8.0

Found Banned Dependency: com.typesafe:ssl-config-core_2.12:jar:0.2.1

Found Banned Dependency: org.clapper:grizzled-slf4j_2.12:jar:1.3.2

Found Banned Dependency: com.github.scopt:scopt_2.12:jar:3.5.0

Found Banned Dependency: com.typesafe.akka:akka-protobuf_2.12:jar:2.4.20

Found Banned Dependency: com.twitter:chill_2.12:jar:0.7.6

Found Banned Dependency: org.scalatest:scalatest_2.12:jar:3.0.0

Found Banned Dependency: com.typesafe.akka:akka-actor_2.12:jar:2.4.20

Found Banned Dependency: com.typesafe.akka:akka-slf4j_2.12:jar:2.4.20

Found Banned Dependency: org.scalactic:scalactic_2.12:jar:3.0.0

Found Banned Dependency: com.typesafe.akka:akka-stream_2.12:jar:2.4.20

Found Banned Dependency: org.scala-lang.modules:scala-xml_2.12:jar:1.0.5

Found Banned Dependency: org.scala-lang.modules:scala-parser-combinators_2.12:jar:1.0.4

Use 'mvn dependency:tree' to locate the source of the banned dependencies.

[INFO] ---------------------------------------------------------------------

 

Which fails the build.

 

At the same time, build 

 

mvn clean package -pl flink-dist -am -Pscala-2.11 -DskipTests

Works fine

 

Am I doing something wrong?

 

 

Boris Lublinsky
FDP Architect
[hidden email]
https://www.lightbend.com/

 

-----------------------------------------------------------------
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.
-----------------------------------------------------------------
Reply | Threaded
Open this post in threaded view
|

Re: Building Flink distribution with Scala2.12

Boris Lublinsky
Thanks Martijn, this was it.
It would be nice to have this in documentation.

Boris Lublinsky
FDP Architect
[hidden email]
https://www.lightbend.com/

On May 29, 2019, at 5:02 AM, Visser, M.J.H. (Martijn) <[hidden email]> wrote:

Hi Boris,
 
I believe you have to change your commando to:
mvn clean package -pl flink-dist -am -Pscala-2.12 -Dscala-2.12 -DskipTests
 
 
Thanks,
 
Martijn
 
From: Boris Lublinsky <[hidden email]> 
Sent: woensdag 29 mei 2019 00:38
To: user <[hidden email]>
Subject: Building Flink distribution with Scala2.12
 
Hi, I am trying to build Flink distribution for Scala 2.12 using the following command:
mvn clean package -pl flink-dist -am -Pscala-2.12 -DskipTests
, but I am getting the following error:
 
[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce-versions) @ flink-runtime_2.12 ---
[WARNING] Rule 0: org.apache.maven.plugins.enforcer.BannedDependencies failed with message:
Found Banned Dependency: com.typesafe.akka:akka-testkit_2.12:jar:2.4.20
Found Banned Dependency: org.apache.flink:flink-queryable-state-client-java_2.12:jar:1.8.0
Found Banned Dependency: com.typesafe.akka:akka-remote_2.12:jar:2.4.20
Found Banned Dependency: org.scala-lang.modules:scala-java8-compat_2.12:jar:0.8.0
Found Banned Dependency: com.typesafe:ssl-config-core_2.12:jar:0.2.1
Found Banned Dependency: org.clapper:grizzled-slf4j_2.12:jar:1.3.2
Found Banned Dependency: com.github.scopt:scopt_2.12:jar:3.5.0
Found Banned Dependency: com.typesafe.akka:akka-protobuf_2.12:jar:2.4.20
Found Banned Dependency: com.twitter:chill_2.12:jar:0.7.6
Found Banned Dependency: org.scalatest:scalatest_2.12:jar:3.0.0
Found Banned Dependency: com.typesafe.akka:akka-actor_2.12:jar:2.4.20
Found Banned Dependency: com.typesafe.akka:akka-slf4j_2.12:jar:2.4.20
Found Banned Dependency: org.scalactic:scalactic_2.12:jar:3.0.0
Found Banned Dependency: com.typesafe.akka:akka-stream_2.12:jar:2.4.20
Found Banned Dependency: org.scala-lang.modules:scala-xml_2.12:jar:1.0.5
Found Banned Dependency: org.scala-lang.modules:scala-parser-combinators_2.12:jar:1.0.4
Use 'mvn dependency:tree' to locate the source of the banned dependencies.
[INFO] ---------------------------------------------------------------------
 
Which fails the build.
 
At the same time, build 
 
mvn clean package -pl flink-dist -am -Pscala-2.11 -DskipTests
Works fine
 
Am I doing something wrong?
 
 
Boris Lublinsky
FDP Architect
[hidden email]
https://www.lightbend.com/
 
-----------------------------------------------------------------
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.
-----------------------------------------------------------------

Reply | Threaded
Open this post in threaded view
|

Re: Building Flink distribution with Scala2.12

Chesnay Schepler
Thanks Martijn, this was it.
It would be nice to have this in documentation.

Boris Lublinsky
FDP Architect
[hidden email]
https://www.lightbend.com/

On May 29, 2019, at 5:02 AM, Visser, M.J.H. (Martijn) <[hidden email]> wrote:

Hi Boris,
 
I believe you have to change your commando to:
mvn clean package -pl flink-dist -am -Pscala-2.12 -Dscala-2.12 -DskipTests
 
 
Thanks,
 
Martijn
 
From: Boris Lublinsky <[hidden email]> 
Sent: woensdag 29 mei 2019 00:38
To: user <[hidden email]>
Subject: Building Flink distribution with Scala2.12
 
Hi, I am trying to build Flink distribution for Scala 2.12 using the following command:
mvn clean package -pl flink-dist -am -Pscala-2.12 -DskipTests
, but I am getting the following error:
 
[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce-versions) @ flink-runtime_2.12 ---
[WARNING] Rule 0: org.apache.maven.plugins.enforcer.BannedDependencies failed with message:
Found Banned Dependency: com.typesafe.akka:akka-testkit_2.12:jar:2.4.20
Found Banned Dependency: org.apache.flink:flink-queryable-state-client-java_2.12:jar:1.8.0
Found Banned Dependency: com.typesafe.akka:akka-remote_2.12:jar:2.4.20
Found Banned Dependency: org.scala-lang.modules:scala-java8-compat_2.12:jar:0.8.0
Found Banned Dependency: com.typesafe:ssl-config-core_2.12:jar:0.2.1
Found Banned Dependency: org.clapper:grizzled-slf4j_2.12:jar:1.3.2
Found Banned Dependency: com.github.scopt:scopt_2.12:jar:3.5.0
Found Banned Dependency: com.typesafe.akka:akka-protobuf_2.12:jar:2.4.20
Found Banned Dependency: com.twitter:chill_2.12:jar:0.7.6
Found Banned Dependency: org.scalatest:scalatest_2.12:jar:3.0.0
Found Banned Dependency: com.typesafe.akka:akka-actor_2.12:jar:2.4.20
Found Banned Dependency: com.typesafe.akka:akka-slf4j_2.12:jar:2.4.20
Found Banned Dependency: org.scalactic:scalactic_2.12:jar:3.0.0
Found Banned Dependency: com.typesafe.akka:akka-stream_2.12:jar:2.4.20
Found Banned Dependency: org.scala-lang.modules:scala-xml_2.12:jar:1.0.5
Found Banned Dependency: org.scala-lang.modules:scala-parser-combinators_2.12:jar:1.0.4
Use 'mvn dependency:tree' to locate the source of the banned dependencies.
[INFO] ---------------------------------------------------------------------
 
Which fails the build.
 
At the same time, build 
 
mvn clean package -pl flink-dist -am -Pscala-2.11 -DskipTests
Works fine
 
Am I doing something wrong?
 
 
Boris Lublinsky
FDP Architect
[hidden email]
https://www.lightbend.com/
 
-----------------------------------------------------------------
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.
-----------------------------------------------------------------