Skip to content

Instantly share code, notes, and snippets.

@devbhuwan
Last active November 3, 2016 15:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devbhuwan/28b80c1d7320c30bdd02c661897e4915 to your computer and use it in GitHub Desktop.
Save devbhuwan/28b80c1d7320c30bdd02c661897e4915 to your computer and use it in GitHub Desktop.
<plugin>
<!-- Ant Maven Plugin -->
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<dependencies>
<!-- For Ant Contrib Tasks -->
<dependency>
<groupId>ant-contrib</groupId>
<artifactId>ant-contrib</artifactId>
<version>1.0b3</version>
<exclusions>
<exclusion>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<executions>
<!-- Execution Definition -->
<execution>
<id>antRun</id>
<phase>prepare-package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<failOnError>true</failOnError>
<target>
<!-- Properties pass to antBuild Target -->
<property name="buildDir" value="${project.build.directory}"/>
<property name="srcDir" value="${project.build.directory}"/>
<!-- Good way to separate antBuild config from pom otherwise it becomes dirty pom -->
<ant antFile="antBuild.xml" target="antBuild"/>
</target>
</configuration>
</execution>
</executions>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment