mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-11 22:46:27 +00:00
fix(maven): Use documented default value for relativePath
(#4182)
fix(maven): Use documented default value for `relativePath`
This commit is contained in:
parent
519b49eaa9
commit
3d36f28875
2 changed files with 4 additions and 2 deletions
|
@ -179,8 +179,9 @@ export function extractPackage(rawContent: string, packageFile: string = null) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const parentPath = project.valueWithPath('parent.relativePath');
|
if (packageFile && project.childNamed('parent')) {
|
||||||
if (parentPath) {
|
const parentPath =
|
||||||
|
project.valueWithPath('parent.relativePath') || '../pom.xml';
|
||||||
result.parent = resolveParentFile(packageFile, parentPath);
|
result.parent = resolveParentFile(packageFile, parentPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -143,6 +143,7 @@ Array [
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
"packageFile": "random.pom.xml",
|
"packageFile": "random.pom.xml",
|
||||||
|
"parent": "../pom.xml",
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
`;
|
`;
|
||||||
|
|
Loading…
Reference in a new issue