Guice multibindings package missing in imports

筅森魡賤 提交于 2019-12-11 13:34:08

问题


I have acquired the google.inject package via ivy in my IDE, however, I dont see the pacakage

com.google.inject.multibindings.Multibinder

Which is referenced here

http://google-guice.googlecode.com/svn/trunk/latest-javadoc/com/google/inject/multibindings/Multibinder.html

I'm wondering --- maybe there are multiple guice repost which I should pull from ?

I do, however, see the following packages : com.google.inject -> binder/internal/matcher/util

My ivy definition :

 <dependency org="com.google.inject" name="guice" rev="3.0" conf="*->*,!javadoc"/>

回答1:


It's in the "guice-multibindings" artifact.

<dependency org="com.google.inject.extensions" name="guice-multibindings" rev="3.0"/>

mvnrepository info

(FWIW, sometimes info like this is easy to discover by downloading a project's main artifact(s) and un-archiving it, I just looked at the version I had laying around and saw the jar file then searched on mvnrepository for "guice", and there it was.)



来源:https://stackoverflow.com/questions/8688538/guice-multibindings-package-missing-in-imports

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!