maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wendy Smoak" <>
Subject Re: Running MVN Plugin from POM.xml VS Command-Line
Date Sat, 05 Jul 2008 02:28:29 GMT
On Fri, Jul 4, 2008 at 6:35 PM, Morgovsky, Alexander (US - Glen Mills)
<> wrote:

> However, when I bound this plugin to a phase in the pom.xml (e.g.
> deploy) and ran the following:
> mvn deploy
> Then the plugin executed correctly.  Why doesnt the plugin work from the
> command line when invoked directly but only works in the POM.xml when
> bound to a phase?  Please let me know what Im doing wrong.  Thanks.

When you type 'mvn deploy' you are not invoking the deploy plugin,
you're telling Maven to go through the build lifecycle and execute all
the plugins bound to the various phases up to and including the deploy
phase.  The default executions will depend on the packaging for that
pom, and then whatever additional plugins you have configured will
also be executed.

My guess is that the plugin goal needs something from one of the
earlier phases, so executing it in isolation doesn't work.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message