我如何找出的Apache Buildr / Maven的2名回购 [英] How do I find out Apache Buildr/Maven 2 repo names

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

问题描述

我刚开始使用Apache Buildr,我经常跑到不知道什么回购URL和版本可供我使用的问题。

例如我想在构建文件使用Scala的2.8,该ID我pviously使用$ P $是:

  2.8.0-SNAPSHOT

但是,现在这是没有找到。我也想用最新版本的Apache POI的。如果我期待在maven2的回购:

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

我可以看到,它不仅拥有高达3.2版本。

有没有发现回购和搜索他们自己所拥有的任何可用的标准方式?


解决方案

  

有没有发现回购和搜索他们自己所拥有的任何可用的标准方式?


没有,没有库的目录(实际上,有许多仓库还挺击败中央和独特的资源库的概念,但我想这一切都集中是有点乌托邦)。

但有几个库搜索引擎索引中最著名的一(像中央,java.net,codehaus时,JBoss):

在Apache的POI的特定情况下,3.6版是在中央回购可用。要使用它,只是声明以下依赖性:

 <&依赖性GT;
    <&的groupId GT; org.apache.poi< /的groupId>
    <&的artifactId GT; POI< / artifactId的>
    <&版GT; 3.6 LT; /版本>
< /依赖性>

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?

解决方案

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>

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

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