我没有在maven项目层次结构中获得env.test.properties文件

时间:2015-03-26 11:59:18

标签: java maven

  

[错误]无法执行目标   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>

0 个答案:

没有答案