|Date Added:||22 September 2016|
|File Size:||69.2 Mb|
|Operating Systems:||Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X|
|Price:||Free* [*Free Regsitration Required]|
This scope is only available on the compilation and test classpath, and is not transitive. You still shouldn’t need it at runtime unless you’re doing reflection on the annotations for some reason.
I need migrating my maven project from guava Projects should always have been directly depending on JSR per maven best-practicebut this change makes that should into a must.
Maven Repository: gs » jsr »
Everything in Guava itself should work fine without the JSR jar at runtime. The change was made in Guava So basically because Guava have set this as a provided dependency they expect whoever is consuming Guava to provide this dependency which is exactly what you have had to do.
Everything will work fine in Java at least in Java 7, not sure about Java 8. I updated my maven pom with the dependency:.
Download jsr305-1.3.9.jar : jsr305 « j « Jar File Download
So I’m confused about this whole deal related to runtime retention. That’s because you don’t need the classes for annotations at run-time.
I seem to recall that this is necessary when using the Scala compiler – is that your setup? Asked 5 years, 3 months ago.
Active 4 years, 3 months ago. The side-effect of this change is that projects which relied upon Guava to grant access to the JSR annotations “for free” will break unless they provide their own direct dependency on that jar or an equivalent. This is much like compilebut indicates you expect the JDK or a container to provide the dependency at runtime. Made findbugs a provided dependency to avert dep conflicts when using findbugs 2.
Subscribe to RSS
In my case, I need it at runtime, so DB5 answer fits to me. Email Required, but never shown.
From the maven website they state the following with jsf305 to provided dependencies:. What I find strange is that guava 14 also depends on JSR as mvn repository reports.
FindBugs-jsr – javalibs
Sign up using Email and Password. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. This looks more to a workaround than to a solution, and I would prefer to understand and make things clean. From the release notes: If you were using JSR annotations in your own code, then yeah, you need to depend on it directly now to compile. I took a look closer, and this annotations is provided with JSRon which depends guava While looking for informations on stackoverflow, I have seen a question similar to mine, but with no real answer here.