Closed m-jonn closed 1 month ago
@m-jonn Thank you for using the JFrog CLI.
This is intentionally designed - the configured Artifactory server substitutes all resolution repositories. We recommend resolving from a virtual repository that includes both your local Maven repository in Artifactory and a remote repository pointing to Maven Central.
This approach offers the following advantages:
Please let me know if that helped.
Thank you @yahavi.
Makes sense. We are just switching to JFrog CLI because of the OIDC integration and did not encounter this issue with pure maven. Anyway thanks for pointing us to the correct solution.
Just confirmed and now it is working. Thanks @yahavi
Describe the bug
"jf mvn clean compile" is not downloading plugins from maven central url when configuring release and snapshot repositories with jfrog cli, instead artifactory url is used, e.g.
while plugins are correctly downloaded when not using jfrog cli
Note that the pom.xml includes maven-central as pluginRepository:![image](https://github.com/jfrog/jfrog-cli/assets/138009505/4704b9fe-33e8-4573-aef0-932e6ca487c8)
Current behavior
Reproduction steps
Use a pom.xml similar to ...
then run the following commands
Note that this bug is reproudcible on our Github Runners (Ubuntu 22.0.4) as well as local workspaces macOS and Windows.
Expected behavior
If pluginRepository is set to maven central in pom.xml, Jfrog CLI should use maven central url even though release and snapshot repositories are resolved to the local artifactory repository
JFrog CLI version
2.56.0
Operating system type and version
MacOS 14.3.1, Ubuntu 22.0.4
JFrog Artifactory version
Cloud
JFrog Xray version
No response