Maven tile that performs the Ebean enhancement and Query bean enhancement.
In your project pom under build / plugins add the tiles-maven-plugin with the following configuration. Note that this example also brings in the java-compile tile.
<!-- maven build / plugins -->
<plugin>
<groupId>io.repaint.maven</groupId>
<artifactId>tiles-maven-plugin</artifactId>
<version>2.19</version>
<extensions>true</extensions>
<configuration>
<tiles>
<tile>io.ebean.tile:enhancement:12.8.2</tile>
</tiles>
</configuration>
</plugin>
Effectively the ebean enhancement tile brings in 3 plugins:
ebean-maven-plugin... for enhancing Entity beans and @Transactional (in src/main and src/test)querybean-maven-plugin... for enhancing "Query beans" (in src/main and src/test)codegen-maven-plugin... for generating "Finders"
<!-- defaults, override in your project pom if needed -->
<properties>
<ebean-maven-plugin.version>12.1.6</ebean-maven-plugin.version>
<ebean-maven-plugin.args>debug=0</ebean-maven-plugin.args>
</properties>
<!-- brought into build / plugins -->
<build>
<plugins>
<plugin>
<groupId>io.ebean</groupId>
<artifactId>ebean-maven-plugin</artifactId>
<version>${ebean-maven-plugin.version}</version>
<executions>
<execution>
<id>main</id>
<phase>process-classes</phase>
<configuration>
<transformArgs>${ebean-maven-plugin.args}</transformArgs>
</configuration>
<goals>
<goal>enhance</goal>
</goals>
</execution>
<execution>
<id>test</id>
<phase>process-test-classes</phase>
<configuration>
<transformArgs>${ebean-maven-plugin.args}</transformArgs>
</configuration>
<goals>
<goal>testEnhance</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>