maven 中執行 ant 腳本

<plugins>
    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-antrun-plugin</artifactId>
        <version>1.7</version>
        <executions>
            <execution>
                <phase>process-resources</phase>
                <goals>
                    <goal>run</goal>
                </goals>
                <configuration>
                    <target>
                        <ant antfile="build.xml">
                            <target name="package.njrf" />
                        </ant>
                    </target>
                </configuration>
            </execution>
        </executions>
    </plugin>
</plugins>
相關文章
相關標籤/搜索