ivy com.springsource.repository.bundles.release 通过 Nexus
我尝试添加 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
检查这个问题的答案
基本上我会建议您使用以下设置文件来下载 spring 依赖项:
这些是 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:
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.