infer
infer copied to clipboard
mvn -f alternative_pom.xml is not captured.
Infer version v0.12.0 with alternative pom.xml mvn is not captured.
// alternative pom (equals to pom.xml)
infer -- mvn -f p1.xml clean compile
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.235 s
[INFO] Finished at: 2017-07-28T07:28:18Z
[INFO] Final Memory: 12M/210M
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "infer-capture" could not be activated because it does not exist.
Nothing to compile. Try cleaning the build first.
There was nothing to analyze.
No issues found
// default pom.xml
infer -- mvn -f pom.xml clean compile
Found 1 source file to analyze in /opt/infer-linux64-v0.12.0/examples/klocwork_sample/java/infer-out
Starting analysis...
legend:
"F" analyzing a file
"." analyzing a procedure
F.......
No issues found
The maven integration assumes that the pom file is named "pom.xml". I haven't been able to reliably use -f to specify an alternative pom file to maven (which is why infer rewrites pom.xml directly to inject calls to infer), but obviously you have. It should be possible to make infer detect that by parsing the arguments passed to mvn.
Closing — this refers to an obsolete Infer release (0.1x / early 1.0) and/or lacks a reproducible defect on a current build. Please open a fresh issue against a current release with a minimal repro if you still hit this. Thanks!