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

Duplicated dependency commons-text - liquibase-core #5826

Open
2 tasks done
marwin1991 opened this issue Apr 19, 2024 · 3 comments
Open
2 tasks done

Duplicated dependency commons-text - liquibase-core #5826

marwin1991 opened this issue Apr 19, 2024 · 3 comments

Comments

@marwin1991
Copy link

Search first

  • I searched and no similar issues were found

Description

Hello, I think commons-text dependecy is duplicated, its included in liquibase core and in com.opencsv:opencsv

Good thing that its the same version, but in the future it can cause Jar hell.

Steps To Reproduce

mvn dependency:tree

Expected/Desired Behavior

no duplicated deps

Liquibase Version

4.27.0

Database Vendor & Version

No response

Liquibase Integration

No response

Liquibase Extensions

No response

OS and/or Infrastructure Type/Provider

No response

Additional Context

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR (Thank you!)
@MalloD12
Copy link
Contributor

MalloD12 commented May 7, 2024

Hi @marwin1991,

If you see it duplicated yes I agree we should get rid off one of them. I can see org.apache.commons:commons-text is included by com.opencsv:
Screenshot 2024-05-07 at 12 21 27 AM

I don't see commons-text as a sole dependency of core. If you don't mind could you please share where are you seeing both duplicates?

Thanks,
Daniel.

@marwin1991
Copy link
Author

@MalloD12
sorry for westing your time, I don't know why i thouth it is

i've tested it with:

mvn
      --batch-mode
      validate
      org.apache.maven.plugins:maven-enforcer-plugin:3.4.1:enforce
      -Denforcer.rules=banDuplicatePomDependencyVersions,dependencyConvergence

and it looks okay.

output of mvn dependecy:tree for me looks a bit diffrent:

image

And it looks like here core contains commons-text and opencsv

@MalloD12
Copy link
Contributor

MalloD12 commented May 7, 2024

Hi @marwin1991,

I can see now what you mean. I've been talking with one other member of the team and he pointed me out to the generated pom file and I can see what you were pointing out there.

Maybe we should add common-text as a core dependency to avoid this being included as an inherited dependency, same with commons-collections4. Do you have any other proposal to fix this?

Thanks,
Daniel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Foundation Team Tickets
Development

No branches or pull requests

3 participants