yf0994 / guava-libraries

Automatically exported from code.google.com/p/guava-libraries
Apache License 2.0
0 stars 0 forks source link

Missing dependency 'class javax.annotation.Nullable' #1095

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I get the following error when using the 13.0 jar from Maven repositories 
against Scala 2.9.2:

error while loading Cache, Missing dependency 'class 
javax.annotation.Nullable', required by 
..../scala_2.9.2/compile/guava-13.0.jar(com/google/common/cache/Cache.class)

It works with 12.0.1

Original issue reported on code.google.com by gerd.rie...@gmail.com on 3 Aug 2012 at 8:46

GoogleCodeExporter commented 9 years ago
See this thread for some discussion:

https://groups.google.com/d/msg/guava-discuss/LV0oLNFpnAU/pp40shiiBKMJ

Scala requires annotation classes to be present, contrary to the way they were 
designed.

"This is due to the Scala compiler, which needs all of the artifacts left in 
the byte-code."

"I was able to work around the problem by adding "com.google.code.findbugs" % 
"jsr305" % "1.3.+" in my list of dependencies."

Original comment by cpov...@google.com on 3 Aug 2012 at 8:52

GoogleCodeExporter commented 9 years ago
This issue has been migrated to GitHub.

It can be found at https://github.com/google/guava/issues/<id>

Original comment by cgdecker@google.com on 1 Nov 2014 at 4:13

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 3 Nov 2014 at 9:08