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

Duplicate classes on classpath #2

Closed
slawekjaranowski opened this issue Mar 8, 2020 · 4 comments
Closed

Duplicate classes on classpath #2

slawekjaranowski opened this issue Mar 8, 2020 · 4 comments

Comments

@slawekjaranowski
Copy link
Member

I use in my maven project this library in version 1.1.0

Last time I have discovered that on my plugin classpath I see duplicate some classes eg.
org.codehaus.plexus.DefaultPlexusContainer

This class is in two artifacts:

  • org.codehaus.plexus:plexus-container-default:1.0-alpha-9-stable-1 - required by plexus-resources
  • org.eclipse.sisu:org.eclipse.sisu.plexus:0.3.3- required by maven-core and maven-plugin-api

I don't see any problems during plugins works, maybe something is doing by maven-core with plugin classpath.

@slachiewicz
Copy link
Member

Please exclude org.codehaus.plexus:plexus-container-default that component is no longer maintained and sisu is its replacement.

@slawekjaranowski
Copy link
Member Author

As I see plexus-resources is used in many places: https://mvnrepository.com/artifact/org.codehaus.plexus/plexus-resources/usages
so everybody today should exclude this ... the better way is refresh dependency of this component and release new version.

If you interested I can do it.

@slachiewicz
Copy link
Member

Yes, let's try to see how it will look like.
Some time ago I was trying do do something similar: https://github.com/codehaus-plexus/plexus-containers/pull/16/files

@slawekjaranowski
Copy link
Member Author

last PR fix it

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

No branches or pull requests

2 participants