【发布时间】:2011-08-13 23:44:07
【问题描述】:
我正在使用 maven-resources-plugin 从我的项目中复制一些资源,但我的资源之一是二进制文件。输出显示它是 Using 'UTF-8' encoding to copy filtered resources 我的问题!!!
这是我的插件配置。
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.5</version>
<executions>
<execution>
<id>copy-resources</id>
<!-- here the phase you need -->
<phase>validate</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/autopublisher</outputDirectory>
<resources>
<resource>
<directory>src/autopublisher</directory>
<filtering>true</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
我可以跳过二进制文件的 UTF-8 转换吗?
谢谢。
【问题讨论】:
-
Maven 不转换任何字符编码。它只需要知道在过滤期间必须应用 char 编码。二进制文件必须随时排除。
标签: maven-2 utf-8 maven maven-plugin maven-3