集成Gitlab - Maven - Jfrog对象时出错

egdjgwm8  于 2023-02-18  发布在  Maven
关注(0)|答案(1)|浏览(192)

使用此处提供的说明https://jfrog.com/blog/gitlab-and-artifactory-on-your-mark-get-set-build/

[main] ERROR org.apache.maven.cli.MavenCli - Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved:
Could not find artifact org.apache.maven.plugins:maven-clean-plugin:jar:2.5 in artifactory-release (http://192.168.196.20:8082/artifactory/test0-maven-libs-release-local) -> [Help 1]

很明显,它试图在本地repo(192.168 .....)中查找插件,而不是从inet下载
问题是:我做错了什么,怎么让它从maven repo下载插件?毕竟这是一个官方的项目示例,它不工作...
所有文件都是从GitHub JFROG repo克隆的,无需修改
repo config
CI/CD variables

1bqhqjot

1bqhqjot1#

在jfrog中重新创建存储库(2个本地存储库)+添加1个URL为https/jcenter.bintray.com的远程存储库部分解决了问题。下载已开始,但现在由于API不兼容错误而失败

[main] ERROR org.apache.maven.cli.MavenCli - Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.4:war (default-war) on project gitlab-demo: 
Execution default-war of goal org.apache.maven.plugins:maven-war-plugin:2.4:war failed: 
Unable to load the mojo 'war' in the plugin 'org.apache.maven.plugins:maven-war-plugin:2.4' 
due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException: null

相关问题