我如何找出 Apache Buildr/Maven 2 存储库名称 [英] How do I find out Apache Buildr/Maven 2 repo names

查看:20
本文介绍了我如何找出 Apache Buildr/Maven 2 存储库名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始使用 Apache Buildr,我经常遇到不知道哪些 repo url 和版本可供我使用的问题.

I'm just starting to use Apache Buildr and I'm constantly running into the problem of not knowing what repo urls and versions are available for me to use.

例如我想在构建文件中使用 Scala 2.8,我之前使用的 id 是:

For example I want to use Scala 2.8 in a build file, the id i previously used was:

2.8.0-SNAPSHOT

但是现在找不到了.我还想使用最新版本的 Apache POI.如果我查看 maven2 存储库:

But now this is not found. I also want to use the latest version of Apache POI. If I look on the maven2 repo:

http://mirrors.ibiblio.org/maven2/

我可以看到它只有 3.2 版.

I can see that it only has up to version 3.2.

是否有任何标准方法可以查找存储库并搜索它们可用的内容?

Is there any standard way of finding repos and searching them for what they have available?

推荐答案

是否有任何标准方法可以查找存储库并搜索它们可用的内容?

Is there any standard way of finding repos and searching them for what they have available?

不,没有存储库目录(实际上,拥有许多存储库有点违背了中央唯一存储库的概念,但我想集中所有内容有点乌托邦).

No, there is no directory of repositories (actually, having many repositories kinda defeats the concept of a central and unique repository but I guess that centralizing everything is a bit utopia).

但是有几个存储库搜索引擎可以索引最著名"的一个(例如 central、java.net、codehaus、jboss):

But there are several repository search engines that index the most "famous" one (like central, java.net, codehaus, jboss):

在 Apache POI 的特殊情况下,中央存储库中提供了 3.6 版.要使用它,只需声明以下依赖项:

In the particular case of Apache POI, version 3.6 is available in the central repo. To use it, just declare the following dependency:

<dependency>
    <groupId>org.apache.poi</groupId>
    <artifactId>poi</artifactId>
    <version>3.6</version>
</dependency>

这篇关于我如何找出 Apache Buildr/Maven 2 存储库名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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