如何找到 Apache Buildr/Maven 2 存储库名称

发布于 2024-08-19 23:21:08 字数 322 浏览 4 评论 0原文

我刚刚开始使用 Apache Buildr,并且经常遇到不知道哪些存储库 URL 和版本可供我使用的问题。

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

2.8.0-SNAPSHOT

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

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

我可以看到它最多只有 3.2 版本。

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

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.

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

2.8.0-SNAPSHOT

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/

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

§对你不离不弃 2024-08-26 23:21:08

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

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

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

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

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

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

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

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>
月棠 2024-08-26 23:21:08

要搜索存储库,请尝试 NetBeans。它提供了一个很好的存储库浏览器,您可以在其中添加您喜欢的存储库。

这里有一些(更多信息请参见 Pascal 的):

NetBeans 还在 pom.xml 中提供自动补全功能依赖项等(例如获取最新版本)...但是对于 scala 我不确定这是否有用。

To search the repositories try NetBeans. It provides a nice repository browser, where you can add the repositories which you like.

Here are some (see Pascal's for more):

NetBeans also provides autocompletion within the pom.xml for dependencies etc (e.g. to get the latest version) ... but for scala I am not sure if this is useful.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文