ivy com.springsource.repository.bundles.release 通过 Nexus

发布于 2024-10-24 12:25:31 字数 2474 浏览 3 评论 0原文

我尝试添加 http://repository.springsource.com/ivy/bundles/external/ 作为我们 Nexus 存储库的(代理)远程存储库位置。

开发人员在他们的 iv 中使用了以下内容 ivy-settings.xml 内部如下

<?xml version="1.0" encoding="ISO-8859-1"?>
<ivysettings>
      <settings defaultResolver="spring.compass.ibiblio" checkUpToDate="true" />
      <resolvers>
            <chain name="spring.compass.ibiblio">
                  <url name="com.springsource.repository.bundles.release">
                        <ivy pattern="http://repository.springsource.com/ivy/bundles/release/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" />
                        <artifact pattern="http://repository.springsource.com/ivy/bundles/release/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" />
                  </url>
                  <url name="com.springsource.repository.bundles.external">
                        <ivy pattern="http://repository.springsource.com/ivy/bundles/external/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" />
                        <artifact pattern="http://repository.springsource.com/ivy/bundles/external/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" />
                  </url>
                  <ibiblio name="compass" m2compatible="true" root="http://repo.compass-project.org" />
                  <ibiblio name="ibiblio" m2compatible="true" checkconsistency="false"/>
                  <ibiblio name="javanet" root="http://download.java.net/maven/2/" m2compatible="true" usepoms="false"/>
                  <ibiblio name="libraries" m2compatible="true" usepoms="false"/> 
                  <ibiblio name="jboss" root="http://repository.jboss.com/maven2" m2compatible="true" usepoms="false"/>
            </chain>

      </resolvers>
</ivysettings>

但是,当我尝试浏览设置的 nexus 存储库时,我看不到存储库下的任何内容,除了

/.index/nexus-maven-repository-index.gz

/.index/nexus-maven-repository-index.gz.sha1

/.index/nexus-maven-repository-index.gz.md5

/.index/nexus-maven-repository-index.properties

/.index/nexus-maven-repository-index.properties.sha1

/.index/nexus-maven-repository-index.properties.md5

因此无法解析依赖关系。

有人可以帮忙吗?

兰德尔

I have tried to add http://repository.springsource.com/ivy/bundles/external/ as (proxy) remote repository location to our Nexus repository.

The developers are using the following inside they're iv
Inside the ivy-settings.xml is as follows

<?xml version="1.0" encoding="ISO-8859-1"?>
<ivysettings>
      <settings defaultResolver="spring.compass.ibiblio" checkUpToDate="true" />
      <resolvers>
            <chain name="spring.compass.ibiblio">
                  <url name="com.springsource.repository.bundles.release">
                        <ivy pattern="http://repository.springsource.com/ivy/bundles/release/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" />
                        <artifact pattern="http://repository.springsource.com/ivy/bundles/release/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" />
                  </url>
                  <url name="com.springsource.repository.bundles.external">
                        <ivy pattern="http://repository.springsource.com/ivy/bundles/external/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" />
                        <artifact pattern="http://repository.springsource.com/ivy/bundles/external/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" />
                  </url>
                  <ibiblio name="compass" m2compatible="true" root="http://repo.compass-project.org" />
                  <ibiblio name="ibiblio" m2compatible="true" checkconsistency="false"/>
                  <ibiblio name="javanet" root="http://download.java.net/maven/2/" m2compatible="true" usepoms="false"/>
                  <ibiblio name="libraries" m2compatible="true" usepoms="false"/> 
                  <ibiblio name="jboss" root="http://repository.jboss.com/maven2" m2compatible="true" usepoms="false"/>
            </chain>

      </resolvers>
</ivysettings>

However when I try to browse the nexus repository that is set up I cannot see anything under the repository except of

/.index/nexus-maven-repository-index.gz

/.index/nexus-maven-repository-index.gz.sha1

/.index/nexus-maven-repository-index.gz.md5

/.index/nexus-maven-repository-index.properties

/.index/nexus-maven-repository-index.properties.sha1

/.index/nexus-maven-repository-index.properties.md5

As a result the dependencies cannot be resolved.

Can anyone help?

Randall

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

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

发布评论

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

评论(1

猫弦 2024-10-31 12:25:31

检查这个问题的答案

基本上我会建议您使用以下设置文件来下载 spring 依赖项:

<ivysettings>
    <settings defaultResolver="chain"/>
    <resolvers>
        <chain name="chain">
            <ibiblio name="central" m2compatible="true"/>
            <ibiblio name="spring-release"  root="http://repository.springsource.com/maven/bundles/release" m2compatible="true"/>
            <ibiblio name="spring-external" root="http://repository.springsource.com/maven/bundles/external" m2compatible="true"/>
        </chain>
    </resolvers>
</ivysettings>

这些是 Maven 存储库 URL,ivy 解析器配置为将它们理解为 Maven2 格式的存储库。

最后,我认为 spring 存储库的设置是为了阻止使用网络浏览器进行即席浏览。

Check the answer to this question

Basically I'd suggest you use the following settings file to download spring depenencies:

<ivysettings>
    <settings defaultResolver="chain"/>
    <resolvers>
        <chain name="chain">
            <ibiblio name="central" m2compatible="true"/>
            <ibiblio name="spring-release"  root="http://repository.springsource.com/maven/bundles/release" m2compatible="true"/>
            <ibiblio name="spring-external" root="http://repository.springsource.com/maven/bundles/external" m2compatible="true"/>
        </chain>
    </resolvers>
</ivysettings>

These are the Maven repository URLs and the ivy resolver is configured to understand them as Maven2 formatted repositories.

Finally, I think the spring repos are setup to discourage adhoc browsing using web browser.

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