gpt4 book ai didi

maven-2 - 如何使用 maven-resources-plugin 避免二进制的 UTF-8 编码?

转载 作者:行者123 更新时间:2023-12-04 01:35:37 26 4
gpt4 key购买 nike

我正在使用 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 binary filtering :

<nonFilteredFileExtensions>                            
<nonFilteredFileExtension>dcm</nonFilteredFileExtension>
</nonFilteredFileExtensions>

关于maven-2 - 如何使用 maven-resources-plugin 避免二进制的 UTF-8 编码?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5806792/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com