zoukankan      html  css  js  c++  java
  • [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!

    一、背景

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

    二、解决方式

    在maven项目的pom.xml中添加如下配置

    1 <properties>
    2     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    3 </properties>

    保存后我们再运行,发现之前的警告不见了,内心爽的要飞起来~

    说明:如果我们当前maven项目是别的项目的子项目,只需要在父项目中加入该配置即可,子项目就可以继承了。

     

    转载:http://www.cnblogs.com/hafiz/p/6537790.html

  • 相关阅读:
    动态调整iframe的高度
    Binary Tree Zigzag Level Order Traversal
    Leetcode Anagrams
    二叉树层次遍历串成单链表
    leetcode 4sum
    leetcode 二叉树系列
    编程之美2.3
    Decode Ways
    leetcode graycode
    leetcode editdistance
  • 原文地址:https://www.cnblogs.com/shengulong/p/9205348.html
Copyright © 2011-2022 走看看