Home » Support » Issue Tracking » Feature suggestion: Improved Maven Enhancer support

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>
--- Webel IT Australia, "The Elements of the Web", Specialists in model-based UML, SysML, Enterprise Java, XML, and Drupal CMS web engineering. Dr Darren Kelly, BSc, PhD, https://www.webel.com.au
#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
ObjectDB - Fast Object Database for Java (JPA/JDO)

Post Reply

To post a reply and/or subscribe to update notifications - please login