【问题标题】:How to make Sonatype's Nexus Repository to work with SpringSource’s EBR如何使 Sonatype 的 Nexus 存储库与 SpringSource 的 EBR 一起使用
【发布时间】:2011-04-13 02:27:43
【问题描述】:

我希望将 SpringSource EBR(企业捆绑存储库:http://www.springsource.com/repository/)作为代理添加到 Nexus。我这样做的主要原因是 SpringSource OSGi 支持了各种知名的 OSS 项目(例如:Velocity、AspectJ...),使它们很容易被包含在 OSGi 运行时中。

无论如何,Nexus 如何“查看”EBR 存在一些问题,因为即使我可以远程浏览存储库,它也没有被代理和正确索引。 作为提示,我观察到的是,Nexus 没有看到其他 Maven 存储库(例如:Central、google...)公开的直接 Maven 组(例如:org/...),而是一个单独的 external release 文件夹/根在远程导航时插入。

下面是我感兴趣的 SpringSource EBR 存储库:

<repository>  
      <id>com.springsource.repository.bundles.release</id>  
      <name>SpringSource Enterprise Bundle Repository - SpringSource Bundle Releases</name>
      <url>http://repository.springsource.com/maven/bundles/release</url> 
 </repository> 
 <repository>  
      <id>com.springsource.repository.bundles.external</id>  
      <name>SpringSource Enterprise Bundle Repository - External Bundle Releases</name>
      <url>http://repository.springsource.com/maven/bundles/external</url> 
 </repository>

如果这个存储库被直接指定到一个 Maven 项目 pom.xml 一切都很好,但不是通过 Nexus。

【问题讨论】:

    标签: maven-2 osgi nexus springsource


    【解决方案1】:

    您应该能够将它们添加为代理存储库(我建议关闭索引)。至少它对我有用。

    【讨论】:

    • 关闭索引意味着禁用加载远程索引?
    • 您能否在 Nexus 中的“浏览存储”和“浏览索引”选项卡上浏览上述 SpringSource 存储库?
    • @user68682 By turning off indexing you mean to disable loading the remote index? 是的。 Are you able to browse the SpringSource repositories mentioned above in Nexus 无法确认(通过我确认我可以从中获取工件)。
    • 我有一个完全相同的问题:在 sonartype nexus 中添加了一个代理存储库,设置“下载远程索引”=false,“远程存储位置”=repository.springsource.com/maven/bundles/release,类似地添加了repository.springsource.com/maven/bundles/external 存储库,然后我将这 2 个存储库添加到公共存储库组 - mvn build failed: “Failure to find org.slf4j:com.springsource.slf4j.api:jar”。尽管没有 nexus repos - 一切正常。 ???
    • FWIW,我也遇到了这个问题。关键是确保为那些不提供前缀或允许 Nexus 抓取 URL 以生成前缀文件的存储库关闭自动路由发现。为此,请访问存储库中的“路由”选项卡并取消选中“发现”选项。
    猜你喜欢
    • 2014-01-09
    • 2016-01-25
    • 1970-01-01
    • 2019-09-24
    • 2014-07-12
    • 2014-10-05
    • 1970-01-01
    • 1970-01-01
    • 2011-02-07
    相关资源
    最近更新 更多