当前位置: 首页 > 知识库问答 >
问题:

Artifactory-?追踪发现工件,gradle没有

杭志泽
2023-03-14

嗯,传奇还在继续(我昨天的帖子-Gradle无法解决来自artifactory的依赖)。我解决了这个问题(我仍然使用硬编码版本)。

* What went wrong:
Could not resolve all dependencies for configuration ':compile'.
> Could not find apirCommon.jar (au.com.apir:apirCommon:1.0).
  Searched in the following locations:
      http://devsvr:8090/artifactory/libs-release/au/com/apir/apirCommon/1.0/apirCommon-1.0.jar
Request ID: 31810f1c
Repo Path ID: libs-release:au/com/apir/apirCommon/1.0/apirCommon-1.0.jar
Method Name: GET
User: admin
Time: 2015-07-24T11:07:22.236+10:00
Thread: http-bio-8090-exec-21
Steps: 
2015-07-24T11:07:22.236+10:00 Received request
2015-07-24T11:07:22.236+10:00 Request source = 203.a.b.c, Last modified = 01-01-70 09:59:59 +10:00, If modified since = -1, Thread name = http-bio-8090-exec-21
2015-07-24T11:07:22.236+10:00 Executing any BeforeDownloadRequest user plugins that may exist
2015-07-24T11:07:22.236+10:00 Retrieving info
2015-07-24T11:07:22.236+10:00 Consulting the virtual repo download strategy
2015-07-24T11:07:22.236+10:00 Trying to retrieve resource info from the local storage
2015-07-24T11:07:22.236+10:00 Unable to find resource in libs-release:au/com/apir/apirCommon/1.0/apirCommon-1.0.jar
2015-07-24T11:07:22.236+10:00 Searching for info in aggregated repositories
2015-07-24T11:07:22.236+10:00 Preparing list of aggregated repositories to search in
2015-07-24T11:07:22.236+10:00 Appending the virtual repository 'libs-release'
2015-07-24T11:07:22.236+10:00 Appending the virtual repository 'libs-release'
2015-07-24T11:07:22.236+10:00 Appending the virtual repository 'libs-release'
2015-07-24T11:07:22.236+10:00 Appending collective local repositories
2015-07-24T11:07:22.236+10:00 Appending collective local cache repositories
2015-07-24T11:07:22.236+10:00 Appending collective remote repositories
2015-07-24T11:07:22.236+10:00 Intercepting info request with 'PomInterceptor'
2015-07-24T11:07:22.236+10:00 Intercepting info request with 'MavenMetadataInterceptor'
2015-07-24T11:07:22.236+10:00 Processing request as a release resource
2015-07-24T11:07:22.236+10:00 Searching for the resource within libs-release-local
2015-07-24T11:07:22.237+10:00 Resource was found in libs-release-local
2015-07-24T11:07:22.237+10:00 Resource is an exact match - returning
2015-07-24T11:07:22.237+10:00 Returning resource as found in the aggregated repositories
2015-07-24T11:07:22.237+10:00 Intercepting found resource with 'PomInterceptor'
2015-07-24T11:07:22.237+10:00 Intercepting found resource with 'MavenMetadataInterceptor'
2015-07-24T11:07:22.237+10:00 Requested resource is found = true
2015-07-24T11:07:22.237+10:00 Request is HEAD = false
2015-07-24T11:07:22.237+10:00 Request is for a checksum = false
2015-07-24T11:07:22.237+10:00 Target repository is not remote or doesn't store locally = true
2015-07-24T11:07:22.237+10:00 Requested resource was not modified = false
2015-07-24T11:07:22.237+10:00 Responding with found resource
2015-07-24T11:07:22.237+10:00 Executing any AltResponse user plugins that may exist
2015-07-24T11:07:22.237+10:00 Alternative response status is set to -1 and message to 'null'
2015-07-24T11:07:22.237+10:00 Found no alternative content handles
2015-07-24T11:07:22.237+10:00 Retrieving a content handle from target repo
2015-07-24T11:07:22.237+10:00 The requested resource isn't pre-resolved
2015-07-24T11:07:22.237+10:00 Target repository isn't virtual - verifying that downloading is allowed
2015-07-24T11:07:22.237+10:00 Creating a resource handle from 'libs-release-local:au/com/apir/apirCommon/1.0/apirCommon-1.0.jar'
2015-07-24T11:07:22.237+10:00 Identified requested resource as a file
2015-07-24T11:07:22.237+10:00 Requested resource is an ordinary artifact - using normal content handle with length '13368639'
2015-07-24T11:07:22.237+10:00 Executing any BeforeDownload user plugins that may exist
2015-07-24T11:07:22.237+10:00 Responding with selected content handle
2015-07-24T11:07:22.237+10:00 Request succeeded

