[ https://issues.apache.org/jira/browse/MCOMPILER-307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17502038#comment-17502038 ]
Olivier Lamy commented on MCOMPILER-307: ---------------------------------------- currently I got such error message which looks to be a human readable error message :) `Cannot run program "/invalid/path/to/bin/javac"` {quote} [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1-SNAPSHOT:compile (default-compile) on project plexus-compiler-api: Fatal error compiling: Error while executing the external compiler. Error while executing process. Cannot run program "/invalid/path/to/bin/javac" (in directory "/Volumes/workspace/dev/sources/plexus/plexus-compiler/plexus-compiler-api"): error=2, No such file or directory -> [Help 1] {quote} > Improve error message when compiler executable path invalid > ----------------------------------------------------------- > > Key: MCOMPILER-307 > URL: https://issues.apache.org/jira/browse/MCOMPILER-307 > Project: Maven Compiler Plugin > Issue Type: Improvement > Affects Versions: 3.6.2 > Reporter: Bryan Parry > Priority: Major > Attachments: Maven compiler error.txt > > > When the compiler executable path and fork properties are set, and also the > compiler executable file does not exist, a CompilationFailureException is > thrown with a message: "Compilation failure". The plugin should be able to > check whether the compiler executable is a valid file, and print a message if > it does not exist (e.g. {{"Path to compiler executable " + path + " is > invalid. File not found."}}) > Here is an example of the maven compiler properties that can cause the error > to occur: > {code} > <properties> > > <maven.compiler.executable>/invalid/path/to/bin/javac</maven.compiler.executable> > <maven.compiler.fork>true</maven.compiler.fork> > </properties> > {code} > This error can be tricky to debug when a specific maven profile is enabled > only on a build server by default. -- This message was sent by Atlassian Jira (v8.20.1#820001)