apache / apache/arrow-java

[Java] sbt docker publish fails due to Arrow dependecies

Open
#283 3 comments 0 reactions 0 assignees View on GitHub
Type: bug
Dominant language
Java
Stars
94
Forks
152
Avg merge
3d 16h
Merged PRs (30d)
11

Description

Hello guys

I'm using Arrow in my Scala project and included Maven deps in sbt as required.

However, when I try to publish a Docker container with sbt 'docker:publish', I get the following error:

[error] 1 error was encountered during merge
[error] java.lang.RuntimeException: deduplicate: different file contents found in the following:

[error] /home/bku/.cache/coursier/v1/https/repo1.maven.org/maven2/org/apache/arrow/arrow-vector/0.14.1/arrow-vector-0.14.1.jar:git.properties
[error] /home/bku/.cache/coursier/v1/https/repo1.maven.org/maven2/org/apache/arrow/arrow-format/0.14.1/arrow-format-0.14.1.jar:git.properties
[error] /home/bku/.cache/coursier/v1/https/repo1.maven.org/maven2/org/apache/arrow/arrow-memory/0.14.1/arrow-memory-0.14.1.jar:git.properties

My project is [here](https://github.com/Clover-Group/tsp/tree/kafka).

You may check project dependency tree attached.

How do I fix that?

Thank you

**Reporter**: [Boris V.Kuznetsov](https://issues.apache.org/jira/browse/ARROW-6361)
#### Related issues:
- [[Java] Inclusion of a git.properties resource in Arrow JARs causes confusion in Spring Boot applications](https://github.com/apache/arrow/issues/32154) (relates to)
#### Original Issue Attachments:
- [tree.txt](https://issues.apache.org/jira/secure/attachment/12978611/tree.txt)

**Note**: *This issue was originally created as [ARROW-6361](https://issues.apache.org/jira/browse/ARROW-6361). Please see the [migration documentation](https://github.com/apache/arrow/issues/14542) for further details.*

Contributor guide

Open the contributing guide

Research direction

Start by reproducing sbt's docker:publish failure and inspect the attached tree.txt dependency tree, focusing on the Arrow JARs listed in the error. Done means the Docker publish completes without the duplicate git.properties merge error; the issue does not identify a source file or test to change.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, java, scala
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.