Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Missing dependency 'class javax.annotation.Nullable'

I was trying to use the jira-rest-java-client provided by Atlassian in a Scala program I am developing. I am using Eclipse as my IDE.

When I have an object of type Issue and I try to look at the properties I see there are far fewer properties than are declared in the Java code.

I thought perhaps this was just Eclipse not finding all properties/methods of an object so I tried putting Issue.getSummary() and doing an sbt compile. The compile showed me this error:

Missing dependency 'class javax.annotation.Nullable'

Any ideas?

like image 861
Jeffrey Cameron Avatar asked Oct 31 '12 16:10

Jeffrey Cameron


1 Answers

I found the answer in this issue on googlecode: http://code.google.com/p/guava-libraries/issues/detail?id=1095. To correct the problem in sbt you need to add this dependency:

"com.google.code.findbugs" % "jsr305" % "1.3.+"
like image 142
Jeffrey Cameron Avatar answered Nov 09 '22 18:11

Jeffrey Cameron