빌드하는 동안 내 프로젝트 작업 공간 src/main/resources/my
에서 5 properties
개의 파일을 C:\my
(Windows 7에서 개발) 파일로 복사해야합니다. C:\my
이 존재하지만 비어 있습니다.Maven : 작업 영역의 파일을 대상 외부에 복사하십시오.
내 pom.xml 파일에서 다음 코드를 사용하고 있지만 파일은 복사되지 않습니다.
빌드하는 동안, 나는 어떤 오류가 발생하지 않지만, 나는 다음과 같은 출력을 얻고있다 :
[INFO] --- maven-resources-plugin:2.5:copy-resources (copy-my-resources) @ my-webapp ---
[debug] execute contextualize
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 5 resources
에주의를, 복사가 성공하면 그것은 일반적처럼이 [INFO] Copying 5 resources to somewhere
말을하지 않습니다.
그러나 파일은 C:\my
으로 전혀 복사되지 않습니다.
내 XML 코드에서 무엇을 변경해야합니까?
다음은 관련 코드입니다 :
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.5</version>
<executions>
<execution>
<id>copy-my-resources</id>
<phase>process-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<!-- overwrite! -->
<overwrite>true</overwrite>
<outputDirectory>${env.HOMEDRIVE}/my</outputDirectory>
<resources>
<resource>
<directory>src/main/resources/my</directory>
<filtering>false</filtering>
<includes>
<include>**/*.properties</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>