ChemAxon provides a public Maven repository at https://hub.chemaxon.com for integrating our products and modules. It is designed for integrators and resellers, but is available for any registered ChemAxon user.
In order to use this repository, you should follow these two steps:
- Register a ChemAxon Pass account, unless you already have one. (The email associated with the Pass registration will serve as the
- Use the ChemAxon Pass account to log in to https://hub.chemaxon.com and generate an API key. (This API key will serve as the
These steps are described in detail in the followings.
How to Register a ChemAxon Account
If you have already registered on www.chemaxon.com, then you are done. Otherwise, you should follow these steps to register:
- Go to https://pass.chemaxon.com/sign-up, which is also available from ChemAxon site.
- On the Pass registration form, enter your details. The specified email address will serve as the
username credential to access the Maven repository.
- After that, an email is sent to you containing a link to activate your ChemAxon Pass account.
- On the activation page, you need to specify a password.
- Finally, your ChemAxon Pass account is ready to use.
How to Generate an API Key
- Go to https://hub.chemaxon.com and sign in using CAS authentication. Do not enter any user name or password on this page.
- Then you are redirected to the CAS login page where you can use your Pass account (email address and password specified during Pass registration, see above).
- After a successfull login, click on your email address at the top right part of the site and select "Edit Profile" from the dropdown list.
- In the "Authentication Settings" section, click on the cog wheel icon next to the input field called "API Key". If you already have an API Key (the input field is filled and there are two more icons next to the cog wheel icon), you can skip this step.
- The API key can be revealed by clicking on the eye icon.
- Copy the API key to use as the
password credential during build.
How to Congfigure Your Project
If you would like to use Gradle as your build tool, you can follow these instructions to access ChemAxon 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
<user home>/.gradle directory.
artifactory_user=[the email address coresponding to your ChemAxon Pass account, see above]
artifactory_password=[the API key you generated, see above]
build.gradle file, add our Maven repoitory in the repositories block. For example,
username = hubUser
password = hubPassword
After applying these settings, you can add ChemAxon modules as dependencies.
A simple, self-contained quickstart project example using Gradle:
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 dependency, all required modules will be downloaded transitively.
|Product||Top-level module name in repository|
JKlustor Web Example
An open-source API usage example for JKlustor, which uses ChemAxon Maven Repository. It is available on GitHub: https://github.com/ChemAxon/jklustor-web-example/