首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >具有Jfrog的Bitbucket管道无法下载用于构建的插件

具有Jfrog的Bitbucket管道无法下载用于构建的插件
EN

Stack Overflow用户
提问于 2021-10-26 00:33:01
回答 1查看 160关注 0票数 1

我正在尝试配置一个带有jfrog存储库的bitbucket管道。我可以通过存储库的认证。我面临的问题是maven在构建过程中无法下载插件。我遗漏了什么?

这是我的管道配置。

代码语言:javascript
复制
image: atlassian/default-image:2

pipelines:
  default:
    - step:
        script:
          - pipe: jfrog/jfrog-setup-cli:1.0.0
          - source ./jfrog-setup-cli.sh
          - jfrog rt use myrepo-config
          - jfrog rt config show
          - jfrog rt ping
          - jfrog rt mvnc --server-id-resolve=myrepo --repo-resolve-releases=myrepo-mvn --repo-resolve-snapshots=myrepo-mvn --server-id-deploy=myrepo --repo-deploy-releases=myrepo-mvn-dev-local --repo-deploy-snapshots=myrepo-mvn-dev-local
          - jfrog rt mvn clean install
          - jfrog rt bce
          - jfrog rt bag --config=./issues-collection.yml
          - jfrog rt bp
          - jfrog rt bs
          - jfrog rt bpr promotion-repo

在Jfrog中,我配置了一个指向https://repo.maven.apache.org的远程存储库和一个包含远程存储库的虚拟存储库。

但是当maven尝试获取插件时,我的构建会失败。

代码语言:javascript
复制
  + jfrog rt mvn clean install
  [Info] Running Mvn...
  [Debug] Checking prerequisites.
  [Info] Downloading build-info-extractor from https://myrepo.jfrog.io/artifactory/extractors/org/jfrog/buildinfo/build-info-extractor-maven3/2.17.0/build-info-extractor-maven3-2.17.0-uber.jar
  [Debug] Usage Report: Sending info...
  [Debug] Sending HTTP GET request to: https://myrepo.jfrog.io/artifactory/extractors/org/jfrog/buildinfo/build-info-extractor-maven3/2.17.0/build-info-extractor-maven3-2.17.0-uber.jar
  [Debug] Sending HTTP GET request to: https://myrepo.jfrog.io/artifactory/api/system/version
  [Debug] The Artifactory version is: 7.25.4
  [Debug] Sending HTTP POST request to: https://myrepo.jfrog.io/artifactory/api/system/usage
  [Debug] Usage Report: Artifactory response: 200 OK
  [Debug] Usage Report: Usage info sent successfully.
  [Debug] Saving build general details at: /tmp/jfrog/builds/Z3JlZ3NvdWxzYnktdXMtbW9kZWxkcml2ZXJzLXBsdWdpbi0wMDEtYWRkLXBpcGVsaW5lLWNvbmZpZ3J1YXRpb25fNDM=/partials
  [Debug] Saving build general details at: /tmp/jfrog/builds/Z3JlZ3NvdWxzYnktdXMtbW9kZWxkcml2ZXJzLXBsdWdpbi0wMDEtYWRkLXBpcGVsaW5lLWNvbmZpZ3J1YXRpb25fNDM=/partials
  [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - Scanning for projects...
  [main] INFO org.jfrog.build.extractor.maven.BuildInfoRecorder - Initializing Artifactory Build-Info Recording
  [main] INFO org.apache.maven.cli.event.ExecutionEventLogger -
  [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - ------------------------------------------------------------------------
  [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - Building us-myrepo-plugin-001 1.0-SNAPSHOT
  [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - ------------------------------------------------------------------------
Downloading: https://myrepo.jfrog.io/artifactory/myrepo-mvn/org/apache/maven/plugins/maven-checkstyle-plugin/3.1.2/maven-checkstyle-plugin-3.1.2.pom
Downloading: https://myrepo.jfrog.io/artifactory/myrepo-mvn/org/apache/maven/plugins/maven-checkstyle-plugin/3.1.2/maven-checkstyle-plugin-3.1.2.pom
Downloading: https://myrepo.jfrog.io/artifactory/myrepo-mvn/org/apache/maven/plugins/maven-checkstyle-plugin/3.1.2/maven-checkstyle-plugin-3.1.2.pom
  [main] WARN org.codehaus.plexus.PlexusContainer - The POM for org.apache.maven.plugins:maven-checkstyle-plugin:jar:3.1.2 is missing, no dependency information available
Downloading: https://myrepo.jfrog.io/artifactory/myrepo-mvn/org/apache/maven/plugins/maven-checkstyle-plugin/3.1.2/maven-checkstyle-plugin-3.1.2.jar
  [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - ------------------------------------------------------------------------
  [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - BUILD FAILURE
  [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - ------------------------------------------------------------------------
  [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - Total time: 2.833 s
  [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - Finished at: 2021-10-26T00:22:03+00:00
  [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - Final Memory: 9M/110M
  [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - ------------------------------------------------------------------------
  [main] ERROR org.apache.maven.cli.MavenCli - Plugin org.apache.maven.plugins:maven-checkstyle-plugin:3.1.2 or one of its dependencies could not be resolved: Could not find artifact org.apache.maven.plugins:maven-checkstyle-plugin:jar:3.1.2 in artifactory-release (https://myrepo.jfrog.io/artifactory/myrepo-mvn) -> [Help 1]
  [main] ERROR org.apache.maven.cli.MavenCli -
  [main] ERROR org.apache.maven.cli.MavenCli - To see the full stack trace of the errors, re-run Maven with the -e switch.
  [main] ERROR org.apache.maven.cli.MavenCli - Re-run Maven using the -X switch to enable full debug logging.
  [main] ERROR org.apache.maven.cli.MavenCli -
  [main] ERROR org.apache.maven.cli.MavenCli - For more information about the errors and possible solutions, please read the following articles:
  [main] ERROR org.apache.maven.cli.MavenCli - [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
  [Error] exit status 1
  2021-10-26T00:22:03.846245861Z stdout P 
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-10-26 09:10:47

页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/69716167

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档