The first thing one should do when going off and trying to use this stuff is to check out the Wiki page that covers the latest greatest. At the time of this blog one can:
- Start/Stop a Terracotta Server
- mvn tc:start
- mvn tc:stop
- Run an app that uses Terracotta
- mvn tc:run
- In the plugin section add some configuration describing the class and number of nodes you want run to make that work.
- some example poms exist in the source of the plugin as well:
svn co http://svn.terracotta.org/svn/tc/maven-plugin/trunk/- example in maven-tc-plugin/examples/tc-maven-plugin-sample
- Run Tests using surefire
- mvn tc:test
- Similar to tc:run but with test classes instead of just mains
- Examples of this are also in the above checkout in the maven-tc-plugin/examples/tc-maven-sample-surefire directory
- Build boot jars
- mvn tc:bootjar
- Auto-download all dependencies
- Auto-download config modules specified in your tc-config.xml
Currently we are just using this for nightly snapshots. We'll be adding the ability to get finals in the next final release. Give it a try. It's really fun stuff.
UPDATE: Someone pointed out that this doesn't have much detail. It's a good point I added a little bit more but it does LINK to details. The pom.xml link is a good example pom and the wiki link has a bunch of details.
0 comments:
Post a Comment