On Thursday, March 24, 2022 at 10:46:45 AM UTC-4, mike wrote:
Hi,
Today we have a framework that user make java code calls to a java API.
Project, a monolith,consists of multiple maven modules but also numerous in-house made java libraries.
The problem today is that each module depends on specific versions of libraries. So when using any of the in-house libraries we cannot just upgrade a dependency since the same must be done for other libraries used in the project.
So what we wish for is a separate deplorable java components that can be managed independently.
I have read about micro-services but they only use rest calls (AFAIK) but we need to make java calls between the different components.
Is it possible? Any hints?
br,
//mike
For my work project I put all the code in one project. This project has a pom with dependency management specifying all dependencies and versions. Under that project it's broken up into modules. Each module has it's own pom which can specify type, either
war type to be published with it's own url, jar type to be packaged as a dependency of a war module, or pom type which simply executes a pom step. Each of those modules has it's own pom which specifies it's own dependency, with no versions by default.
Versions can inherit from the parent, and may be overridden if you need to make an exception.
If you're hosting different versions of in house dependency jar code, you can put those jars into the project in a folder structure, under the main or a separate module. You can use the pom with the maven-install-plugin to install those jars from there
into your local maven repository, and reference them from other modules as regular maven dependencies.
While they share a common structure for version management, and can reference each other so common code gets built into one jar which may be copied into multiple wars, each war module may be deployed (deplored?) independently. Put these wars on the same
domain and they should have no problem calling each other.
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)