Public Repository¶
- Introduction
- Create your Chemaxon Account
- Generate your API key
- Configure your project
- Quickstart Projects
- Example Projects
Introduction¶
Chemaxon provides a public repository at https://hub.chemaxon.com/ for our products and modules. It is designed for integrators and resellers but is available for any registered Chemaxon user as well. How to acquire the required credentials in order to use this repository are described below.
NOTE: The web user interface is currently not available for customers due to technical reasons. Please use CLI access.
Create your Chemaxon Account¶
If you do not already have a Chemaxon Account, you may create it via filling the form at the https://accounts.chemaxon.com/register page. Your e-mail address will serve as the username when setting up the repository.
Generate your API key¶
To generate your API key visit the download page of the product you would like to obtain at https://chemaxon.com/products. Under the additional tabs of various download options - such as 'DEB', 'RPM', 'JAR' or 'Gradle' - you will find a button to 'Setup my API Key’. In case your API key has been already generated you will find it among the instructions of 'Set up the repository'.
Configure your project¶
Debian¶
First, download the public GPG key:
The specified user name should be the full Chemaxon account email address, e.g. john.smith@mycoolcompany.com .
To use the Artifactory repository to install a Debian package you need to add it to your sources.list file. You can do that using the following command:
Using the apt command will install the package:
Search for other packages:
Red Hat¶
First, you need to add the Artifactory repository to your YUM repositories. Edit the following file with your editor of choice:
And insert the following to the file:
Install your package with the command:
Search for other packages:
Docker¶
First, you need to login to the repository:
Alternatively, you can paste the following into the ~/.docker/config.json file (in Windows %USERPROFILE%/.docker/config.json):
After that, you can pull the images:
Browse Docker Tags¶
Though Docker itself doesn't have a convenient way to browse image tags, there are workarounds like Node Package Manager (8.0+).
NPM¶
First, you need to store your credentials and repository in your .npmrc file:
For your npm command line client to work with Artifactory, you first need to set the default npm registry with an Artifactory npm repository using the following command:
Alternatively, you can paste the following into the ~/.npmrc file (in Windows %USERPROFILE%/.npmrc):
To install the packages run:
Gradle¶
If you would like to use Gradle as your build tool, you can follow these instructions to access Chemaxon's Maven repository. Or you can use the quickstart project as an example.
In your Gradle project, create (or edit if already exists) a gradle.properties file and add these contents. You can also move this file outside your project, into
In the build.gradle file, add our Maven repository in the repositories block. For example:
After applying these settings, you can add Chemaxon modules as dependencies.
If you had a problem with resolving the ojdbc8 Oracle JDBC driver but you do not want to use Oracle then omitting the driver solves the problem. To omit ojdbc8 add this setting to the build.gradle file:
Quickstart Projects¶
Gradle¶
A simple, self-contained quickstart project example using Gradle:
Maven¶
A simple, self-contained quickstart project example using Apache Maven:
Top Level Modules¶
To integrate a product, you only need to add its top-level module as a dependency, all required modules will be downloaded transitively (with the exception of the module naming which also needs to be added separately).
| Product | Top-level module name in the repository |
|---|---|
| Marvin | marvin-app |
| JChem | jchem-main |
Example Projects¶
JKlustor Web Example¶
An open-source API usage example for JKlustor, which uses Chemaxon's Maven Repository. It is available on GitHub: https://github.com/Chemaxon/jklustor-web-example/