Using the Maven Cactus Plug-in Vincent Massol
  1. Create a src/test-cactus directory in your project and put your Cactus test classes in it (with the normal package directory structure). Note that the location of the Cactus test sources can be configured through the cactus.src.dir property.
  2. Create a build.properties file in your project root directory (where project.xml is located) and define in it the location of the container you wish to use for the tests. For example, if you wish to run the Cactus tests on Tomcat 4.1.24 and on Resin 2.6, you will write:
  3. Then, simply type maven cactus:test (or maven cactus for short) to run the Cactus tests.