Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add metadata necessary to be recognized by m2e out of the box #820

Open
odrotbohm opened this issue Mar 10, 2020 · 0 comments
Open

Add metadata necessary to be recognized by m2e out of the box #820

odrotbohm opened this issue Mar 10, 2020 · 0 comments
Assignees
Labels
Milestone

Comments

@odrotbohm
Copy link

@odrotbohm odrotbohm commented Mar 10, 2020

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.

@raphw raphw self-assigned this Mar 10, 2020
@raphw raphw added the enhancement label Mar 10, 2020
@raphw raphw added this to the 1.10.8 milestone Mar 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.