public class MavenSettingsUtils extends Object
settings.xml loaders so both
sides apply the same interpretation of a settings document.| Modifier and Type | Method and Description |
|---|---|
static String |
expandPath(String path)
Expands a path as declared in
settings.xml. |
static boolean |
mirrorsCentral(String mirrorOf)
Whether a
<mirrorOf> expression claims to mirror Maven Central. |
public static String expandPath(String path)
settings.xml. Maven accepts
~ for the user home and a small set of system properties, neither
of which is interpreted by the JDK.path - raw path as found in the settings filepublic static boolean mirrorsCentral(String mirrorOf)
<mirrorOf> expression claims to mirror Maven Central.
Only the forms that nuts can reason about without a full repository graph
are recognised: the literal central and the catch-all *.mirrorOf - raw <mirrorOf> valueCopyright © 2026 vpc open source initiative. All rights reserved.