[ https://issues.apache.org/jira/browse/MCOMPILER-491?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Elliotte Rusty Harold closed MCOMPILER-491. ------------------------------------------- > 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 (Moved to GitHub) > Issue Type: Bug > Affects Versions: 3.10.1 > Environment: Windows/Linux > Reporter: ieuan richards > Priority: Major > > 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.10#820010)