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)

Reply via email to