Wednesday 26 June 2013

Better maven integration with the Byteman 2.1.3 release

Byteman 2.1.3 has now been released and is available from Maven Central and from the Byteman downloads page.

As well as fixing a variety of bugs this release also includes some feature enhancements, most notably maven integration of the Byteman rule checker. So now, you can configure your maven project to use the Byteman rulecheck maven plugin and when  you run your maven tests it will ensure that your rule scripts

  -- contain no parse or type errors

  -- will be successfully injected into the specified target classes

The Byteman documentation page includes a link to a simple tutorial which provides before and after examples, demonstrating how to configure the rulecheck plugin and showing how it  catches errors introduced when your project code is updated.

Many thanks to Red Hat's Amos Feng for providing the mojo (not to mention the Mojo) required to enable this valuable feature.