Comments (8)
I think some of these may be coming from jersey2guice
and to align them would require a PR to their project.
from dropwizard-guice.
Fixed via 2f42df5
from dropwizard-guice.
Released as part of 0.8.1.1
from dropwizard-guice.
I still need:
<exclusions>
<exclusion>
<groupId>com.google.code.findbugs</groupId>
<artifactId>annotations</artifactId>
</exclusion>
<exclusion>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
</exclusion>
</exclusions>
Otherwise I get:
[WARNING] javax.inject-2.4.0-b10.jar, javax.inject-1.jar define 6 overlappping classes:
[WARNING] - javax.inject.Inject
[WARNING] - javax.inject.Singleton
[WARNING] - javax.inject.Scope
[WARNING] - javax.inject.Named
[WARNING] - javax.inject.Provider
[WARNING] - javax.inject.Qualifier
[WARNING] jsr305-3.0.0.jar, annotations-3.0.0.jar define 35 overlappping classes:
[WARNING] - javax.annotation.RegEx
[WARNING] - javax.annotation.concurrent.Immutable
[WARNING] - javax.annotation.meta.TypeQualifierDefault
[WARNING] - javax.annotation.meta.TypeQualifier
[WARNING] - javax.annotation.Syntax
[WARNING] - javax.annotation.Nonnull
[WARNING] - javax.annotation.CheckReturnValue
[WARNING] - javax.annotation.CheckForNull
[WARNING] - javax.annotation.meta.TypeQualifierNickname
[WARNING] - javax.annotation.MatchesPattern
[WARNING] - 25 more...
[WARNING] maven-shade-plugin has detected that some .class files
[WARNING] are present in two or more JARs. When this happens, only
[WARNING] one single version of the class is copied in the uberjar.
[WARNING] Usually this is not harmful and you can skeep these
[WARNING] warnings, otherwise try to manually exclude artifacts
[WARNING] based on mvn dependency:tree -Ddetail=true and the above
[WARNING] output
[WARNING] See http://docs.codehaus.org/display/MAVENUSER/Shade+Plugin
from dropwizard-guice.
javax.inject:javax.inject
and com.google.code.findbugs:annotations
are the "correct" dependencies to use, something else in your dependency tree must be pulling in org.glassfish.hk2.external:javax.inject
and com.google.code.findbugs:jsr305
from dropwizard-guice.
For javax.inject
the reason is dropwizard-client
:
[INFO] +- io.dropwizard:dropwizard-client:jar:0.8.1:compile
[INFO] | +- org.glassfish.jersey.core:jersey-client:jar:2.17:compile
[INFO] | | +- org.glassfish.jersey.core:jersey-common:jar:2.17:compile
[INFO] | | | +- org.glassfish.jersey.bundles.repackaged:jersey-guava:jar:2.17:compile
[INFO] | | | \- org.glassfish.hk2:osgi-resource-locator:jar:1.0.1:compile
[INFO] | | +- org.glassfish.hk2.external:javax.inject:jar:2.4.0-b10:compile
[INFO] | | \- org.glassfish.hk2:hk2-locator:jar:2.4.0-b10:compile
[INFO] | +- io.dropwizard.metrics:metrics-httpclient:jar:3.1.1:compile
[INFO] | \- org.glassfish.jersey.connectors:jersey-apache-connector:jar:2.17:compile
Isn't it a common usecase to use dropwizard-client
together with dropwizard-guice
?
from dropwizard-guice.
For com.google.code.findbugs:jsr305
the reason is dropwizard-core
:
[INFO] +- io.dropwizard:dropwizard-core:jar:0.8.1:compile
[INFO] | +- io.dropwizard:dropwizard-util:jar:0.8.1:compile
[INFO] | | +- com.google.code.findbugs:jsr305:jar:3.0.0:compile
I am far from being a maven expert. But in my opinion this should be fixed somehow in dropwizard-guice
.
from dropwizard-guice.
Yeah, unfortunately getting rid of those warnings will require an exclusion on jsr305
from dropwizard-guice.
Related Issues (20)
- Can not register jersey client in guice
- Binding annotations on providers don't seem to work HOT 1
- AutoConfig should ignore anonymous class HOT 1
- Dropwizard Not Starting Due to HK2 Failure HOT 4
- dropwizrd-guice not working with Dropwizard-core 1.1.0
- LinkageError ... attempted duplicate class definition for name: "org/glassfish/hk2/api/ServiceLocatorState"
- jersey2-guice is defunct HOT 1
- DropWizard 0.9.1 support? HOT 10
- Are there plans to add DropWizard 1.0.0 support? HOT 5
- No License inside Jar file HOT 4
- Getting a warning at startup: "It appears jersey2-guice-spi is either not present or in conflict with some other Jar" HOT 14
- com.google.inject.OutOfScopeException on inject javax.servlet.http.HttpServletRequest HOT 11
- Binding annotations aren't being consistently honored HOT 3
- Integration Test using mocked beans HOT 1
- @BeanParam + @QueryParam don't work with Dropwizard-guice HOT 6
- when i add a filter to jersey , then Jersey error HOT 5
- Compatiblity with Dropwizard 1.0? HOT 27
- AutoConfig not honouring Guice Singleton annotation on resource classes HOT 1
- How exactly HelloWorldConfiguration and Environment get injected in the example HOT 1
- Deprecated API WARNing in v1.0.0.2 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dropwizard-guice.