maven打包编GBK码报错

mvn clean package 报错:

[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ ipay-service ---
[INFO] Changes detected - recompiling the module!
[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.sourceEncoding>
    </properties>
发布了65 篇原创文章 · 获赞 38 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/HelloWorldYangSong/article/details/103390383