Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add metadata necessary to be recognized by m2e out of the box #820
It would be cool if the ByteBuddy Maven plugin would automatically be detected and properly executed within m2e (Eclipse Maven integration). Ideally that would also cause execution errors to properly reported in Eclipse's problems view etc.
Currently m2e is not able to detect proper lifecycle mappings (see the docs)but you can Eclipse to invoke the plugin by editing the lifecycle metadata configuration (Settings > Maven > Lifecycle Mappings > Open workspace lifecycle mappings metadata) and adding the following snippet of XML.
<pluginExecution> <pluginExecutionFilter> <groupId>net.bytebuddy</groupId> <artifactId>byte-buddy-maven-plugin</artifactId> <versionRange>[0.0.1,)</versionRange> <goals> <goal>transform</goal> </goals> </pluginExecutionFilter> <action> <execute> <runOnIncremental>true</runOnIncremental> </execute> </action> </pluginExecution>
The m2e developer documentation contains useful hints on what it takes to make this work.