<executions>
         <execution>
           <phase>generate-sources</phase>
           <configuration>
             <tasks>
                           <echo message="Hello World 1"/>
                 </tasks>
           </configuration>
           <goals>
             <goal>run</goal>
           </goals>
         </execution>

         <execution>
           <phase>generate-sources</phase>
           <configuration>
             <tasks>
                           <echo message="Hello World 2"/>
                 </tasks>
           </configuration>
           <goals>
             <goal>run</goal>
           </goals>
         </execution>

       </executions>

run 2 executions in the same pluin.


On 1/6/06, Shah, Miral <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
> I am building a web app using maven 2.0.
> I have specified the following in my POM file:
>
> <build>
>    <plugins>
>
>          <plugin>
>        <artifactId>maven-antrun-plugin</artifactId>
>        <executions>
>          <execution>
>            <phase>generate-sources</phase>
>            <configuration>
>              <tasks>
>                            <echo message="Hello World 1"/>
>                  </tasks>
>            </configuration>
>            <goals>
>              <goal>run</goal>
>            </goals>
>          </execution>
>        </executions>
>      </plugin>
>
>          <plugin>
>        <artifactId>maven-antrun-plugin</artifactId>
>        <executions>
>          <execution>
>            <phase>install</phase>
>            <configuration>
>              <tasks>
>                            <echo message=" Hello World 2"/>
>
>                          </tasks>
>            </configuration>
>            <goals>
>              <goal>run</goal>
>            </goals>
>          </execution>
>        </executions>
>      </plugin>
>
>    </plugins>
> </build>
>
> Now in both the executions, it just executes 'echo message="Hello World
> 1"/>'. Any idea? Shouldn't it execute 'echo message="Hello World 2"/>'
> the second time (during install phase)?
>
> Many thanks,
> Miral
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to