Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Cannot bundle eventstoreJVM #159

Open
ghostbuster91 opened this issue Aug 4, 2020 · 3 comments
Open

Cannot bundle eventstoreJVM #159

ghostbuster91 opened this issue Aug 4, 2020 · 3 comments

Comments

@ghostbuster91
Copy link

Hi, while trying to execute assemblyPackageDependency I'm getting following error:

[error] 7 errors were encountered during merge
[error] stack trace is suppressed; run last client / assemblyPackageDependency for the full output
[error] stack trace is suppressed; run last examples / assemblyPackageDependency for the full output
[error] stack trace is suppressed; run last assemblyPackageDependency for the full output
[error] (client / assemblyPackageDependency) deduplicate: different file contents found in the following:
[error] /home/kghost/.cache/coursier/v1/https/repo1.maven.org/maven2/com/google/protobuf/protobuf-java/3.7.1/protobuf-java-3.7.1.jar:google/protobuf/compiler/plugin.proto
[error] /home/kghost/.cache/coursier/v1/https/repo1.maven.org/maven2/com/typesafe/akka/akka-protobuf-v3_2.13/2.6.8/akka-protobuf-v3_2.13-2.6.8.jar:google/protobuf/compiler/plugin.proto
[error] deduplicate: different file contents found in the following:
[error] /home/kghost/.cache/coursier/v1/https/repo1.maven.org/maven2/com/google/protobuf/protobuf-java/3.7.1/protobuf-java-3.7.1.jar:google/protobuf/descriptor.proto
[error] /home/kghost/.cache/coursier/v1/https/repo1.maven.org/maven2/com/typesafe/akka/akka-protobuf-v3_2.13/2.6.8/akka-protobuf-v3_2.13-2.6.8.jar:google/protobuf/descriptor.proto
[error] deduplicate: different file contents found in the following:
[error] /home/kghost/.cache/coursier/v1/https/repo1.maven.org/maven2/com/google/protobuf/protobuf-java/3.7.1/protobuf-java-3.7.1.jar:google/protobuf/duration.proto
[error] /home/kghost/.cache/coursier/v1/https/repo1.maven.org/maven2/com/typesafe/akka/akka-protobuf-v3_2.13/2.6.8/akka-protobuf-v3_2.13-2.6.8.jar:google/protobuf/duration.proto
[error] deduplicate: different file contents found in the following:
[error] /home/kghost/.cache/coursier/v1/https/repo1.maven.org/maven2/com/google/protobuf/protobuf-java/3.7.1/protobuf-java-3.7.1.jar:google/protobuf/field_mask.proto
[error] /home/kghost/.cache/coursier/v1/https/repo1.maven.org/maven2/com/typesafe/akka/akka-protobuf-v3_2.13/2.6.8/akka-protobuf-v3_2.13-2.6.8.jar:google/protobuf/field_mask.proto
[error] deduplicate: different file contents found in the following:
[error] /home/kghost/.cache/coursier/v1/https/repo1.maven.org/maven2/com/google/protobuf/protobuf-java/3.7.1/protobuf-java-3.7.1.jar:google/protobuf/struct.proto
[error] /home/kghost/.cache/coursier/v1/https/repo1.maven.org/maven2/com/typesafe/akka/akka-protobuf-v3_2.13/2.6.8/akka-protobuf-v3_2.13-2.6.8.jar:google/protobuf/struct.proto
[error] deduplicate: different file contents found in the following:
[error] /home/kghost/.cache/coursier/v1/https/repo1.maven.org/maven2/com/google/protobuf/protobuf-java/3.7.1/protobuf-java-3.7.1.jar:google/protobuf/timestamp.proto
[error] /home/kghost/.cache/coursier/v1/https/repo1.maven.org/maven2/com/typesafe/akka/akka-protobuf-v3_2.13/2.6.8/akka-protobuf-v3_2.13-2.6.8.jar:google/protobuf/timestamp.proto
[error] deduplicate: different file contents found in the following:
[error] /home/kghost/.cache/coursier/v1/https/repo1.maven.org/maven2/com/google/protobuf/protobuf-java/3.7.1/protobuf-java-3.7.1.jar:google/protobuf/type.proto
[error] /home/kghost/.cache/coursier/v1/https/repo1.maven.org/maven2/com/typesafe/akka/akka-protobuf-v3_2.13/2.6.8/akka-protobuf-v3_2.13-2.6.8.jar:google/protobuf/type.proto
[error] (examples / assemblyPackageDependency) deduplicate: different file contents found in the following:
[error] /home/kghost/.cache/coursier/v1/https/repo1.maven.org/maven2/com/google/protobuf/protobuf-java/3.7.1/protobuf-java-3.7.1.jar:google/protobuf/compiler/plugin.proto
[error] /home/kghost/.cache/coursier/v1/https/repo1.maven.org/maven2/com/typesafe/akka/akka-protobuf-v3_2.13/2.6.8/akka-protobuf-v3_2.13-2.6.8.jar:google/protobuf/compiler/plugin.proto
[error] deduplicate: different file contents found in the following:
[error] /home/kghost/.cache/coursier/v1/https/repo1.maven.org/maven2/com/google/protobuf/protobuf-java/3.7.1/protobuf-java-3.7.1.jar:google/protobuf/descriptor.proto
[error] /home/kghost/.cache/coursier/v1/https/repo1.maven.org/maven2/com/typesafe/akka/akka-protobuf-v3_2.13/2.6.8/akka-protobuf-v3_2.13-2.6.8.jar:google/protobuf/descriptor.proto
[error] deduplicate: different file contents found in the following:
[error] /home/kghost/.cache/coursier/v1/https/repo1.maven.org/maven2/com/google/protobuf/protobuf-java/3.7.1/protobuf-java-3.7.1.jar:google/protobuf/duration.proto
[error] /home/kghost/.cache/coursier/v1/https/repo1.maven.org/maven2/com/typesafe/akka/akka-protobuf-v3_2.13/2.6.8/akka-protobuf-v3_2.13-2.6.8.jar:google/protobuf/duration.proto
[error] deduplicate: different file contents found in the following:
[error] /home/kghost/.cache/coursier/v1/https/repo1.maven.org/maven2/com/google/protobuf/protobuf-java/3.7.1/protobuf-java-3.7.1.jar:google/protobuf/field_mask.proto
[error] /home/kghost/.cache/coursier/v1/https/repo1.maven.org/maven2/com/typesafe/akka/akka-protobuf-v3_2.13/2.6.8/akka-protobuf-v3_2.13-2.6.8.jar:google/protobuf/field_mask.proto
[error] deduplicate: different file contents found in the following:
[error] /home/kghost/.cache/coursier/v1/https/repo1.maven.org/maven2/com/google/protobuf/protobuf-java/3.7.1/protobuf-java-3.7.1.jar:google/protobuf/struct.proto
[error] /home/kghost/.cache/coursier/v1/https/repo1.maven.org/maven2/com/typesafe/akka/akka-protobuf-v3_2.13/2.6.8/akka-protobuf-v3_2.13-2.6.8.jar:google/protobuf/struct.proto
[error] deduplicate: different file contents found in the following:
[error] /home/kghost/.cache/coursier/v1/https/repo1.maven.org/maven2/com/google/protobuf/protobuf-java/3.7.1/protobuf-java-3.7.1.jar:google/protobuf/timestamp.proto
[error] /home/kghost/.cache/coursier/v1/https/repo1.maven.org/maven2/com/typesafe/akka/akka-protobuf-v3_2.13/2.6.8/akka-protobuf-v3_2.13-2.6.8.jar:google/protobuf/timestamp.proto
[error] deduplicate: different file contents found in the following:
[error] /home/kghost/.cache/coursier/v1/https/repo1.maven.org/maven2/com/google/protobuf/protobuf-java/3.7.1/protobuf-java-3.7.1.jar:google/protobuf/type.proto
[error] /home/kghost/.cache/coursier/v1/https/repo1.maven.org/maven2/com/typesafe/akka/akka-protobuf-v3_2.13/2.6.8/akka-protobuf-v3_2.13-2.6.8.jar:google/protobuf/type.proto
[error] (assemblyPackageDependency) deduplicate: different file contents found in the following:
[error] /home/kghost/.cache/coursier/v1/https/repo1.maven.org/maven2/com/google/protobuf/protobuf-java/3.7.1/protobuf-java-3.7.1.jar:google/protobuf/compiler/plugin.proto
[error] /home/kghost/.cache/coursier/v1/https/repo1.maven.org/maven2/com/typesafe/akka/akka-protobuf-v3_2.13/2.6.8/akka-protobuf-v3_2.13-2.6.8.jar:google/protobuf/compiler/plugin.proto
[error] deduplicate: different file contents found in the following:
[error] /home/kghost/.cache/coursier/v1/https/repo1.maven.org/maven2/com/google/protobuf/protobuf-java/3.7.1/protobuf-java-3.7.1.jar:google/protobuf/descriptor.proto
[error] /home/kghost/.cache/coursier/v1/https/repo1.maven.org/maven2/com/typesafe/akka/akka-protobuf-v3_2.13/2.6.8/akka-protobuf-v3_2.13-2.6.8.jar:google/protobuf/descriptor.proto
[error] deduplicate: different file contents found in the following:
[error] /home/kghost/.cache/coursier/v1/https/repo1.maven.org/maven2/com/google/protobuf/protobuf-java/3.7.1/protobuf-java-3.7.1.jar:google/protobuf/duration.proto
[error] /home/kghost/.cache/coursier/v1/https/repo1.maven.org/maven2/com/typesafe/akka/akka-protobuf-v3_2.13/2.6.8/akka-protobuf-v3_2.13-2.6.8.jar:google/protobuf/duration.proto
[error] deduplicate: different file contents found in the following:
[error] /home/kghost/.cache/coursier/v1/https/repo1.maven.org/maven2/com/google/protobuf/protobuf-java/3.7.1/protobuf-java-3.7.1.jar:google/protobuf/field_mask.proto
[error] /home/kghost/.cache/coursier/v1/https/repo1.maven.org/maven2/com/typesafe/akka/akka-protobuf-v3_2.13/2.6.8/akka-protobuf-v3_2.13-2.6.8.jar:google/protobuf/field_mask.proto
[error] deduplicate: different file contents found in the following:
[error] /home/kghost/.cache/coursier/v1/https/repo1.maven.org/maven2/com/google/protobuf/protobuf-java/3.7.1/protobuf-java-3.7.1.jar:google/protobuf/struct.proto
[error] /home/kghost/.cache/coursier/v1/https/repo1.maven.org/maven2/com/typesafe/akka/akka-protobuf-v3_2.13/2.6.8/akka-protobuf-v3_2.13-2.6.8.jar:google/protobuf/struct.proto
[error] deduplicate: different file contents found in the following:
[error] /home/kghost/.cache/coursier/v1/https/repo1.maven.org/maven2/com/google/protobuf/protobuf-java/3.7.1/protobuf-java-3.7.1.jar:google/protobuf/timestamp.proto
[error] /home/kghost/.cache/coursier/v1/https/repo1.maven.org/maven2/com/typesafe/akka/akka-protobuf-v3_2.13/2.6.8/akka-protobuf-v3_2.13-2.6.8.jar:google/protobuf/timestamp.proto
[error] deduplicate: different file contents found in the following:
[error] /home/kghost/.cache/coursier/v1/https/repo1.maven.org/maven2/com/google/protobuf/protobuf-java/3.7.1/protobuf-java-3.7.1.jar:google/protobuf/type.proto
[error] /home/kghost/.cache/coursier/v1/https/repo1.maven.org/maven2/com/typesafe/akka/akka-protobuf-v3_2.13/2.6.8/akka-protobuf-v3_2.13-2.6.8.jar:google/protobuf/type.proto
[error] Total time: 53 s, completed Aug 4, 2020, 11:10:55 AM
[IJ]sbt:root> 

It used to work fine prior to this version (7.2.0)

@ahjohannessen
Copy link
Contributor

Not sure what caused this, but perhaps akka/akka#29014 is related as we bumped akka from
2.6.1 to 2.6.8. I have never used assemblyPackageDependency.

@ghostbuster91
Copy link
Author

ghostbuster91 commented Aug 4, 2020

Yes it is, but I think that it used to work before only by coincidence. It seems like the proto files in akka are not being shaded and conflict emerges whenever there is a mismatch between any of these files and proto files included by other version of google-protobuf library. In other words it used to work because the proto files were equal.

I'm trying to prove that theory, once succeed I will open an issue in akka.

@ghostbuster91
Copy link
Author

As a workaround one can specify a mergeStrategy to drop those files as they are only useful during compile-time or update protobufVersion to 3.11.4 which is the same as the one in akka.

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

No branches or pull requests

2 participants