Uploaded image for project: 'Apache Tomcat Maven Plugin'
  1. Apache Tomcat Maven Plugin
  2. MTOMCAT-290

Parallel deployment - Support version in war file name when using run-war goal

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.2
    • None
    • tomcat7
    • maven tomcat7

    Description

      When using the tomcat7:run-war goal, the context is created based on the path configuration parameter.

      To use parallel deployment (http://jagadesh4java.blogspot.be/2013/08/tomcat-7-parallel-deployment.html) I usually append the timestamp to the path as shown below:

      <groupId>org.apache.tomcat.maven</groupId>
      <artifactId>tomcat7-maven-plugin</artifactId>
      <configuration>
      <path>/myWar##${maven.build.timestamp}</path>

      This works perfectly when deploying (tomcat7:deploy-only) the war since Tomcat detect the ## and separate the context from the version.

      However there the same process is not applied when running the war (tomocat7:run-war) the ## characters are URL encoded as %13%13 and the version (=timestamp) is in the resulting context.

      Usually all character should be URL encoded as it is done as the moment, but this case of parallel deployement might be an exception. (feature was introducted in tomcat7).

      Attachments

        Activity

          People

            olamy Olivier Lamy
            oroger Olivier Roger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: