XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0-beta-1
    • 2.0
    • tomcat7
    • -

    Description

      Please support a "skip" parameter to tomcat-run, tomcat-shutdown, as does jetty project.

      For my project, I use SkipITs variable to ask failsafe plugin to not execute IT tests.
      I also want to avoid having Tomcat started, stopped if IT tests won't execute (skipITs=true).
      I have the following configuration:

      <plugins>
      <plugin>
      <groupId>org.apache.tomcat.maven</groupId>
      <artifactId>tomcat7-maven-plugin</artifactId>
      <version>2.0-SNAPSHOT</version>
      <configuration>
      <domain>TomcatRunner</domain>
      <!-- ... -->
      </configuration>
      <executions>
      <execution>
      <id>tomcat-run</id>
      <goals>
      <goal>run-war-only</goal>
      </goals>
      <phase>pre-integration-test</phase>
      </execution>
      <execution>
      <id>tomcat-shutdown</id>
      <goals>
      <goal>shutdown</goal>
      </goals>
      <phase>post-integration-test</phase>
      </execution>
      </executions>
      </plugin>

      I need a skip variable as to use the following execution configuration:
      <configuration><skip>${skipITs}</skip></configuration>

      Maybe a single variable +
      if (skip) {
      log(...)
      return;
      }
      ... in org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo
      (http://svn.apache.org/repos/asf/tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractRunMojo.java)
      would be enough.

      Attachments

        Activity

          People

            olamy Olivier Lamy
            dutoitc Cédric Dutoit
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified