[错误]无法执行目标 org.apache.maven.plugins:maven-antrun-plugin:1.1:运行(默认)on project clean:执行ant任务时出错:警告:无法找到 文件 C:\ Users \用户萨蒂扬\ IdeaProjects \演示的\ src \主\资源\ env.test.properties 复印。 - > [帮助1]
enter code here
<profile>
<id>test</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<echo>Using env.test.properties</echo>
<copy file="src/main/resources/env.test.properties"
tofile="${project.build.outputDirectory}/env.properties"/>
</tasks>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>