Skip to content

How to use from Maven

Martin Paljak edited this page Oct 4, 2024 · 5 revisions

With maven-antrun-plugin in your <build>..</build> section:

<plugin>
    <artifactId>maven-antrun-plugin</artifactId>
    <version>3.1.0</version>
    <executions>
        <execution>
            <phase>package</phase>
            <configuration>
                <target>
                    <ant antfile="build.xml" inheritAll="false"/>
                </target>
            </configuration>
            <goals>
                <goal>run</goal>
            </goals>
        </execution>
    </executions>
</plugin>
Clone this wiki locally