Our code base has several projects in it, and many of them share similar or identical dependencies, specifically Spring Boot and several Jakarta libraries, ex:
<dependency>
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
<version>2.1.1</version>
<scope>system</scope>
<systemPath>${env.PROJECT_LIBRARIES}jakarta.annotation-api-2.1.1.jar</systemPath>
</dependency>
(Unfortunately due to system restrictions, we have to import the JARs from a local repository instead of the general Maven repository)
We also have a secondary Commons project that compiles to a JAR and is imported to the others, and I was wondering if there was a way to include the Maven dependencies there and utilize them through that directory
I tried including the dependencies in the Commons project and removing them from the dependency list of the parent, but it causes the parent to fail to compile, as the required libraries cannot be found
1