Reduce Dependencies

Wolfgang Schuetzelhofer edited this page Jul 31, 2017 · 3 revisions
Previous Next Table of Contents

Reduce Dependencies

If you add a JCypher dependency to your project's pom.xml, you implicitly also add dependencies to a couple of other components. JCypher provides database access in a uniform way to remote as well as to embedded databases (including in-memory databases). It needs different libraries for remote database access compared to embedded or in-memory database access.

Have a look at an excerpt of JCypher's pom.xml covering the dependencies to libraries needed for the different types of database access.

In many cases you will not use all three kinds of database access in your project, and you may want to get rid of the extra dependencies you don't need (this will reduce the footprint of your application). You can do so by defining exclusions in your project's pom.xml.
Following you find three excerpts from pom.xml files showing configurations for different kinds of database access. Of course you can also use combinations of these. If you don't define any of these exclusions, you are able to use all three kinds of database access (remote, embedded, in-memory) at the same time.

Remote database access
Embedded database access
In-memory database access


Previous Next Table of Contents