Apache Tomcat Maven Plugin
  1. Apache Tomcat Maven Plugin
  2. MTOMCAT-188

Allow for the creation of a war that is both executable and deployable

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta-1
    • Fix Version/s: 2.1
    • Component/s: tomcat7
    • Labels:
      None

      Description

      Currently with the exec-war/-only goals, a jar or war is created that is executable but not deployable to an existing tomcat meaning two release artifacts would be required to take this approach.

      Ideally, a new goal would be added for creating war files that can be deployed to an existing tomcat or excuted directly.

      Steps
      a. Allow tomcat7-war-runner to copy the running war to the webapps folder if some property is set

      b. Add a goal to build some war with tomcat7-war-runner overlayed and add a manifest with main-class set.

      If this sounds interesting, I can have a patch available soon and any feedback would be great.

        Activity

        Hide
        Mitch Kyle added a comment -

        Here's a patch. You may want to change the name of the goal which I called standalone-war because I couldn't think of anything better.

        Show
        Mitch Kyle added a comment - Here's a patch. You may want to change the name of the goal which I called standalone-war because I couldn't think of anything better.
        Hide
        Olivier Lamy (*$^¨%`£) added a comment -
        Show
        Olivier Lamy (*$^¨%`£) added a comment - fixed http://svn.apache.org/r1418074 Thanks !
        Hide
        Hudson added a comment -

        Integrated in TomcatMavenPlugin-mvn3.x #222 (See https://builds.apache.org/job/TomcatMavenPlugin-mvn3.x/222/)
        MTOMCAT-188 Allow for the creation of a war that is both executable and deployable
        Submitted by Mitch Kyle
        Patch applied with reformating code (Revision 1418074)

        Result = FAILURE
        olamy : http://svn.apache.org/viewvc/?view=rev&rev=1418074
        Files :

        • /tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractExecWarMojo.java
        • /tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractStandaloneWarMojo.java
        • /tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/StandaloneWarMojo.java
        • /tomcat/maven-plugin/trunk/tomcat7-war-runner/src/main/java/org/apache/tomcat/maven/runner/Tomcat7Runner.java
        Show
        Hudson added a comment - Integrated in TomcatMavenPlugin-mvn3.x #222 (See https://builds.apache.org/job/TomcatMavenPlugin-mvn3.x/222/ ) MTOMCAT-188 Allow for the creation of a war that is both executable and deployable Submitted by Mitch Kyle Patch applied with reformating code (Revision 1418074) Result = FAILURE olamy : http://svn.apache.org/viewvc/?view=rev&rev=1418074 Files : /tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractExecWarMojo.java /tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractStandaloneWarMojo.java /tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/StandaloneWarMojo.java /tomcat/maven-plugin/trunk/tomcat7-war-runner/src/main/java/org/apache/tomcat/maven/runner/Tomcat7Runner.java

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development