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

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

Closed
gissuebot opened this issue Oct 31, 2014 · 2 comments
Closed

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

gissuebot opened this issue Oct 31, 2014 · 2 comments

Comments

@gissuebot
Copy link

Original issue created by gerd.riesselmann on 2012-08-03 at 08:46 PM


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

@gissuebot
Copy link
Author

Original comment posted by cpovirk@google.com on 2012-08-03 at 08:52 PM


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."


Status: WorkingAsIntended

@NabinKhatiwada
Copy link

	<dependency>
		<groupId>com.google.code.findbugs</groupId>
		 <artifactId>jsr305</artifactId>
		 <version>3.0.2</version>
	</dependency>

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

2 participants