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.
chemaxonRepositoryUser=[the email address coresponding to your ChemAxon Pass account, see above]
chemaxonRepositoryPassword=[the API key you generated, see above]
build.gradle file, add our Maven repository in the repositories block. For example,
username = chemaxonRepositoryUser
password = chemaxonRepositoryPassword
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:
exclude group: 'com.oracle.jdbc', module: 'ojdbc8'
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 (with the exception of the module naming which also needs to be added separately).
|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/