---
title: "maven之资源文件编码设置"
author: "85977328"
date: "2014-01-21T11:02:32Z"
tags: []
categories: ["企业架构"]
slug: "maven"
draft: false
lastmod: "2014-01-21T11:02:32Z"
id: 2007633
url: "https://phl.iteye.com/blog/2007633"
---

在install maven项目的时候如果有： \[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent! 提示，这说明你没有指定编码，只能按照平台的默认编码进行拷贝。如果原来编码使用的是UTF-8进行保存，而这里拷贝用GBK肯定会出现乱码的。所以要改成自己的编码保存的方式。 添加： UTF-8 添加后： Using 'UTF-8' encoding to copy filtered resources. 会出现如上的提示。