mirror of
https://github.com/morluto/rea.git
synced 2026-11-22 06:25:44 +00:00
fix(maven): preserve qualified property keys in metadata (#11860)
fix(maven): preserve qualified property keys
This commit is contained in:
1 parent
82e16b4dda
commit
004c43e32a
4 files changed
+98
-13
No files matched your search
@@ -325,15 +325,15 @@ const parsePom = (
|
||||
const properties =
|
||||
propertiesElement === undefined
|
||||
? []
|
||||
: childElements(propertiesElement).flatMap((property) => {
|
||||
const name = nonempty(property.localName);
|
||||
if (name === null) return [];
|
||||
: childElements(propertiesElement).map((property) => {
|
||||
// A property may hold a repository URL; its userinfo never leaves the parser.
|
||||
const {
|
||||
url: value,
|
||||
url_credentials_redacted: value_credentials_redacted,
|
||||
} = redactRecordedTransportUrl(elementText(property));
|
||||
return [{ name, value, value_credentials_redacted }];
|
||||
// Maven property keys are the written qualified names, not XML
|
||||
// expanded names: different prefixes remain different keys.
|
||||
return { name: property.tagName, value, value_credentials_redacted };
|
||||
});
|
||||
const dependencyManagementElement = soleNamed(root, "dependencyManagement");
|
||||
const managedContainer = dependencyManagementElement
|
||||
|
||||
Reference in new issue
Block a user