please ignore this email!

On Jan 18, 2008 7:35 PM, Thomas Tardy <[EMAIL PROTECTED]> wrote:

> Hi all,
>
> Sorry, it wasn't supposed to send the previous email!
>
> I have a project parent pom which contains the following plugin execution:
> <profiles>
>         <profile>
>             <id>intBuild</id>
>             <build>
>                 <plugins>
>                     <plugin>
>                         <groupId>org.apache.maven.plugins</groupId>
>                         <artifactId>maven-antrun-plugin</artifactId>
>                         <executions>
>                             <execution>
>                                 <phase>deploy</phase>
>                                 <configuration>
>                                     <tasks>
>                                           <echo>Profile: intBuild, Phase:
> deploy, Task: ant</echo>
>                                           <ant anfile ....../>
>                                     </tasks>
>                                 </configuration>
>                                 <goals>
>                                     <goal>run</goal>
>                                 </goals>
>                             </execution>
>                         </executions>
>                     </plugin>
>                 </plugins>
>             </build>
>         </profile>
> </profiles>
>
> The child pom looks like this:
> <build>
>         <plugins>
>             <plugin>
>                 <artifactId>maven-antrun-plugin</artifactId>
>                 <executions>
>                     <execution>
>                         <phase>verify</phase>
>                         <configuration>
>                             <tasks>
>                                   <echo>Profile: none, Phase: verify,
> Task: exec</echo>
>                                   <exec executable . . . ./>
>                             </tasks>
>                         </configuration>
>                         <goals>
>                             <goal>run</goal>
>                         </goals>
>                     </execution>
>                 </executions>
>             </plugin>
>         </plugins>
> </build>
>
> The child is defined as a module of the parent pom.
>
> The ant script called by the parent pom is printing out a message, when it
> is called.
>
> When I start maven executing on the parent in the profile 'intBuild' but
> just for the goal 'install', I get the following output.
>
> echo: Profile: none, Phase: verify, Task: exec
> echo: Hello from the ant script
>
> How is this possible? I can't see the echo from the plugin in the parent
> pom, but the ant is being executed. And why is something executed from the
> parent pom at all? I'm starting maven with the goal 'install' and not
> deploy.
>
> Thank you for any help!
>
> Kind Regards,
> Thomas
>

Reply via email to