you can specify multiple execution elements under the executions tag, giving each a different id and binding them at different phases. this is not mentioned in the intro document but this should be of some help:
http://www.mail-archive.com/[email protected]/msg28931.html ciao! On 11/29/05, Oles <[EMAIL PROTECTED]> wrote: > Gentelmen! > I needs twice to run ant tasks on two different phases. > I make: > <build> > <plugin> > <artifactId>maven-antrun-plugin</artifactId> > <executions> > <execution> > <phase>generate-sources</phase> > <configuration> > <tasks> > > <echo > message="generate-sources!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"/> > > </tasks> > </configuration> > <goals> > <goal>run</goal> > </goals> > </execution> > > <execution> > <phase>compile</phase> > <configuration> > <tasks> > > <echo > message="compile!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"/> > > </tasks> > </configuration> > <goals> > <goal>run</goal> > </goals> > </execution> > </executions> > </plugin> > > Maven wrote > Validation Messages: > > [0] You cannot have two plugin executions with the same (or > missing) <id/> elements. > Offending execution > Id: 'default' > Plugin:'org.apache.maven.plugins:maven-antrun-plugin' > Reason: Failed to validate POM > What will you advise? > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- "Programming, an artform that fights back" Anuerin G. Diaz Registered Linux User #246176 Friendly Linux Board @ http://mandrivausers.org/index.php http://capsule.ramfree17.org , when you absolutely have nothing else better to do --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
