Package io.fabric8.maven
Class Maven
java.lang.Object
io.fabric8.maven.Maven
- Author:
- George Gastaldi
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.maven.model.ModelnewModel()Create a new MavenModelstatic org.apache.maven.model.ModelRead thePathas aModelstatic org.apache.maven.model.ModelA String version that makes it easier to be called from other languagesstatic org.apache.maven.model.ModelRead thePathas aModelstatic voidwriteModel(org.apache.maven.model.Model model) Shortcut to writeModel(model,model.getPomFile().toPath());static voidwriteModel(org.apache.maven.model.Model model, Path pom) Write the Model back to the providedPath
-
Method Details
-
newModel
public static org.apache.maven.model.Model newModel()Create a new MavenModel- Returns:
- a new
Model
-
readModel
A String version that makes it easier to be called from other languages- See Also:
-
readModel
Read thePathas aModel- Parameters:
pom- a path to a pom.xml file- Returns:
- the maven
Model
-
readModel
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
Write the Model back to the providedPath- Parameters:
model-pom-
-