Uploaded image for project: 'cTAKES'
  1. cTAKES
  2. CTAKES-457

consistently usage of properties to manage dependency versions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0.0
    • 4.0.1
    • 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>
      

      Attachments

        Activity

          People

            alexz Alex Zbarcea
            alexz Alex Zbarcea
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: