Utility library for all services. This library is designed to free the services workspace from a large number of utility classes and provide access to all these classes for all services.
Access to the library is implemented using Nexus Repository.
-
The first thing to do is to connect your nexus to the project by specifying it as a repository in pom.xml:
<repositories> <repository> <id>YOUR_NEXUS_ID</id> <url>YOUR_NEXUS_URL</url> </repository> </repositories>
-
To connect this library to your project, simply specify it as a dependency in pom.xml and pull up this new dependency:
<dependency> <groupId>org.example</groupId> <artifactId>common-lib</artifactId> <version>1.0-SNAPSHOT</version> </dependency>