You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Francois Loriot (Jira)" <ji...@apache.org> on 2021/03/03 00:10:00 UTC

[jira] [Updated] (MNG-7109) Toolchain plugin does not show compile errors in Windows 10

     [ https://issues.apache.org/jira/browse/MNG-7109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Francois Loriot updated MNG-7109:
---------------------------------
    Description: 
I have recently tried to build some java projects on Windows 10 using the toolchain plugin, but I see that when there are java compilation errors, the output of the build does not list the errors.  The same build with identical setup on Windows 7 correctly shows the errors.  I'm running Maven with Oracle JDK 1.8 (I have also tried Open JDK 1.8 and Oracle 9) and the toolchain for the compilation points to IBM SDK 1.6 (I have also tried SDK 1.6 and 1.8).

I'm using the default/latest toolchain and compiler plugins.  

I have also noticed that every time the compiler is being called during the build, it briefly pops up a command prompt window with some output.  I'm thinking the actual error description in case of java errors goes in these windows, instead of the build output.

I can reproduce the same behavior running the maven goals from within JetBrains Intelli J.

I have confirmed the same behavior with other developers in my company.

Running with -X or -e did not help either.

Here is an example:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project ebill-webcommon: Compilation failure ->  *===== MISSING THE ERRORS HERE =======* [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :ebill-webcommon

 

  was:
I have recently tried to build some java projects on Windows 10 using the toolchain plugin, but I see that when there are java compilation errors, the output of the build does not list the errors.  The same build with identical setup on Windows 7 correctly shows the errors.  I'm running Maven with Oracle JDK 1.8 (I have also tried Open JDK 1.8 and Oracle 9) and the toolchain for the compilation points to IBM SDK 1.6 (I have also tried SDK 1.6 and 1.8).

I'm using the default/latest toolchain and compiler plugins.  

I have also noticed that every time the compiler is being called during the build, it briefly pops up a command prompt window with some output.  I'm thinking the actual error description in case of java errors goes in these windows, instead of the build output.

I can reproduce the same behavior running the maven goals from within JetBrains Intelli J.

I have confirmed the same behavior with other developers in my company.

Running with -X or -e did not help either.

 


> Toolchain plugin does not show compile errors in Windows 10
> -----------------------------------------------------------
>
>                 Key: MNG-7109
>                 URL: https://issues.apache.org/jira/browse/MNG-7109
>             Project: Maven
>          Issue Type: Bug
>          Components: Errors, Toolchains
>    Affects Versions: 3.6.1, 3.6.3
>         Environment: Windows 10 (version 1909)
>            Reporter: Francois Loriot
>            Priority: Major
>
> I have recently tried to build some java projects on Windows 10 using the toolchain plugin, but I see that when there are java compilation errors, the output of the build does not list the errors.  The same build with identical setup on Windows 7 correctly shows the errors.  I'm running Maven with Oracle JDK 1.8 (I have also tried Open JDK 1.8 and Oracle 9) and the toolchain for the compilation points to IBM SDK 1.6 (I have also tried SDK 1.6 and 1.8).
> I'm using the default/latest toolchain and compiler plugins.  
> I have also noticed that every time the compiler is being called during the build, it briefly pops up a command prompt window with some output.  I'm thinking the actual error description in case of java errors goes in these windows, instead of the build output.
> I can reproduce the same behavior running the maven goals from within JetBrains Intelli J.
> I have confirmed the same behavior with other developers in my company.
> Running with -X or -e did not help either.
> Here is an example:
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project ebill-webcommon: Compilation failure ->  *===== MISSING THE ERRORS HERE =======* [Help 1]
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the command
> [ERROR] mvn <goals> -rf :ebill-webcommon
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)