flink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "M. Dale" <medal...@yahoo.com>
Subject Compiling Flink for Scala 2.11
Date Mon, 26 Dec 2016 01:16:35 GMT
I cloned the Apache Flink source code from 
https://github.com/apache/flink and
want to build the 1.2-SNAPSHOT with Scala 2.11.

git clone git@github.com:apache/flink.git
cd flink
git checkout remotes/origin/release-1.2

Following instructions from the 1.2 docs at
I then:

tools/change-scala-version.sh 2.11
mvn clean install -DskipTests (I am using Maven 3.3.9)

This gets to flink-dist and then:
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-assembly-plugin:2.4:single (opt)
on project flink-dist_2.11: Failed to create assembly: Error adding file 
to archive:

isn't a file.

It seems that flink/flink-dist/src/main/assemblies/opt.xml does not get 
by the change-scala-version.sh script and still has some 2.10 dependencies.

Did I miss a step? There are 2.11 artifacts in the Maven repos. I see 
the parent pom has a scala.version variable but mostly
the scala version is just hardcoded in the poms and controlled via the tools
script. Changing the _2.10 references in opt.xml allows for successful 
Please advise whether I should file a Jira and pull request to add 
opt.xml to
the change-scala-version.sh script? Or is there a new/different way to 
build for 2.11?


View raw message