I have a Maven parent project that has 6 modules, each module generates a specific artifact that is copied somewhere, when all the modules are built I want to be able to run an ant task that commits and pushes these artifacts into its GIT repository. Any idea how this could be achieved inside Maven? Currently I run Maven from Ant and then I run the GIT Commit/Push task.
Thanks!
Johann
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>Group</groupId>
<artifactId>Parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<modules>
<module>ModuleUtil</module>
<module>ModuleDomain</module>
<module>ModuleData</module>
<module>ModuleUi</module>
<module>ModuleAsync</module>
<module>ModuleBatch</module>
<!-- At this stage I would like to run something -->
</modules>
</project>