You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "ieuan richards (Jira)" <ji...@apache.org> on 2022/04/11 12:08:00 UTC
[jira] [Created] (MCOMPILER-491) testCompile goal doesn't fail the build when encoding error occurs
ieuan richards created MCOMPILER-491:
----------------------------------------
Summary: testCompile goal doesn't fail the build when encoding error occurs
Key: MCOMPILER-491
URL: https://issues.apache.org/jira/browse/MCOMPILER-491
Project: Maven Compiler Plugin
Issue Type: Bug
Affects Versions: 3.10.1
Environment: Windows/Linux
Reporter: ieuan richards
I have a java test source file which is encoded as ANSI and contains this character 'å' which is not mappable to UTF-8. When I run 'mvn -Dproject.build.sourceEncoding=UTF-8 clean test' the compiler plugin logs this error:
"[ERROR] /TestFile.java:[88,67] unmappable character for encoding UTF-8".
At this point I'd expect the mvn build to fail.
However, instead it continues as if though this was just a warning and runs all of the tests which compiled succesfully omitting the one which failed.
The build then succeeds as though nothing failed.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)