[ 
https://issues.apache.org/jira/browse/MCOMPILER-491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17729678#comment-17729678
 ] 

Sebb commented on MCOMPILER-491:
--------------------------------

AFAICT, the compiler still generates the same class file provided that the 
build completes OK.

However, if the build fails (e.g. using fork=true), then the class files are 
not created.

> 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
>            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)

Reply via email to