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.