Closed kohlschuetter closed 1 year ago
@geralt-encore has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
@geralt-encore merged this pull request in facebook/infer@9304c05a1dd672effb9fcbe92a36c18d12e2ca99.
The "infer-capture" Maven profile specified a version for maven-compiler-plugin to fix #990. This may interfere with the inspected project's configuration.
In this particular case, version 3.8.0 was specified. This prevented compilation of some projects, resulting in the ominous error 'Cannot invoke "java.lang.Throwable.getCause()" because "cause" is null'.
Removing the declared version for maven-compiler-plugin is a potential fix, which would automatically use the version defined in the origin Maven project. However that may break Maven 2.x projects because "forceJavacCompilerUse" is only available since version 3.0.
Bumping version to the latest available 3.11.0 instead.
Fixes https://github.com/facebook/infer/issues/1783