如何找到 Apache Buildr/Maven 2 存储库名称
我刚刚开始使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不,没有存储库目录(实际上,拥有许多存储库有点违背了中央和唯一存储库的概念,但我想集中所有内容有点乌托邦)。
但是有几个存储库搜索引擎可以索引最“著名”的一个(例如central、java.net、codehaus、jboss):
在 Apache POI 的特定情况下,中央存储库中提供了版本 3.6 。要使用它,只需声明以下依赖项:
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:
要搜索存储库,请尝试 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.