Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
4.0.0
-
None
-
None
-
Patch
Description
Explicit versions for org.apache.lucene and org.apache.uima and org.apache.opennlp and org.springframework are used in both the parent pom.xml and in modules.
Similar mechanism as for ctakes.version is recommended to manage dependency versions.
The parent pom.xml would contain:
<properties> <library.version>4.0.0</library.version> </properties> <!-- ... --> <dependencyManagement> <dependencies> <dependency> <groupId>library</groupId> <artifactId>artifact-one</artifactId> <version>${library.version}</version> </dependency> <dependency> <groupId>library</groupId> <artifactId>artifact-two</artifactId> <version>${library.version}</version> </dependency> <!-- .... --> </dependencies> </dependencyManagement>
The module's pom.xml would contain only the groupId and artifactId, without the need of specifying the version:
<dependencies> <dependency> <groupId>library</groupId> <artifactId>artifact-two</artifactId> </dependency> </dependencies>