You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Russell, Mark" <Ma...@comverse.com> on 2006/06/28 01:40:13 UTC
Plugin Question (plugin executing multiple times when it shouldn't)
I have a plugin that I will generally call directly from the commandline
(though I don't want to preclude putting it in the lifecycle).
Currently this plugin is configured inside a pom project (ie the project
itself uses pom for the packaging)
When I invoke the plugin from the commandline it seems to be executing 3
times.
The configuration from the pom.xml:
<build>
<plugins>
<plugin>
<groupId>com.comverse.mvn.plugins</groupId>
<artifactId>my-maven-plugin</artifactId>
<configuration>
<hostName>some.host.com</hostName>
<userId>${userId}</userId>
<password>${password}</password>
</configuration>
</plugin>
</plugins>
</build>
Any idea on why this executes three times? Do I have to bind it to a
specific phase even though I'm only calling it on the commandline?
Mark Russell
Re: Plugin Question (plugin executing multiple times when it shouldn't)
Posted by Napoleon Esmundo Ramirez <nr...@gmail.com>.
Hello,
You don't have to bind it to a phase when you call it in the commandline.
The pom fragment doesn't look wrong at all. There must be something wrong
in the code itself.
Cheers,
Nap
On 6/28/06, Russell, Mark <Ma...@comverse.com> wrote:
>
> I have a plugin that I will generally call directly from the commandline
> (though I don't want to preclude putting it in the lifecycle).
> Currently this plugin is configured inside a pom project (ie the project
> itself uses pom for the packaging)
>
>
>
> When I invoke the plugin from the commandline it seems to be executing 3
> times.
>
>
>
> The configuration from the pom.xml:
>
>
>
> <build>
>
> <plugins>
>
> <plugin>
>
> <groupId>com.comverse.mvn.plugins</groupId>
>
> <artifactId>my-maven-plugin</artifactId>
>
> <configuration>
>
> <hostName>some.host.com</hostName>
>
> <userId>${userId}</userId>
>
> <password>${password}</password>
>
> </configuration>
>
> </plugin>
> </plugins>
>
> </build>
>
>
>
> Any idea on why this executes three times? Do I have to bind it to a
> specific phase even though I'm only calling it on the commandline?
>
>
>
>
>
> Mark Russell
>
>
>
>
>
>
>