Issue #2238: Feature suggestion: Improved Maven Enhancer support

Type: Feature RequestVersion: 2.7.4_01Priority: NormalStatus: ActiveReplies: 1
#1

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>
#2

Agreed. This improvement may require implementing a dedicated ObjectDB Maven plugin. Maybe all the class files in the target directories can be scanned automatically and enhanced if necessary.

ObjectDB Support

Reply