Commit 296f33c
report initialization of boot layer error messages (#54)
This adds support for reporting initialization of boot layer error
messages that occur when the `javac` JVM cannot be started. In that case
output will contain message like:
```
Error occurred during initialization of boot layer
java.lang.module.FindException: Module java.xml.bind not found
```
This message currently would be lost, i.e. the only message reported
when used in `maven-compiler-plugin` would be:
```
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project ...: Compilation failure -> [Help 1]
```
Now an `INFO` message would appear above this as:
```
[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ bom-generator-maven-plugin ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 5 source files to .../target/classes
[INFO] Error occurred during initialization of boot layer
java.lang.module.FindException: Module java.xml.bind not found
```
Making the error message outputted by `javac` at least visible for
troubleshooting.1 parent ebf54e2 commit 296f33c
File tree
2 files changed
+22
-2
lines changed- plexus-compilers/plexus-compiler-javac/src
- main/java/org/codehaus/plexus/compiler/javac
- test/java/org/codehaus/plexus/compiler/javac
2 files changed
+22
-2
lines changedLines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
679 | 679 | | |
680 | 680 | | |
681 | 681 | | |
682 | | - | |
| 682 | + | |
| 683 | + | |
683 | 684 | | |
684 | | - | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
685 | 693 | | |
686 | 694 | | |
687 | 695 | | |
| |||
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
894 | 894 | | |
895 | 895 | | |
896 | 896 | | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
897 | 909 | | |
898 | 910 | | |
899 | 911 | | |
| |||
0 commit comments