Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-dev] BuildContext null in Mojo when executed from within Eclipse


Hi,

On Wed, Nov 25, 2020 at 9:04 PM Oliver Drotbohm <odrotbohm@xxxxxxxxxx> wrote:
Anything obvious I am missing that could cause this?

Nothing obvious to me. The BuildContext is supposed to be injected by m2e into the container when running the mojo in incremental build. We'd need to debug m2e to find out at which point of this expected execution, something is broken or the buildContext becomes null.
It could be a bug. (although I believe, or at least I strongly hope. this case is already covered by some tests). Please open a new bug report with a minimal project and minimal steps to reproduce the issue. Ideally, providing the code of a basic mojo consuming BuildContext and configured for incremental build and a basic project consuming it.

Thanks in advance,

Back to the top