how to solve "[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!"

[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!

Saw this warning message when using failsafe maven plugin, found the fix after a little search.

add following to pom.xml

<properties>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
时间: 2024-10-20 06:31:06

how to solve "[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!"的相关文章

Non-ASCII character &#39;\xe8&#39; in file xxx.py on line 8, but no encoding declared

使用网上某个python程序,编译时报错: File "xxx.py", line 8         SyntaxError: Non-ASCII character '\xe8' in file xxx.py on line 8, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details 原因是缺少编码类型声明:no encoding declared 段首添加一行声明即可:

make: Warning: File `Makefile&#39; has modification time 1.8e+06 s in the future

通过这个错误提示信息我们可以知道,Makefile的修改时间点是Linux当前的一个未来时间点.可以通过修改Linux的当前时间来解决这个问题: $sudo date -s 'hh:mm:ss yyyy-mm-dd' 比如我想讲我的Linux系统的时间修改为2017-09-18 18:45:00 可以通过如下指令修改: $sudo date -s '18:45:00 2017-09-18' make: Warning: File `Makefile' has modification time

make: Warning: File `led.c&#39; has modification time 15 s in the future

S5PV210裸机程序 执行make出现错误 错误原因:宿主机和虚拟机时间不同步导致 解决方法:在虚拟机中---->虚拟机---->设置--->选项---->vmware tools---->将客户机与虚拟机同步--->确定 make: Warning: File `led.c' has modification time 15 s in the future

python出现Non-ASCII character &#39;\xe7&#39; in file ex6.py on line 1, but no encoding declare错误

http://www.cnblogs.com/qi09/archive/2012/02/06/2340712.html python中出现Non-ASCII character '\xe7' in file ex6.py on line 1, but no encoding declare的错误 可按照错误建议网址查看http://www.python.org/peps/pep-0263.html 发现是因为Python在默认状态下不支持源文件中的编码所致.解决方案有如下三种: 一.在文件头部添

python问题:SyntaxError:Non-ASCII character &#39;\xe5&#39; in file kNN.py on line 2, but no encoding declared;

因为Python在默认状态下不支持源文件中的编码所致.解决方案有如下三种: 一.在文件头部添加如下注释码: # coding=<encoding name> 例如,可添加# coding=utf-8 二.在文件头部添加如下两行注释码: #!/usr/bin/python # -*- coding: <encoding name> -*- 例如,可添加# -*- coding: utf-8 -*- 三.在文件头部添加如下两行注释码: #!/usr/bin/python # vim:

Warning: File `src/core/nginx.h&#39; has modification time 1.2e+07 s in the future

Nginx安装时Warning: File `src/core/nginx.h' has modification time 1.2e+07 s in the future问题的解决方法 问题场景: 解压文件:tar -zxvf nginx-1.7.4.tar.gz nginx-1.7.4/ nginx-1.7.4/auto/ nginx-1.7.4/conf/ tar: nginx-1.7.4/auto: time stamp 2014-08-05 19:13:10 is 12165186.0

SyntaxError: Non-ASCII character &#39;\xe5&#39; in file a.py on line 9, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

SyntaxError: Non-ASCII character '\xe5' in file a.py on line 9, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details 在文件头部加: #-*-coding:utf-8-*- SyntaxError: Non-ASCII character '\xe5' in file a.py on line 9, but no enco

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><

解决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