在Artifcatory中部署的人工制品不会出现在虚拟仓库中

时间:2017-05-24 09:39:37

标签: artifactory ivy

我有一个人工制品(com.test#verifier;1.1),我将其部署在名为libs-release-local的存储库中。这个仓库有Virtual Repository Association,其中一个叫libs-release(这是我所理解的Artifactory默认的)。

在我的项目中,我有ivy-settings.xml以下

 <resolvers>
<chain name="main">
  <url name="artifactory" m2compatible="false">
    <artifact
      pattern="${ivy.artifactory.server}/${ivy.repo}/${ivy.default.artifact.pattern}" />
    <ivy
      pattern="${ivy.artifactory.server}/${ivy.repo}/${ivy.default.ivy.pattern}" />
  </url>
  <ibiblio name="public" m2compatible="true" 
           root="http://artifactory:9090/artifactory/libs-release" />
</chain>

在获取人工制品时,使用

会失败
[ivy:retrieve]      module not found: com.test#verifier;1.1
[ivy:retrieve]  ==== artifactory: tried
[ivy:retrieve]    http://artifactory:9090/artifactory/unstable/com.test/verifier/1.1/ivys/ivy-1.1.xml    
[ivy:retrieve]    -- artifact com.test#verifier;1.1!verifier.jar:
[ivy:retrieve]    http://artifactory:9090/artifactory/unstable/com.test/verifier/1.1/jars/verifier-1.1.jar
[ivy:retrieve]  ==== public: tried
[ivy:retrieve]    http://artifactory:9090/artifactory/libs-release/com/test/verifier/1.1/verifier-1.1.pom
[ivy:retrieve]    -- artifact com.test#verifier;1.1!verifier.jar:
[ivy:retrieve]    http://artifactory:9090/artifactory/libs-release/com/test/verifier/1.1/verifier-1.1.jar
[ivy:retrieve]      ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve]      ::          UNRESOLVED DEPENDENCIES         ::
[ivy:retrieve]      ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve]      :: com.test#verifier;1.1: not found
[ivy:retrieve]      ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] 
[ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

显然我的假设是错误的,当我部署到libs-release-local时,它也可以通过libs-release访问。

我需要做什么,使用给定的常春藤设置,我确实收到依赖?

1 个答案:

答案 0 :(得分:1)

根据提供的请求跟踪,问题在于为libs-release存储库配置的包含/排除模式:

2017-05-30T09:33:57.915+02:00 Adding no aggregated repositories - requested artifact is rejected by the include exclude patterns of 'libs-release'

您应该查看libs-release存储库配置,并检查导致文件下载的模式被拒绝。