sun.io.MalformedInputException in maven 1.x build

Problem
When invoking maven build, sun.io.MalformedInputException occured

Cause

UTF-8 file is in the project to be built. Or windows locale is not set to en

Solution
Add encoding option to project.properties

#compiling for Java 1.4
maven.compile.source=1.4
maven.compile.target=1.4

maven.compile.encoding=UTF-8

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理

Back to Top