有这个任务:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>clean</id>
<phase>clean</phase>
<configuration>
<tasks>
<delete dir="src\test\resources\templates" includeemptydirs="true" />
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
问题是:当我运行mvn clean
时,<phase>clean</phase>
告诉maven下载项目依赖项(尚不存在)并且出现Could not resolve dependencies
错误。
如何告诉maven不要求项目依赖项来运行这个插件?