你知道 mvnrepository.com 的 Maven 配置文件吗? [英] Do you know the Maven profile for mvnrepository.com?

查看:25
本文介绍了你知道 mvnrepository.com 的 Maven 配置文件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的 Maven 项目中包含一些依赖项.这些依赖项在默认的 Maven 2 存储库中不可用 http://repo1.maven.org/maven2/.

I am trying to include some dependencies in my Maven project. These dependencies are not available in the default Maven 2 repository http://repo1.maven.org/maven2/.

它们可在 http://mvnrepository.com/ 获得.

但我找不到此站点的配置文件以包含在我的 settings.xml 中.

But I couldn't find the profile for this site to include in my settings.xml.

有人知道这个存储库的 URL 和配置文件是什么吗?

Does anyone know what this repository's URL and profile is?

推荐答案

一旦您通过 mvnrepository.com 找到了您的 jar,将鼠标悬停在下载 (JAR)"链接上,您将看到存储库的链接包含您的 jar(您可能可以右键单击和复制链接 URL"来获取 URL,无论您的浏览器是什么).

Once you've found your jar through mvnrepository.com, hover the "download (JAR)" link, and you'll see the link to the repository which contains your jar (you can probably Right clic and "Copy link URL" to get the URL, what ever your browser is).

然后,您必须在 pom.xml 中将此存储库添加到项目使用的存储库中:

Then, you have to add this repository to the repositories used by your project, in your pom.xml :

<project>
  ...
  <repositories>
    <repository>
      <id>my-alternate-repository</id>
      <url>http://myrepo.net/repo</url>
    </repository>
  </repositories>
  ...
</project>

现在 MVNrepository.com 已经发展:您可以在存储库"部分找到存储库的链接:

EDIT : now MVNrepository.com has evolved : You can find the link to the repository in the "Repositories" section :

许可证

类别

主页

日期

文件

存储库

这篇关于你知道 mvnrepository.com 的 Maven 配置文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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