Package io.fabric8.maven
Class Maven
- java.lang.Object
-
- io.fabric8.maven.Maven
-
public final class Maven extends java.lang.Object- Author:
- George Gastaldi
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.maven.model.ModelreadModel(java.io.Reader rdr)Read thePathas aModelstatic org.apache.maven.model.ModelreadModel(java.lang.String path)A String version that makes it easier to be called from other languagesstatic org.apache.maven.model.ModelreadModel(java.nio.file.Path pom)Read thePathas aModelstatic voidwriteModel(org.apache.maven.model.Model model)Shortcut to writeModel(model,model.getPomFile().toPath());static voidwriteModel(org.apache.maven.model.Model model, java.nio.file.Path pom)Write the Model back to the providedPath
-
-
-
Method Detail
-
readModel
public static org.apache.maven.model.Model readModel(java.lang.String path)
A String version that makes it easier to be called from other languages- See Also:
readModel(Path)
-
readModel
public static org.apache.maven.model.Model readModel(java.nio.file.Path pom)
Read thePathas aModel- Parameters:
pom- a path to a pom.xml file- Returns:
- the maven
Model
-
readModel
public static org.apache.maven.model.Model readModel(java.io.Reader rdr)
Read thePathas aModel- Parameters:
rdr- a Reader on the contents of a pom file- Returns:
- the maven
Model
-
writeModel
public static void writeModel(org.apache.maven.model.Model model)
Shortcut to writeModel(model,model.getPomFile().toPath());- Parameters:
model-
-
writeModel
public static void writeModel(org.apache.maven.model.Model model, java.nio.file.Path pom)Write the Model back to the providedPath- Parameters:
model-pom-
-
-