Resolve Hex Private Package

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide
ft:sourceType
Paligo

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 private Hex packages in your organization.

To resolve a Hex private package, follow these steps:

Prerequisite

Download Public Key to Hex Project Folder

  1. Refer to View Set Me Up Instructions - Hex Repository topic to view Resolve code snippets.

  2. Add the package names, versions and organization names to your mix.exs file:

    Note

    Make sure to replace the placeholders in bold with the package name, version, and Hex organization name.

    defp deps do
    [ 
        {:<PACKAGE_NAME>, "<PACKAGE_VERSION>", organization: "<HEX_ORGANIZATION_NAME>"}
    ]

    For example:

    defp deps do
    [ 
        {:jason, "1.4.4", organization: "acme"}
    ]
  3. Run the following command:

    mix deps.get