3

I'm trying to configure Jooq source generation to work with Maven in Eclipse (I use M2E), but I'm running into a problem when following the Jooq manual.

Here is the relevant part of my pom.xml: https://gist.github.com/cfd8a0556dd441ab43ff

The error is: Plugin execution not covered by lifecycle configuration: org.jooq:jooq-codegen-maven:2.0.5:generate (execution: default, phase: generate-sources)

It occurs on line 12 of the gist snippet above. What am I doing wrong?

sanity
  • 35,347
  • 40
  • 135
  • 226

2 Answers2

1

Please see corresponding ME2 wiki page. You need to explicitly configure IDE build-time bindings for your plugin to execute certain goals during build. Alternatively you can implement M2E configurator for your Maven plugin that could take care of that.

Eugene Kuleshov
  • 31,461
  • 5
  • 66
  • 67
0

As Eugene also stated, this is quite a common problem with the official implementation of M2E. The source code generation phase in the build lifecycle seems to cause a lot of trouble.

I generally suggest using the Apache / Sonatype version of the M2E plugin. This is their Eclipse update site:

http://m2eclipse.sonatype.org/sites/m2e/

It seems to be better integrated in Eclipse / Maven. See also this question here:

How to solve "Plugin execution not covered by lifecycle configuration" for Spring Data Maven Builds

Community
  • 1
  • 1
Lukas Eder
  • 211,314
  • 129
  • 689
  • 1,509