Configure JFrog Artifactory 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.
- Log in to the JFrog Platform.
- In the Administration module, select Repositories.
- Select Create a Repository and click Remote.
- Select Maven from the list of repository types.
- In Repository Key, enter a name such as
endor-patch
. - In URL, enter the Endor Patch repository URL (typically given by Endor Labs) like
https://factory.endorlabs.com/v1/namespaces//maven2
. - Enter the username and password provided by Endor Labs.
- Click Advanced and select Priority Resolution to ensure that the Endor patch repository is prioritized over other remote repositories.
- 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.
- Log in to the JFrog Platform.
- In the Administration module, select Repositories.
- Select Create a Repository and click Virtual.
- Select Maven from the list of repository types.
- In Repository Key, enter a name such as
endor-patch
. - Add the
endor-patch
remote repository to this virtual repository along with other required remote repositories. - Ensure
endor-patch
repository is at the top of the list to prioritize it. - 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.
- Log in to the JFrog Platform.
- In the Administration module, select Repositories.
- Select Remote to view the list of all remote repositories.
- Select the repository that you want to modify.
- Add Endor patch dependencies in Exclude Patterns, for example,
com/endor/patch/**
. - Click Save.
Feedback
Was this page helpful?
Thanks for the feedback. Write to us at support@endor.ai to tell us more.
Thanks for the feedback. Write to us at support@endor.ai to tell us more.