On 3-Apr-09, at 12:24 PM, Ford, Mark wrote:
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.
That all works according to the integration tests.
Any insight here would be appreciated.
Can't help you without a full working test project so that I can
reproduce the problem.
Thanks,
Jason
----------------------------------------------------------
Jason van Zyl
Founder, Apache Maven
http://twitter.com/jvanzyl
----------------------------------------------------------
Our achievements speak for themselves. What we have to keep track
of are our failures, discouragements and doubts. We tend to forget
the past difficulties, the many false starts, and the painful
groping. We see our past achievements as the end result of a
clean forward thrust, and our present difficulties as
signs of decline and decay.
-- Eric Hoffer, Reflections on the Human Condition
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]