Guice多重绑定包在导入中丢失 [英] Guice multibindings package missing in imports

查看:83
本文介绍了Guice多重绑定包在导入中丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在我的IDE中通过常春藤获取了google.inject程序包,但是我看不到

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

com.google.inject.multibindings.Multibinder

此处引用了

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

我想知道---也许我应该从中提取多个guice repost?

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

但是,我确实看到了以下软件包:com.google.inject->活页夹/内部/匹配器/实用程序

我的常春藤定义:

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

推荐答案

它在"guice-multibindings"工件中.

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

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

mvn存储库信息

(FWIW,有时通过下载项目的主要工件并取消存档就可以很容易地找到类似这样的信息,我只是查看了所放置的版本,然后看到了jar文件,然后在mvnrepository上搜索了"guice",就在那里.)

(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.)

这篇关于Guice多重绑定包在导入中丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