Uploaded image for project: 'OODT'
  1. OODT
  2. OODT-507

maven-cas-install-plugin should remove legacy jars from component's lib directory, if customLibs are specified

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.4
    • Fix Version/s: 0.5
    • Component/s: cas-mvn-plugins
    • Labels:
      None

      Description

      I think the maven-cas-install-plugin could help solve a deployment related issue: when upgraded versions of JAR files that are specified within the 'customLibs' parameter within the plugin configuration block of a given pom, legacy versions of the same JAR files already existing within a deployment directory (ie. filemgr/lib) can potentially conflict with these upgraded JARs if they are not first removed. This has, in the past, caused runtime errors that are difficult to trace.

      Although this is really more of a deployment issue that can be remedied if the individual performing the deployment is cognizant of existing legacy JARs, I think baking some intelligence into the cas-install plugin could ensure this problem never arises. To accomplish this, we could implement the following solution:

      • Within CASInstallDistMojo.execute [1], we ensure that the contents of a deployment component's 'libs' directory is removed prior to un-tarring/deployment if and only if the 'customLibs' element within the plugin configuration is specified and contains values. This would follow the model already implemented within CASInstallDistMojo.execute of removing the default policy files and configuration if custom versions of these files are specified in the plugin configuration.


      [1] http://svn.apache.org/repos/asf/oodt/tags/0.4/mvn/plugins/cas-install/src/main/java/org/apache/oodt/cas/install/CASInstallDistMojo.java

        Attachments

          Activity

            People

            • Assignee:
              riverma Rishi Verma
              Reporter:
              riverma Rishi Verma
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: