Resolve Artifacts from a Federated Repository
Download and resolve dependencies from the local Federation member using build tools or the Artifactory UI.
Resolve or download artifacts from your local JFrog Platform Deployment (JPD). Federated repositories serve artifacts locally after synchronization.
- Resolve Using Build Tools: Configure your build tool to resolve dependencies through your local Federation member.
- Resolve from the UI: Download an artifact directly from the Artifacts Browser.
Before You Begin
- You have READ permission.
- Your tool is configured for the local repository URL.
Resolve Using Build Tools
Configure your build tool to resolve dependencies from the local Federation member automatically, without needing to know which JPD an artifact was originally deployed to.
To resolve artifacts using build tools:
- Configure the repository in your tool using Set Me Up.
- Run the build or dependency restore.
You can also resolve directly with the JFrog CLI:
jf rt download <REPO_KEY>/<ARTIFACT_PATH> <LOCAL_PATH>Where:
<REPO_KEY>: The key of the Federated repository<ARTIFACT_PATH>: The path to the artifact within the repository<LOCAL_PATH>: The destination path on your local machine
For example:
jf rt download federated-libs-release/com/myapp/1.0/app.jar ./downloads/Resolve from the UI
You can also download an artifact directly from the Artifacts Browser instead of using a build tool.
To resolve artifacts from the UI:
- In Artifactory > Artifacts, locate the artifact.
- Click Download from artifact actions.
Behavior Summary
The following table summarizes resolution behavior for a Federated repository.
| Aspect | Behavior |
|---|---|
| Source | Local JPD copy of repository |
| Latency | Equivalent to local repository access |
| Availability | Remote deployments appear after sync processing |
Frequently Asked Questions
This section provides answers to frequently asked questions.
FAQs
Q: What permission do I need to resolve artifacts from a Federated repository?
A: You need READ permission on the repository, and your tool must be configured for the local repository URL. See Before You Begin.
Q: How do I configure my build tool to resolve dependencies from a Federated repository?
A: Use Set Me Up to generate the configuration, or resolve directly with the JFrog CLI. See Resolve Using Build Tools.
Q: Can I download an artifact without using a build tool?
A: Yes. Locate the artifact in the Artifacts Browser and click Download from the artifact actions. See Resolve from the UI.
Q: Is resolving from a Federated repository slower than from a local repository?
A: No. Artifacts are served from your local JPD, so latency is equivalent to a standard local repository. See Behavior Summary.
Related Topics
Updated about 7 hours ago
