[ 
https://issues.apache.org/jira/browse/FLINK-6460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15998033#comment-15998033
 ] 

Shashank Agarwal commented on FLINK-6460:
-----------------------------------------

I have solved this issue by adding following Merge Strategy in build.sbt, But 
that was not the case in previous flink versions. If that is the case we can 
add that in documentations.

{code}
assemblyMergeStrategy in assembly := {
  case "META-INF/io.netty.versions.properties" => MergeStrategy.first
  case x =>
    val oldStrategy = (assemblyMergeStrategy in assembly).value
    oldStrategy(x)
}
{code}

> Build Fat Jar failed while building with SBT Assembly flink 1.2.1
> -----------------------------------------------------------------
>
>                 Key: FLINK-6460
>                 URL: https://issues.apache.org/jira/browse/FLINK-6460
>             Project: Flink
>          Issue Type: Bug
>          Components: Build System, Scala API
>    Affects Versions: 1.2.1
>         Environment: Ubuntu 16.04, Scala, SBT, Flink 1.2.1
>            Reporter: Shashank Agarwal
>              Labels: build-failure, flink, sbt, scala
>
> While Creating SBT assembly from command 
> {code}sbt clean assembly{code}
> Getting error deduplicate: different file contents. error log :
> {code}
> [error] (root/*:assembly) deduplicate: different file contents found in the 
> following:
> [error] 
> /Users/shashank/.ivy2/cache/io.netty/netty-handler/jars/netty-handler-4.0.33.Final.jar:META-INF/io.netty.versions.properties
> [error] 
> /Users/shashank/.ivy2/cache/io.netty/netty-buffer/jars/netty-buffer-4.0.33.Final.jar:META-INF/io.netty.versions.properties
> [error] 
> /Users/shashank/.ivy2/cache/io.netty/netty-common/jars/netty-common-4.0.33.Final.jar:META-INF/io.netty.versions.properties
> [error] 
> /Users/shashank/.ivy2/cache/io.netty/netty-transport/jars/netty-transport-4.0.33.Final.jar:META-INF/io.netty.versions.properties
> [error] 
> /Users/shashank/.ivy2/cache/io.netty/netty-codec/jars/netty-codec-4.0.33.Final.jar:META-INF/io.netty.versions.properties
> [error] Total time: 66 s, completed 5 May, 2017 2:47:03 PM
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to