Hi,

I have a reqmt to execute start, stop tomcat through its shell script. How
can i do this in maven? In Ant, we have exec command and i can configure
targets for stop and start.I read through the usage of  Exec maven plugin
and configured this

        <execution>
            <goals>
              <goal>exec</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <executable>startup.bat</executable>
          <!-- optional -->
          <workingDirectory>D:\apache-tomcat-6.0.16\bin</workingDirectory>
          <arguments/>
        </configuration>

While i'm able to do a tomcat start, i'm not sure how i can do a tomcat stop
as the xml configuration doesn't seem to support multile exec commands.

Rgds,
Sathya

Reply via email to