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 found by the classloader #10

Open
berezovskyi opened this issue Oct 27, 2020 · 1 comment
Open

Duplicate classes found by the classloader #10

berezovskyi opened this issue Oct 27, 2020 · 1 comment

Comments

@berezovskyi
Copy link
Member

Maven output ``` [WARNING] javax.ws.rs.core.NewCookie scanned from multiple locations: jar:file:///Users/ezandbe/.m2/repository/jakarta/ws/rs/jakarta.ws.rs-api/2.1.5/jakarta.ws.rs-api-2.1.5.jar!/javax/ws/rs/core/NewCookie.class, jar:file:///Users/ezandbe/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.0.1/javax.ws.rs-api-2.0.1.jar!/javax/ws/rs/core/NewCookie.class [WARNING] javax.ws.rs.core.NoContentException scanned from multiple locations: jar:file:///Users/ezandbe/.m2/repository/jakarta/ws/rs/jakarta.ws.rs-api/2.1.5/jakarta.ws.rs-api-2.1.5.jar!/javax/ws/rs/core/NoContentException.class, jar:file:///Users/ezandbe/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.0.1/javax.ws.rs-api-2.0.1.jar!/javax/ws/rs/core/NoContentException.class [WARNING] javax.ws.rs.core.PathSegment scanned from multiple locations: jar:file:///Users/ezandbe/.m2/repository/jakarta/ws/rs/jakarta.ws.rs-api/2.1.5/jakarta.ws.rs-api-2.1.5.jar!/javax/ws/rs/core/PathSegment.class, jar:file:///Users/ezandbe/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.0.1/javax.ws.rs-api-2.0.1.jar!/javax/ws/rs/core/PathSegment.class [WARNING] javax.ws.rs.core.Request scanned from multiple locations: jar:file:///Users/ezandbe/.m2/repository/jakarta/ws/rs/jakarta.ws.rs-api/2.1.5/jakarta.ws.rs-api-2.1.5.jar!/javax/ws/rs/core/Request.class, jar:file:///Users/ezandbe/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.0.1/javax.ws.rs-api-2.0.1.jar!/javax/ws/rs/core/Request.class [WARNING] javax.ws.rs.core.Response$ResponseBuilder scanned from multiple locations: jar:file:///Users/ezandbe/.m2/repository/jakarta/ws/rs/jakarta.ws.rs-api/2.1.5/jakarta.ws.rs-api-2.1.5.jar!/javax/ws/rs/core/Response$ResponseBuilder.class, jar:file:///Users/ezandbe/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.0.1/javax.ws.rs-api-2.0.1.jar!/javax/ws/rs/core/Response$ResponseBuilder.class [WARNING] javax.ws.rs.core.Response$Status$Family scanned from multiple locations: jar:file:///Users/ezandbe/.m2/repository/jakarta/ws/rs/jakarta.ws.rs-api/2.1.5/jakarta.ws.rs-api-2.1.5.jar!/javax/ws/rs/core/Response$Status$Family.class, jar:file:///Users/ezandbe/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.0.1/javax.ws.rs-api-2.0.1.jar!/javax/ws/rs/core/Response$Status$Family.class [WARNING] javax.ws.rs.core.Response$Status scanned from multiple locations: jar:file:///Users/ezandbe/.m2/repository/jakarta/ws/rs/jakarta.ws.rs-api/2.1.5/jakarta.ws.rs-api-2.1.5.jar!/javax/ws/rs/core/Response$Status.class, jar:file:///Users/ezandbe/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.0.1/javax.ws.rs-api-2.0.1.jar!/javax/ws/rs/core/Response$Status.class [WARNING] javax.ws.rs.core.Response$StatusType scanned from multiple locations: jar:file:///Users/ezandbe/.m2/repository/jakarta/ws/rs/jakarta.ws.rs-api/2.1.5/jakarta.ws.rs-api-2.1.5.jar!/javax/ws/rs/core/Response$StatusType.class, jar:file:///Users/ezandbe/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.0.1/javax.ws.rs-api-2.0.1.jar!/javax/ws/rs/core/Response$StatusType.class [WARNING] javax.ws.rs.core.Response scanned from multiple locations: jar:file:///Users/ezandbe/.m2/repository/jakarta/ws/rs/jakarta.ws.rs-api/2.1.5/jakarta.ws.rs-api-2.1.5.jar!/javax/ws/rs/core/Response.class, jar:file:///Users/ezandbe/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.0.1/javax.ws.rs-api-2.0.1.jar!/javax/ws/rs/core/Response.class [WARNING] javax.ws.rs.core.SecurityContext scanned from multiple locations: jar:file:///Users/ezandbe/.m2/repository/jakarta/ws/rs/jakarta.ws.rs-api/2.1.5/jakarta.ws.rs-api-2.1.5.jar!/javax/ws/rs/core/SecurityContext.class, jar:file:///Users/ezandbe/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.0.1/javax.ws.rs-api-2.0.1.jar!/javax/ws/rs/core/SecurityContext.class [WARNING] javax.ws.rs.core.StreamingOutput scanned from multiple locations: jar:file:///Users/ezandbe/.m2/repository/jakarta/ws/rs/jakarta.ws.rs-api/2.1.5/jakarta.ws.rs-api-2.1.5.jar!/javax/ws/rs/core/StreamingOutput.class, jar:file:///Users/ezandbe/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.0.1/javax.ws.rs-api-2.0.1.jar!/javax/ws/rs/core/StreamingOutput.class [WARNING] javax.ws.rs.core.UriBuilder scanned from multiple locations: jar:file:///Users/ezandbe/.m2/repository/jakarta/ws/rs/jakarta.ws.rs-api/2.1.5/jakarta.ws.rs-api-2.1.5.jar!/javax/ws/rs/core/UriBuilder.class, jar:file:///Users/ezandbe/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.0.1/javax.ws.rs-api-2.0.1.jar!/javax/ws/rs/core/UriBuilder.class [WARNING] javax.ws.rs.core.UriBuilderException scanned from multiple locations: jar:file:///Users/ezandbe/.m2/repository/jakarta/ws/rs/jakarta.ws.rs-api/2.1.5/jakarta.ws.rs-api-2.1.5.jar!/javax/ws/rs/core/UriBuilderException.class, jar:file:///Users/ezandbe/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.0.1/javax.ws.rs-api-2.0.1.jar!/javax/ws/rs/core/UriBuilderException.class [WARNING] javax.ws.rs.core.UriInfo scanned from multiple locations: jar:file:///Users/ezandbe/.m2/repository/jakarta/ws/rs/jakarta.ws.rs-api/2.1.5/jakarta.ws.rs-api-2.1.5.jar!/javax/ws/rs/core/UriInfo.class, jar:file:///Users/ezandbe/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.0.1/javax.ws.rs-api-2.0.1.jar!/javax/ws/rs/core/UriInfo.class [WARNING] javax.ws.rs.core.Variant$VariantListBuilder scanned from multiple locations: jar:file:///Users/ezandbe/.m2/repository/jakarta/ws/rs/jakarta.ws.rs-api/2.1.5/jakarta.ws.rs-api-2.1.5.jar!/javax/ws/rs/core/Variant$VariantListBuilder.class, jar:file:///Users/ezandbe/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.0.1/javax.ws.rs-api-2.0.1.jar!/javax/ws/rs/core/Variant$VariantListBuilder.class [WARNING] javax.ws.rs.core.Variant scanned from multiple locations: jar:file:///Users/ezandbe/.m2/repository/jakarta/ws/rs/jakarta.ws.rs-api/2.1.5/jakarta.ws.rs-api-2.1.5.jar!/javax/ws/rs/core/Variant.class, jar:file:///Users/ezandbe/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.0.1/javax.ws.rs-api-2.0.1.jar!/javax/ws/rs/core/Variant.class [WARNING] javax.ws.rs.ext.ContextResolver scanned from multiple locations: jar:file:///Users/ezandbe/.m2/repository/jakarta/ws/rs/jakarta.ws.rs-api/2.1.5/jakarta.ws.rs-api-2.1.5.jar!/javax/ws/rs/ext/ContextResolver.class, jar:file:///Users/ezandbe/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.0.1/javax.ws.rs-api-2.0.1.jar!/javax/ws/rs/ext/ContextResolver.class [WARNING] javax.ws.rs.ext.ExceptionMapper scanned from multiple locations: jar:file:///Users/ezandbe/.m2/repository/jakarta/ws/rs/jakarta.ws.rs-api/2.1.5/jakarta.ws.rs-api-2.1.5.jar!/javax/ws/rs/ext/ExceptionMapper.class, jar:file:///Users/ezandbe/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.0.1/javax.ws.rs-api-2.0.1.jar!/javax/ws/rs/ext/ExceptionMapper.class [WARNING] javax.ws.rs.ext.FactoryFinder scanned from multiple locations: jar:file:///Users/ezandbe/.m2/repository/jakarta/ws/rs/jakarta.ws.rs-api/2.1.5/jakarta.ws.rs-api-2.1.5.jar!/javax/ws/rs/ext/FactoryFinder.class, jar:file:///Users/ezandbe/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.0.1/javax.ws.rs-api-2.0.1.jar!/javax/ws/rs/ext/FactoryFinder.class [WARNING] javax.ws.rs.ext.InterceptorContext scanned from multiple locations: jar:file:///Users/ezandbe/.m2/repository/jakarta/ws/rs/jakarta.ws.rs-api/2.1.5/jakarta.ws.rs-api-2.1.5.jar!/javax/ws/rs/ext/InterceptorContext.class, jar:file:///Users/ezandbe/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.0.1/javax.ws.rs-api-2.0.1.jar!/javax/ws/rs/ext/InterceptorContext.class [WARNING] javax.ws.rs.ext.MessageBodyReader scanned from multiple locations: jar:file:///Users/ezandbe/.m2/repository/jakarta/ws/rs/jakarta.ws.rs-api/2.1.5/jakarta.ws.rs-api-2.1.5.jar!/javax/ws/rs/ext/MessageBodyReader.class, jar:file:///Users/ezandbe/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.0.1/javax.ws.rs-api-2.0.1.jar!/javax/ws/rs/ext/MessageBodyReader.class [WARNING] javax.ws.rs.ext.MessageBodyWriter scanned from multiple locations: jar:file:///Users/ezandbe/.m2/repository/jakarta/ws/rs/jakarta.ws.rs-api/2.1.5/jakarta.ws.rs-api-2.1.5.jar!/javax/ws/rs/ext/MessageBodyWriter.class, jar:file:///Users/ezandbe/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.0.1/javax.ws.rs-api-2.0.1.jar!/javax/ws/rs/ext/MessageBodyWriter.class [WARNING] javax.ws.rs.ext.ParamConverter$Lazy scanned from multiple locations: jar:file:///Users/ezandbe/.m2/repository/jakarta/ws/rs/jakarta.ws.rs-api/2.1.5/jakarta.ws.rs-api-2.1.5.jar!/javax/ws/rs/ext/ParamConverter$Lazy.class, jar:file:///Users/ezandbe/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.0.1/javax.ws.rs-api-2.0.1.jar!/javax/ws/rs/ext/ParamConverter$Lazy.class [WARNING] javax.ws.rs.ext.ParamConverter scanned from multiple locations: jar:file:///Users/ezandbe/.m2/repository/jakarta/ws/rs/jakarta.ws.rs-api/2.1.5/jakarta.ws.rs-api-2.1.5.jar!/javax/ws/rs/ext/ParamConverter.class, jar:file:///Users/ezandbe/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.0.1/javax.ws.rs-api-2.0.1.jar!/javax/ws/rs/ext/ParamConverter.class [WARNING] javax.ws.rs.ext.ParamConverterProvider scanned from multiple locations: jar:file:///Users/ezandbe/.m2/repository/jakarta/ws/rs/jakarta.ws.rs-api/2.1.5/jakarta.ws.rs-api-2.1.5.jar!/javax/ws/rs/ext/ParamConverterProvider.class, jar:file:///Users/ezandbe/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.0.1/javax.ws.rs-api-2.0.1.jar!/javax/ws/rs/ext/ParamConverterProvider.class [WARNING] javax.ws.rs.ext.Provider scanned from multiple locations: jar:file:///Users/ezandbe/.m2/repository/jakarta/ws/rs/jakarta.ws.rs-api/2.1.5/jakarta.ws.rs-api-2.1.5.jar!/javax/ws/rs/ext/Provider.class, jar:file:///Users/ezandbe/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.0.1/javax.ws.rs-api-2.0.1.jar!/javax/ws/rs/ext/Provider.class [WARNING] javax.ws.rs.ext.Providers scanned from multiple locations: jar:file:///Users/ezandbe/.m2/repository/jakarta/ws/rs/jakarta.ws.rs-api/2.1.5/jakarta.ws.rs-api-2.1.5.jar!/javax/ws/rs/ext/Providers.class, jar:file:///Users/ezandbe/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.0.1/javax.ws.rs-api-2.0.1.jar!/javax/ws/rs/ext/Providers.class [WARNING] javax.ws.rs.ext.ReaderInterceptor scanned from multiple locations: jar:file:///Users/ezandbe/.m2/repository/jakarta/ws/rs/jakarta.ws.rs-api/2.1.5/jakarta.ws.rs-api-2.1.5.jar!/javax/ws/rs/ext/ReaderInterceptor.class, jar:file:///Users/ezandbe/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.0.1/javax.ws.rs-api-2.0.1.jar!/javax/ws/rs/ext/ReaderInterceptor.class [WARNING] javax.ws.rs.ext.ReaderInterceptorContext scanned from multiple locations: jar:file:///Users/ezandbe/.m2/repository/jakarta/ws/rs/jakarta.ws.rs-api/2.1.5/jakarta.ws.rs-api-2.1.5.jar!/javax/ws/rs/ext/ReaderInterceptorContext.class, jar:file:///Users/ezandbe/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.0.1/javax.ws.rs-api-2.0.1.jar!/javax/ws/rs/ext/ReaderInterceptorContext.class [WARNING] javax.ws.rs.ext.RuntimeDelegate$HeaderDelegate scanned from multiple locations: jar:file:///Users/ezandbe/.m2/repository/jakarta/ws/rs/jakarta.ws.rs-api/2.1.5/jakarta.ws.rs-api-2.1.5.jar!/javax/ws/rs/ext/RuntimeDelegate$HeaderDelegate.class, jar:file:///Users/ezandbe/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.0.1/javax.ws.rs-api-2.0.1.jar!/javax/ws/rs/ext/RuntimeDelegate$HeaderDelegate.class [WARNING] javax.ws.rs.ext.RuntimeDelegate scanned from multiple locations: jar:file:///Users/ezandbe/.m2/repository/jakarta/ws/rs/jakarta.ws.rs-api/2.1.5/jakarta.ws.rs-api-2.1.5.jar!/javax/ws/rs/ext/RuntimeDelegate.class, jar:file:///Users/ezandbe/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.0.1/javax.ws.rs-api-2.0.1.jar!/javax/ws/rs/ext/RuntimeDelegate.class [WARNING] javax.ws.rs.ext.WriterInterceptor scanned from multiple locations: jar:file:///Users/ezandbe/.m2/repository/jakarta/ws/rs/jakarta.ws.rs-api/2.1.5/jakarta.ws.rs-api-2.1.5.jar!/javax/ws/rs/ext/WriterInterceptor.class, jar:file:///Users/ezandbe/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.0.1/javax.ws.rs-api-2.0.1.jar!/javax/ws/rs/ext/WriterInterceptor.class [WARNING] javax.ws.rs.ext.WriterInterceptorContext scanned from multiple locations: jar:file:///Users/ezandbe/.m2/repository/jakarta/ws/rs/jakarta.ws.rs-api/2.1.5/jakarta.ws.rs-api-2.1.5.jar!/javax/ws/rs/ext/WriterInterceptorContext.class, jar:file:///Users/ezandbe/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.0.1/javax.ws.rs-api-2.0.1.jar!/javax/ws/rs/ext/WriterInterceptorContext.class ```
@berezovskyi
Copy link
Member Author

See #93 (comment)

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

No branches or pull requests

1 participant