Hmm, the war is created in the package phase, so your ant stuff executing in the deploy phase should happen after the war is created. You should be able to see this in the log output of the build.
/Anders On Tue, Oct 26, 2010 at 10:28, paladine <[email protected]> wrote: > > it is already on the last phase. > i am adding my <build> tag of pom.xml > > thanks in advance > > > <build> > <finalName>asd</finalName> > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-compiler-plugin</artifactId> > <version>2.0</version> > <configuration> > <source>1.6</source> > <target>1.6</target> > </configuration> > </plugin> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-war-plugin</artifactId> > <version>2.0</version> > <configuration> > <warName>asd</warName> > <webResources> > <resource> > <!-- this is relative to the pom.xml directory --> > > <directory>src/main/webapp</directory> > </resource> > </webResources> > </configuration> > </plugin> > <plugin> > <artifactId>maven-antrun-plugin</artifactId> > <version>1.6</version> > <executions> > <execution> > <!--phase>generate-sources</phase--> > <phase>deploy</phase> > <configuration> > <tasks> > <exec > executable="src/main/files/script" > failonerror="true"> > </exec> > </tasks> > </configuration> > <goals> > <goal>run</goal> > </goals> > </execution> > </executions> > </plugin> > </plugins> > </build> > -- > View this message in context: > http://maven.40175.n5.nabble.com/maven-antrun-plugin-tp3236582p3236700.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] > >
