This topic describes how to resolve packages using Hex remote repositories in Artifactory. It provides instructions to resolve packages using Hex remote repository that points to the official Hex.pm
registry, enabling access to public Hex packages.
You can resolve public hex.pm packages to your mix project. For more information about Mix projects, see the Mix documentation.
Prerequisite
Download Public Key to Hex Project Folder
To resolve a Hex public package, follow these steps:
Refer to View Set Me Up Instructions - Hex Repository topic to view Resolve code snippets.
Add the package names and versions to your
mix.exs
file:Note
Make sure to replace the placeholders in bold with the package name and version.
defp deps do [ {:<PACKAGE_NAME>, "<PACKAGE_VERSION>"} ]
For example:
defp deps do [ {:jason, "1.4.4"} ]
Run the following command:
mix deps.get