Using the tc-maven Plugin
The tc-maven plugin can simplify the process of integrating and testing Terracotta products and other assets. The plugin supplies a number of useful tasks, including starting, stopping, and pausing Terracotta servers. To integrate the plugin, add the following to your project's POM (version shown is for Terracotta 4.3.0):
<plugin>
<groupId>org.terracotta.maven.plugins</groupId>
<artifactId>tc-maven-plugin</artifactId>
<version>2.0.0</version>
</plugin>
The following is an abbreviated list of goals available with the tc-maven plugin:
Goal | Function |
tc:help | Print help. |
tc:start | Start the Terracotta server. |
tc:stop | Stop the Terracotta server. |
tc:restart | Restart the Terracotta server. |
tc:dev-console | Start the Terracotta Developer Console. |
tc:run | Start multiple Terracotta server and client processes. |
tc:clean | Clean Terracotta data and logs directories. |
tc:terminate | Stop web servers that started with tc:run. |
Execute tc:help to print more detailed information on these goals.