MAVEN Error: Using platform encoding (GBK actually) to copy filtered resources.....

环境:Maven3.2.5+MyEclipse 2015CI

现象:在Maven编译过程中出现错误信息:Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!

附:此时Mavenproject配置例如以下:

1、project属性,编码设置为UTF-8:

2、pom.xml属性

<plugin>

<artifactId>maven-compiler-plugin</artifactId>

<version>3.3</version>

<configuration>

<source>1.7</source>

<target>1.7</target>

<encoding>UTF-8</encoding>

</configuration>

</plugin>

解决方式:

在pom.xml文件里增加配置:

<properties>

<project.build.sourceEncoding>

UTF-8

</project.build.sourceEncoding>

</properties>

效果:问题解决。

时间: 2024-11-04 10:16:53

MAVEN Error: Using platform encoding (GBK actually) to copy filtered resources.....的相关文章

警告:Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!

执行Maven Install打包的时候,提示以下警告信息: [WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent! 解决:需要在pom.xml中的<project>中添加<properties>标签: <properties> <project.build.sourceEncoding> UT

maven工程中警告[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!

[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent! [警告]使用时平台编码格式(GBK actually)进行解析的文件资源,也就是说,构建是依赖于平台的! 错误原因:一些源文件的编码格式并不是工具平台的默认的解析格式,二者有冲突,所以报错 解决方法:在maven工程中的父工程POM中加入以下代码" <properties

Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!

执行Maven Install打包的时候,提示以下警告信息: [WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent! 需要在<project>中添加<properties>标签: <properties> <project.build.sourceEncoding> UTF-8 </pro

maven项目警告: Using platform encoding (UTF-8 actually) to copy filtered resources

maven项目警告: Using platform encoding (UTF-8 actually) to copy filtered resources 原文地址:https://www.cnblogs.com/hfultrastrong/p/8455288.html

Maven install [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources

一.背景 maven项目install过程中,出现:[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!警告,虽说不影响项目的正常打包运行,但对于强迫症的我来说实在是感觉难受,所以经过努力找到了完美的解决方案,如下. 二.原因以及解决办法 之所以出现这个问题,是因为我们没有在pom.xml文件的<properties><

Using platform encoding GBK actually to copy filtered reso

执行Maven Install打包的时候,提示以下警告信息: [WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent! 解决方法: 打开项目属性>Resources,按下图修改. 保存后重新执行Maven Install 发现警告依然存在,原来是理解错误错误了,应该修改Maven的配置文件中关于编码的配置<encoding>u

解决Maven工程install时[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources

一.背景 最近的项目在用maven 进行install的时候,发现老师在控制台输出警告:[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!虽然并不影响项目的正常运行和install,但是对于处女座的我来说一点都不想看到这警告的发生.所以就研究了一下,找到解决办法,现在分享给大家. 二.解决方式 在maven项目的pom.xm

解决maven打包编译出现File encoding has not been set问题

maven打包编译时后台一直输出警告信息 [WARNING] File encoding has not been set, using platform encoding GBK, i.e. build is platform dependent! 找了半天,原来只要在pom.xml文件中增加一个配置项即可 <properties>         <project.build.sourceEncoding>UTF-8</project.build.sourceEncodi

maven, install 时候报错“编码 gbk 的不可映射字符”的解决方法

myeclipse maven, install 时候报错"编码 gbk 的不可映射字符" 报错的原因是compiler采用了GBK编码,而源代码设置的是utf8编码导致编译的时候无法正确解析源码,解决方法很简单,在pom的compiler插件配置处加入<encoding>utf8</encoding> 即可,如下: <build>        <plugins>            <plugin>