There may a way to achieve recursive application of the enhancer using the maven plugin approach using maven tricks, but the current way of specifying arguments is a bit tedious when there are lots of entities in different packages (and also a bit error prone, because you need to remember add a new argument each time an entity is added in a new package):
<configuration> <mainClass>com.objectdb.Enhancer</mainClass> <!-- List of your packages --> <arguments> <argument>com.x.y.a.*</argument> <argument>com.x.y.b.*</argument> </arguments> </configuration>