Skip to content

report initialization of boot layer error messages #54

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 12, 2019

Conversation

zregvart
Copy link
Contributor

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.

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.
@olamy olamy merged commit 296f33c into codehaus-plexus:master May 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants