<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target description="run the bat">
<echo>开始运行xxxx.bat命令行</echo>
<exec dir="bat文件的目录" executable="cmd.exe">
<arg line=" /c xxxx.bat"></arg>
</exec>
</target>
</configuration>
</execution>
</executions>
</plugin>