[X] If possible, a minimal example to reproduce your problem (for instance, some code where
infer reports incorrectly, together with the way you run infer to reproduce the incorrect
report).
git clone https://github.com/kohlschutter/junixsocket.git
cd junixsocket-tipc
infer run -- mvn compile -Puse-snapshots
Maven fails with
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project junixsocket-tipc: Execution default-compile of goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile failed: Cannot invoke "java.lang.Throwable.getCause()" because "cause" is null -> [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.
Note that the maven-compiler-plugin version is 3.8.0, even though the project specified 3.11.0. Version 3.8.0 had a bug (
(MCOMPILER-360) that is triggered by forcibly downgrading to that version.
infer --version
. Infer version v1.1.0-f8378285d5infer -- make
. infer run -- mvn compileMaven fails with
Note that the maven-compiler-plugin version is 3.8.0, even though the project specified 3.11.0. Version 3.8.0 had a bug ( (MCOMPILER-360) that is triggered by forcibly downgrading to that version.
(Pull request below)