为什么Gradle不能下载?它没有被下载到我的本地。Gradle缓存。

Gradle无法解决来自artifactory的依赖关系也有类似的问题,尽管我使用的是http://www.jfrog.com/confluence/display/rtf/Gradle+artifactory+插件。

有什么想法吗?

我将我的repo从虚拟的libs-release更改为实际的libs-release-local,它工作了。我没有改变Artifactory中默认的配置,虚拟的libs-release包括libs-release-local作为选定的存储库。无论如何,这个虚拟存储库在通过curl、browser或?trace时会解析,但在通过gradle时不会解析。为什么?

另一个问题是,远程存储库(通过虚拟libs-release设置)从未使用过,因此构建失败,因为它无法找到远程构件。

共有1个答案

东门清夷
2023-03-14

我通过定义一个新的虚拟存储库修复了这个问题,该存储库在各个方面都完全相同(除了名称)。怪怪的。

此外,我删除并重新创建了一个新的libs-release,gradle构建以同样的错误失败!更怪异。

 类似资料:
  • 当应用程序使用maven时,我有一个Spring Cloud Sleuth Stream应用程序正在工作并发送到我的本地OpenZipkin(docker),但是当我尝试运行gradle Spring boot应用程序时,Zipkin不会显示跟踪。有趣的是,Spring日志似乎显示了正确的跟踪信息。。因此,应用程序本身正在识别侦探,但出于某种原因,Zipkin要么没有收到信息,要么没有显示。我进入

  • 我尝试使用jenkins管道将gradle工件上传到maven存储库。我关注了詹金斯的管道工作 如参考文件所述,应将构建工件部署到工件库。然而,在我的案例中没有部署构建工件。 我已经检查了并发现它是空的。 根据一些提示,我将以下代码放入我的: 然而,前面的没有帮助,仍然没有部署工件。 问题出在哪里?我错过了什么? 感谢您的任何意见。 编辑 我忘了为gradle deployer添加服务器设置。通过

  • 我有一个非常基本的Gradle构建文件: 这是通过詹金斯执行的,看起来工作正常: 归档工件:[DefaultPublishArtifact_装饰模块-0.0.post0.dev6 n4c62094-py2.7:egg:egg:null] [buildinfo]属性文件位于“/tmp/buildInfo65481565498521”。财产 : artifactoryPublish 正在将生成描述符部

  • 我正在尝试让Gradle Artifactory插件来解析工件。 我的build.gradle文件在下面,被替换为正确的主机名 然而,当运行此命令时,它无法解析工件。依赖行是从artiFactory生成的。 我打算使用“旧”发布机制。我的Gradle版本是2.0。 我尝试了一个带有maven2默认值和gradle布局的artifactory存储库。 堆栈跟踪可在以下位置找到:http://text

  • 我有一个Gradle构建,在Jenkins中运行,并使用Jenkins的Artifactory插件部署到Artifactory。我正在上传一个将文件发送到Artifactory。插件正在上传正确,但它也在上传一个。 如何排除,使其不被部署到Artifactory? 建筑格雷德尔(文物组)

  • null 当我运行./gradlew artifactoryPublish时,它将记录: 尝试从其他生成加载插件。Gradle: 带设置。分级: 导致此错误: 我希望在运行ArtiFactoryPublish时,将publishToMavenLocal创建的所有工件发布到Artifactory。如果artifactoryPublish是错误的工具,我愿意接受它的替代方法。 如何将Gradle插件发