Java maven repo 中是否有番石榴库?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2550441/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-13 09:09:59  来源:igfitidea点击:

is guava-libraries available in maven repo?

javamavenguava

提问by mjlee

I am looking to find guava-libraries in maven repository. It looks like guava is adding more features to google-collections library.

我想在 Maven 存储库中找到番石榴库。看起来 guava 正在向 google-collections 库添加更多功能。

采纳答案by Etienne Neveu

Starting from r03, Guava releases may be found in the central Maven repository.

从 r03 开始​​,可以在中央 Maven 存储库中找到 Guava 版本。

You may include Guava by adding the following dependency to your POM:

您可以通过向 POM 添加以下依赖项来包含 Guava:

<dependency>
    <groupId>com.google.guava</groupId>
    <artifactId>guava</artifactId>
    <version>23.0</version>
</dependency>

Note: the above version number may be outdated when you read this. To know the latest available version, you may look here

注意:当您阅读本文时,上述版本号可能已过时。要了解最新的可用版本,您可以查看这里

Version updated on 19th Oct 2017.

版本更新于 2017 年 10 月 19 日。

回答by Peter Kahn

mvnrepositoryis your friend. It has an index of maven repository space with maven, ivy and other details about artifacts.

mvnrepository是你的朋友。它有一个 maven 存储库空间索引,其中包含 maven、ivy 和其他有关工件的详细信息。

回答by Sambhav Sharma

You can find all guava maven repositories here: http://mvnrepository.com/artifact/com.google.guava

您可以在此处找到所有 guava maven 存储库:http: //mvnrepository.com/artifact/com.google.guava

回答by JBaruch

Bintray's JCenteris a superset of Maven Central as includes libraries from various repositories. Here's Google Guava.

Bintray 的 JCenter是 Maven Central 的超集,包括来自各种存储库的库。这是谷歌番石榴

You can click on "Set me up!" to get the instructions on how to configure your build tool to resolve from JCenter and on the "i" on a jar file to get the dependency declaration for your build tool.

您可以单击“设置我!” 获取有关如何配置构建工具以从 JCenter 和 jar 文件上的“i”解析构建工具的说明,以获取构建工具的依赖项声明。

You can also become a watcher to get notifications on new versions.

您还可以成为观察者以获取有关新版本的通知。

回答by jitendra.khedar

Find latest guava(version 17.0) maven repositories http://mvnrepository.com/artifact/com.google.guava/guava/17.0

查找最新的番石榴(版本 17.0)maven 存储库http://mvnrepository.com/artifact/com.google.guava/guava/17.0

回答by David Soroko

Guava: Google Core Libraries For Java: https://mvnrepository.com/artifact/com.google.guava/guava

Guava:用于 Java 的 Google 核心库:https: //mvnrepository.com/artifact/com.google.guava/guava