提交 5d202a2b 编写于 作者: S Stephan Pauxberger

[JENKINS-8383] record fingerprints of ancestor poms

上级 f2f1e720
......@@ -81,7 +81,15 @@ public class MavenFingerprinter extends MavenReporter {
* Mojos perform different dependency resolution, so we need to check this for each mojo.
*/
public boolean postExecute(MavenBuildProxy build, MavenProject pom, MojoInfo mojo, BuildListener listener, Throwable error) throws InterruptedException, IOException {
record(pom.getArtifacts(),used);
MavenProject parent = pom.getParent();
while (parent != null) {
// Parent Artifact contains no acual file, so we resolve against the local repository
Artifact parentArtifact = parent.getProjectBuildingRequest().getLocalRepository().find(parent.getArtifact());
record(parentArtifact, used);
parent = parent.getParent();
}
record(pom.getArtifacts(),used);
record(pom.getArtifact(),produced);
record(pom.getAttachedArtifacts(),produced);
record(pom.getGroupId(),pom.getFile(),produced);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册