Summary: Don't assume pom.xml is always stored in init_work_dir/MODULE. Use directory of the parent pom.xml instead. Fixes reading of invalid pom.xml filenames when using > 1 levels of modules. [Apache Beam](https://github.com/apache/beam): > infer -g --print-logs -- mvn -pl 'org.apache.beam:beam-sdks-java-io-jdbc' compile > Infer version v0.10.0-1580e5b3 > Copyright 2009 - present Facebook. All Rights Reserved. > INFER_ARGS = -g^--print-logs > rest arg: compile > rest arg: org.apache.beam:beam-sdks-java-io-jdbc > rest arg: -pl > rest arg: mvn > Project root = /home/juergen/java/beam > CWD = /home/juergen/java/beam > Driver mode: > Maven driver mode: > prog = mvn > Arg: -pl > Arg: org.apache.beam:beam-sdks-java-io-jdbc > Arg: compile > > Capturing in maven mode... > Adding maven module /home/juergen/java/beam/sdks/java/build-tools > Adding maven module /home/juergen/java/beam/sdks > Adding maven module /home/juergen/java/beam/runners > Adding maven module /home/juergen/java/beam/example Closes https://github.com/facebook/infer/pull/593 Reviewed By: sblackshear Differential Revision: D4627315 Pulled By: jvillard fbshipit-source-id: 7ba33ccmaster
parent
9147e071f3
commit
fbaa1988b3
@ -0,0 +1,13 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.mycompany</groupId>
|
||||
<artifactId>module2parent</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>module2</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<name>module2</name>
|
||||
</project>
|
Loading…
Reference in new issue