with it bound to the pre-site phase it will now always run before site just go
mvn site and it will run your ant task for you I suspect you are not understanding how the maven lifecycle works and you are thinking that maven 2 is just a fancy ant (maven 1 is a fancy ant, maven 2 is not) -Stephen On 23/04/2009, huser <[email protected]> wrote: > > Hi, > > I added <phase>pre-site</phase>. POM looks like this: > > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-antrun-plugin</artifactId> > <version>1.3</version> > > <executions> > <execution> > <phase>pre-site</phase> > <configuration> > <tasks> > <ant antfile="javadoc-gen.xml" target="javadoc"/> > </tasks> > > </configuration> > <goals> > <goal>run</goal> > </goals> > </execution> > </executions> > </plugin> > > I still dont see the ant task being run. > > mvn antrun:run > > javadoc is not getting created in target. > > > > Stephen Connolly-2 wrote: >> >> bind the execution to the pre-site phase >> >> Sent from my [rhymes with myPod] ;-) >> >> On 22 Apr 2009, at 22:40, huser <[email protected]> wrote: >> >>> >>> Hi , >>> >>> I added maven ant run plugin to my project POM.xml. Then I ran mvn >>> clean >>> install antrun:run. >>> >>> I do not see the javadoc target getting generated. The plugin is not >>> working >>> as expected. Any ideas ? >>> >>> My project has various modules inside it. Following change was made in >>> project\pom.xml >>> >>> <plugin> >>> <artifactId>maven-antrun-plugin</artifactId> >>> <executions> >>> <execution> >>> <configuration> >>> <tasks> >>> <ant antfile="javadoc-gen.xml" target="javadoc"/> >>> </tasks> >>> >>> </configuration> >>> <goals> >>> <goal>run</goal> >>> </goals> >>> </execution> >>> </executions> >>> </plugin> >>> </plugins> >>> -- >>> View this message in context: >>> http://www.nabble.com/maven-antrun-plugin-tp23176592p23176592.html >>> Sent from the Maven - Users mailing list archive at Nabble.com. >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [email protected] >>> For additional commands, e-mail: [email protected] >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> >> > > -- > View this message in context: > http://www.nabble.com/maven-antrun-plugin-tp23176592p23197429.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
