Repository Access
The Endor Patch repository is accessible through the following URL.Direct URL Access
You can directly download specific artifacts from the Endor Patch repository using their Maven coordinates. The URL structure follows the standard Maven repository format.Example: Downloading a JAR file
Run the following command to download the Jackson Databind library with Endor patches.Example: Downloading a POM file
Run the following command to download the corresponding POM file.Build Tool Configuration
Maven Configuration for build tools
Configure Maven to use the Endor Patch repository by adding it to yourpom.xml file.
settings.xml file.
Gradle Configuration for build tools
Configure Gradle to use the Endor Patch repository in yourbuild.gradle file.
Using Endor Patches in Dependencies
Maven Dependencies for dependencies
Specify Endor Patch versions in yourpom.xml file.
Gradle Dependencies for dependencies
Specify Endor Patch versions in yourbuild.gradle file.
Automatic Patching
With auto patching enabled, you can use the original version numbers and Endor Labs will automatically provide the patched versions. Auto patching requires you to perform the following tasks:- Configure the Endor Patch repository as the first priority in your build tools.
- Enable auto patching in your Endor Labs settings.
Version Naming Convention
Endor Patch versions follow these naming conventions:{original-version}-endor-latest: Latest available patch for the original version{original-version}-endor-{YYYY-MM-DD}: Specific patch version with date stamp{original-version}: Auto patching version (uses original version number without suffix)
v2.9.10.3, the following versions are available:
v2.9.10.3-endor-latest: Latest patch for Jackson Databindv2.9.10.3v2.9.10.3-endor-2024-07-10: Patch from July 10, 2024 for Jackson Databindv2.9.10.32.9.10.3: Auto patching version (no suffix needed)
Repository Manager Configuration
For enterprise environments, configure your repository manager to proxy the Endor Patch repository. Detailed setup instructions are available in the dedicated guides:- Configure Sonatype Nexus Repository - Complete setup for Nexus Repository Manager
- Configure JFrog Artifactory - Complete setup for JFrog Artifactory
Basic Configuration
Both repository managers require these basic settings:- Repository URL:
https://factory.endorlabs.com/v1/namespaces/$NAMESPACE/maven2 - Authentication: Use your Endor API credentials (key and secret)
- Repository Type: Maven 2
- Policy: Release only (no snapshots)
Verification and Testing
The following sections describe how to verify that your build tool can resolve dependencies and that you can download artifacts directly.Verify Artifact Download
Run the following command to test that you can download artifacts directly.Verify Build Integration
Run the following commands to test that your build tool can resolve dependencies.-
Maven
-
Gradle
Debugging
You can use the following commands to debug your build tool configuration.-
Test repository connectivity
-
Check Maven repository configuration
-
Check Gradle repository configuration
Security Considerations
Ensure you follow these security best practices:- Store API credentials securely using environment variables or secure credential storage
- Rotate API keys regularly
- Use repository managers in enterprise environments for better security and caching
- Verify artifact checksums when downloading directly