Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.2
    • Component/s: commons-lib
    • Labels:
      None

      Description

      If there is a WAR dependency, it is extracted to target/apache-tomcat-maven-plugin/ARTIFACT_NAME. This directory is deleted and re-created every invocation of the plugin, meaning that all WAR dependencies are re-extracted every run.

      Do not delete these extracted directories. Instead check the last modified timestamp of the directory against the last modified timestamp of the WAR dependency, and re-extract only if the WAR is newer

      1. MTOMCAT-159-1.diff
        3 kB
        Robert Hollencamp

        Activity

        Hide
        Robert Hollencamp added a comment -

        implementation

        Show
        Robert Hollencamp added a comment - implementation
        Hide
        Glen Mazza added a comment -

        What are the tomcat7 (tomcat6) goals that cause this deletion/extraction to occur? Just about all of them?

        Show
        Glen Mazza added a comment - What are the tomcat7 (tomcat6) goals that cause this deletion/extraction to occur? Just about all of them?
        Hide
        Olivier Lamy (*$^¨%`£) added a comment -

        Applied.
        Thanks for the patch!

        Show
        Olivier Lamy (*$^¨%`£) added a comment - Applied. Thanks for the patch!
        Hide
        Hudson added a comment -

        SUCCESS: Integrated in TomcatMavenPlugin-mvn3.x #264 (See https://builds.apache.org/job/TomcatMavenPlugin-mvn3.x/264/)
        MTOMCAT-159 WAR dependencies extracted every run
        Submitted by Robert Hollencamp (olamy: http://svn.apache.org/viewvc/?view=rev&rev=1538504)

        • /tomcat/maven-plugin/trunk/common-tomcat-maven-plugin/src/main/java/org/apache/tomcat/maven/common/run/DefaultClassLoaderEntriesCalculator.java
        Show
        Hudson added a comment - SUCCESS: Integrated in TomcatMavenPlugin-mvn3.x #264 (See https://builds.apache.org/job/TomcatMavenPlugin-mvn3.x/264/ ) MTOMCAT-159 WAR dependencies extracted every run Submitted by Robert Hollencamp (olamy: http://svn.apache.org/viewvc/?view=rev&rev=1538504 ) /tomcat/maven-plugin/trunk/common-tomcat-maven-plugin/src/main/java/org/apache/tomcat/maven/common/run/DefaultClassLoaderEntriesCalculator.java

          People

          • Assignee:
            Olivier Lamy (*$^¨%`£)
            Reporter:
            Robert Hollencamp
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development