The Ant plugin allows running scripts as part of the Maven lifecycle:
<plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <id>initialization-scripts</id> <phase>initialize</phase> <configuration> <target> <ant antfile="${script.path}"> <target name="initialize" /> </ant> </target> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin>
Last updated 5 years ago
Was this helpful?