This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Configure JFrog Artifactory to use Endor patches

Learn how to configure your JFrog Artifactory setup to use Endor patches.

Configure JFrog Artifactory to ensure that the patched dependencies from Endor Labs are fetched and used correctly. The following procedures use Maven as the repository type, you can select the repository type based on your requirements.

Create a remote repository for Endor Patching

Create a remote repository to fetch artifacts from the Endor Patch repository.

  1. Log in to the JFrog Platform.
  2. In the Administration module, select Repositories.
  3. Select Create a Repository and click Remote.
  4. Select Maven from the list of repository types.
  5. In Repository Key, enter a name such as endor-patch.
  6. In URL, enter the Endor Patch repository URL (typically given by Endor Labs) like https://factory.endorlabs.com/v1/namespaces//maven2.
  7. Enter the username and password provided by Endor Labs. Artifactory Remote Repository
  8. Click Advanced and select Priority Resolution to ensure that the Endor patch repository is prioritized over other remote repositories. Artifactory Remote Repository Advanced
  9. Click Create Remote Repository.

Create a virtual repository for Endor Patching

Create a virtual repository to simply access to Endor patch repositories and other remote repositories.

  1. Log in to the JFrog Platform.
  2. In the Administration module, select Repositories.
  3. Select Create a Repository and click Virtual.
  4. Select Maven from the list of repository types.
  5. In Repository Key, enter a name such as endor-patch.
  6. Add the endor-patch remote repository to this virtual repository along with other required remote repositories.
  7. Ensure endor-patch repository is at the top of the list to prioritize it. Artifactory Virtual Repository
  8. Click Create Virtual Repository.

Exclude Endor Patch dependencies in other remote repositories

You can update remote repositories, other than the Endor patch repositories, to exclude Endor patch dependencies. This will prevent other repositories from overriding the Endor patch dependencies.

  1. Log in to the JFrog Platform.
  2. In the Administration module, select Repositories.
  3. Select Remote to view the list of all remote repositories.
  4. Select the repository that you want to modify.
  5. Add Endor patch dependencies in Exclude Patterns, for example, com/endor/patch/**. Artifactory Remote Repository Exclude Patterns
  6. Click Save.