Hi Guys,
I have an
ant task in maven which is a taskdef...but I want this task to execute after the source files are compiled since I am using the class file in this ant task...but the ant task seems to be executing first before the source files compile!...any suggestions
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>generate-sources</phase>
<configuration>
<tasks>
<taskdef name="includepagetask" classname="com.IncludePageAntTask">
<classpath refid="maven.compile.classpath"/>
</taskdef>
<includepagetask admwebportalconfigpath="C:\work\Web\src\portalconfig.xml"
outputfilename="templateControllerInclude.jsp" />
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
"In theory, there is no difference between theory and practice. But, in practice, there is."<br /> - Jan L.A. van de Snepscheut