[ https://issues.apache.org/jira/browse/FLINK-6360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15988663#comment-15988663 ]
Greg Hogan commented on FLINK-6360: ----------------------------------- [~till.rohrmann] I tried to remove use of `change-scale-version.sh` yesterday and Maven works fine (though supporting three Scala versions may cause issues in `flink-scala[-shell]/pom.xml`). IntelliJ does not pick up the changes when the `scala-2.11` profile is enabled so I think we need to hard-code and change the top-level artifact IDs but can use `scala.binary.version` elsewhere (which would prevent bugs like these). > Failed to create assembly for Scala 2.11 due to tools/change-scala-version.sh > not changing flink-gelly-examples_2.10 > -------------------------------------------------------------------------------------------------------------------- > > Key: FLINK-6360 > URL: https://issues.apache.org/jira/browse/FLINK-6360 > Project: Flink > Issue Type: Bug > Components: Build System > Affects Versions: 1.3.0 > Reporter: Jacek Laskowski > Priority: Minor > > I'm building Flink for Scala 2.11 using the following command: > {code} > oss; cd flink; gco -- .; gl && \ > ./tools/change-scala-version.sh 2.11 && \ > mvn clean install -DskipTests -Dhadoop.version=2.7.3 -Dscala.version=2.11.7 > {code} > For the past couple of days I've been unable to build Flink because of the > following error: > {code} > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-assembly-plugin:2.6:single (bin) on project > flink-dist_2.11: Failed to create assembly: Error adding file to archive: > /Users/jacek/dev/oss/flink/flink-dist/../flink-libraries/flink-gelly-examples/target/flink-gelly-examples_2.10-1.3-SNAPSHOT.jar > -> [Help 1] > {code} > I've been able to trace it down to {{flink-dist/src/main/assemblies/bin.xml}} > not being changed by {{./tools/change-scala-version.sh}} so the build tries > to include {{flink-gelly-examples_2.10}} rather than > {{flink-gelly-examples_2.11}}. > Please comment if my reasoning is correct or not and I'd be happy to work on > it. Thanks. -- This message was sent by Atlassian JIRA (v6.3.15#6346)