Conan Package Manager

Conan Package Manager

JFrog offers an end-to-end solution covering the full lifecycle of your Conan C/C++ packages to manage development, artifact flow control and distribution.

Conan Repository Features:

The JFrog Platform

Documentation

Conan Repositories Wiki

Webinar

Introduction to C/C++ Package Management with Conan

Blog

Conan 1.0. A Commitment to Stability

Conan FAQ

What is Conan and how does it integrate with JFrog Artifactory?

Conan is a popular open-source package manager for C and C++ projects that helps developers manage dependencies, build binaries, and share packages. JFrog Artifactory acts as a Conan repository, allowing you to store, manage, and secure your Conan packages. With Artifactory, you can create a fully managed and controlled Conan ecosystem for binary management and dependency resolution in C/C++ projects.

How do I configure Conan to use JFrog Artifactory as a remote repository?

To configure Conan to use JFrog Artifactory, you need to add Artifactory as a remote repository in Conan. Use the following command:

conan remote add

Replace with a name of your choice (e.g., artifactory) and with the URL of your Conan repository in JFrog Artifactory. You may also need to authenticate using:

conan user -p -r

How can I publish a Conan package to JFrog Artifactory?

First, ensure your package is properly structured with a conanfile.py.
Create and package your Conan project:

conan create .

Upload your package to the Artifactory Conan repository using:

conan upload –all -r

Replace with the name and version of the package, and with the name of your Artifactory repository.

What are the advantages of using JFrog Artifactory with Conan?

Centralized Package Management: Artifactory allows you to store and manage all your Conan packages in a single, secure repository.

Binary Caching: Improve build times with Artifactory’s caching, which allows reusing binaries instead of rebuilding them from source.

Version Control: Track and manage different versions of your packages for easy rollback or upgrades.

Security and Access Control: Control who can access, upload, or download packages using Artifactory’s robust permissions and security policies.

What should I do if I encounter issues with Conan and JFrog Artifactory integration?

If you face issues:

Ensure your Conan remote URL is correctly set by checking the output of conan remote list.

Verify that your network connection allows access to Artifactory and that there are no firewalls blocking the request.

Check your authentication details using conan user to ensure you’re logged in with the right credentials.

If you encounter specific errors, review the logs in Artifactory to identify the root cause. If problems persist, reach out the JFrog team for further assistance.

Trusted Releases Built For Speed

About Conan

Conan is an open-source package manager for C and C++ developers that can also manage builds for other languages. It's designed to enhance the software development process by helping with building, deployment, and development.