Package org.savantbuild.dep.maven
Class MavenTools
java.lang.Object
org.savantbuild.dep.maven.MavenTools
Maven helpers for things like parsing POMs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic POMParses a POM XML file.static StringreplaceProperties(String value, Map<String, String> properties) static ArtifacttoArtifact(POM pom, String type, Map<String, org.savantbuild.domain.Version> mappings) static DependenciestoSavantDependencies(POM pom, Map<String, org.savantbuild.domain.Version> mappings) toSavantLicenses(POM pom)
-
Constructor Details
-
MavenTools
public MavenTools()
-
-
Method Details
-
parsePOM
Parses a POM XML file.- Parameters:
file- The file.output- The output in case the POM is borked.- Returns:
- The POM object and never null;
- Throws:
POMException- If the parsing failed.
-
replaceProperties
-
toArtifact
-
toSavantDependencies
public static Dependencies toSavantDependencies(POM pom, Map<String, org.savantbuild.domain.Version> mappings) -
toSavantLicenses
-