Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sbt assembly deduplicate error #855

Open
alikemalocalan opened this issue Jun 2, 2020 · 2 comments
Open

Sbt assembly deduplicate error #855

alikemalocalan opened this issue Jun 2, 2020 · 2 comments

Comments

@alikemalocalan
Copy link

alikemalocalan commented Jun 2, 2020

i handle this exception at running sbt assembly after upgrade 20.4.1 -> 20.5.0
scala version = 2.12.11
sbt assembly version = 0.14.10
sbt.version = 1.3.10

1 error was encountered during merge [error] java.lang.RuntimeException: deduplicate: different file contents found in the following: [error] /Users/alikemal.ocalan/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-annotations/2.11.0/jackson-annotations-2.11.0.jar:module-info.class [error] /Users/alikemal.ocalan/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-core/2.11.0/jackson-core-2.11.0.jar:module-info.class [error] /Users/alikemal.ocalan/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-databind/2.11.0/jackson-databind-2.11.0.jar:module-info.class [error] /Users/alikemal.ocalan/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/fasterxml/jackson/module/jackson-module-paranamer/2.11.0/jackson-module-paranamer-2.11.0.jar:module-info.class [error] at sbtassembly.Assembly$.applyStrategies(Assembly.scala:143) [error] at sbtassembly.Assembly$.x$1$lzycompute$1(Assembly.scala:25) [error] at sbtassembly.Assembly$.x$1$1(Assembly.scala:23) [error] at sbtassembly.Assembly$.stratMapping$lzycompute$1(Assembly.scala:23) [error] at sbtassembly.Assembly$.stratMapping$1(Assembly.scala:23) [error] at sbtassembly.Assembly$.inputs$lzycompute$1(Assembly.scala:68) [error] at sbtassembly.Assembly$.inputs$1(Assembly.scala:58) [error] at sbtassembly.Assembly$.apply(Assembly.scala:85) [error] at sbtassembly.Assembly$.$anonfun$assemblyTask$1(Assembly.scala:244) [error] at scala.Function1.$anonfun$compose$1(Function1.scala:49) [error] at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:62) [error] at sbt.std.Transform$$anon$4.work(Transform.scala:67) [error] at sbt.Execute.$anonfun$submit$2(Execute.scala:281) [error] at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:19) [error] at sbt.Execute.work(Execute.scala:290) [error] at sbt.Execute.$anonfun$submit$1(Execute.scala:281) [error] at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:178) [error] at sbt.CompletionService$$anon$2.call(CompletionService.scala:37) [error] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) [error] at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [error] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) [error] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [error] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [error] at java.base/java.lang.Thread.run(Thread.java:834) [error] (assembly) deduplicate: different file contents found in the following: [error] /Users/alikemal.ocalan/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-annotations/2.11.0/jackson-annotations-2.11.0.jar:module-info.class [error] /Users/alikemal.ocalan/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-core/2.11.0/jackson-core-2.11.0.jar:module-info.class [error] /Users/alikemal.ocalan/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-databind/2.11.0/jackson-databind-2.11.0.jar:module-info.class [error] /Users/alikemal.ocalan/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/fasterxml/jackson/module/jackson-module-paranamer/2.11.0/jackson-module-paranamer-2.11.0.jar:module-info.class

Expected behavior

As concisely as possible, describe the expected behavior.

Actual behavior

As concisely as possible, describe the observed behavior.

Steps to reproduce the behavior

Please list all relevant steps to reproduce the observed behavior.

@enbnt
Copy link
Contributor

enbnt commented Jul 7, 2020

Hi @alikemalocalan, can you provide a little more context on your setup prior to running the sbt command?

@alikemalocalan
Copy link
Author

Maybe Problem would be adding jackson into every sub project dependencies. why did com.fasterxml.jackson.core had added every finagle util dependencies. maybe it would be enough just to put it in the com.twitter:util-core ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants