Add Maven plugin for bytecode enhancement.

Description

Create Maven plugin for enhancement of .class files.

Activity

Show:

Jeremy Whiting May 19, 2014 at 11:33 AM

Christian Bauer May 18, 2014 at 10:58 AM

There doesn't seem to be much documentation on how this is supposed to work, so here goes:

<build> <pluginManagement> <plugins> <plugin> <groupId>org.hibernate.orm.tooling</groupId> <artifactId>hibernate-enhance-maven-plugin</artifactId> <version>${hibernate.version}</version> <dependencies> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-entitymanager</artifactId> <version>${hibernate.version}</version> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-validator</artifactId> <version>${hibernate.validator.version}</version> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-envers</artifactId> <version>${hibernate.version}</version> </dependency> </dependencies> <executions> <execution> <phase>compile</phase> <goals> <goal>enhance</goal> </goals> </execution> </executions> </plugin> </plugins> </pluginManagement> <plugins> <plugin> <groupId>org.hibernate.orm.tooling</groupId> <artifactId>hibernate-enhance-maven-plugin</artifactId> <dependencies> <!-- Yes, you really must have an explicit dependency on the thing you want to enhance --> <dependency> <groupId>my.project</groupId> <artifactId>my-entity-model-artifact</artifactId> <version>${project.version}</version> </dependency> </dependencies> </plugin> </plugins> </build>

Jeremy Whiting August 2, 2013 at 8:23 AM

A Pull Request has been created to bring in the code changes https://github.com/hibernate/hibernate-orm/pull/556.

Fixed

Details

Assignee

Reporter

Labels

Components

Fix versions

Priority

Created June 28, 2013 at 9:18 AM
Updated May 19, 2014 at 11:36 AM
Resolved August 20, 2013 at 2:55 PM

Flag notifications