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:
These steps are described in detail in the followings.
If you have already registered on www.chemaxon.com, then you are done. Otherwise, you should follow these steps to register:
usernamecredential to access the Maven repository.
passwordcredential during build.
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.
The ChemAxon npm repository with frequent releases is hosted on hub.chemaxon.com under the npm-local repository, which also includes with a virtual cache to the official npmjs.org public registry. If you'd like to install a ChemAxon npm package, you can follow the "Set me up" guide of Artifactory for the npm-local repository. The guide will walk you through obtaining the authentication token and configuration for the repository.
A simple, self-contained quickstart project example using Gradle:
A simple, self-contained quickstart project example using Apache Maven:
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|
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/