Hi All,
I have multi module application and I am calling ANT for build and Maven for
site generation.
Parent
->Module 1 (common)
->Module 2 (web)
Each module has its own build.xml.
I am using maven ANT run plugin in my build tag of parent POM. (Created
three POM, one in parent and one each in module 1 and module 2.
Module 2 is dependent on module1)
When I don't use modules tag in my parent POM ,ANT build files are called
only once but when I use module tags in my parent POM ,the ANT build file
are called again. Am running mvn site from my parent folder
=========================
ANT Call in my parent POM.
=========================
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>compile</id>
<phase>compile</phase>
<configuration>
<tasks>
<ant antfile="path to module 1 build" >
<target name="compile" />
</ant>
<ant antfile="path to module2 build" >
<target name="buildAll" />
</ant>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
=========================
Module declaration in Parent POM
=========================
<modules>
<module>module1</module>
<module>module2</module>
</modules>
Please let me know why it is happening.
Thanks and Regards,
Anuradha Sinduria