I am attempting to execute a clean and install for a project through the Maven 
Embedder (3.0-alpha-2). The build runs without any error but there are a number 
of mojo's that are never executed. For example: resources, compile, jar, etc. I 
only see the output for clean and install but nothing in between. If I run mvn 
from the command line then everything works as expected. The code that is not 
working is executing from a junit test from within eclipse.

I spent a fair amount of time debugging through the source and it appears that 
the bindings for these mojos are never making it into the phases. If I 
explicitly include mojos like resources:resources or compiler:compile in the 
MavenExecutionRequest that I pass to MavenEmbedder then they will execute. My 
assumption is that there is something failing during the discovery of plugins 
such that these default bindings aren't being attached to the lifecycle.

Any insight here would be appreciated.

Reply via email to