将下面的代码放到<build>当中
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>1.5</version> <configuration> <target> <echo message="hello ant, from Maven!" /> <echo>Maybe this will work?</echo> </target> </configuration> </plugin>
控制台运行mvn antrun:run
即可调试变量.