Package net.jangaroo.jooc.mvnplugin.util
Class PomManipulator
- java.lang.Object
-
- net.jangaroo.jooc.mvnplugin.util.PomManipulator
-
public class PomManipulator extends Object
Provides methods to manipulate pom files. Copied and modified from blueprint-extension-maven-plugin project
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddDependencies(org.apache.maven.project.MavenProject project, List<org.apache.maven.model.Dependency> dependencies, org.apache.maven.plugin.logging.Log log)Add the given dependencies to the dependencies of the given project.static voidaddDependency(org.apache.maven.project.MavenProject project, org.apache.maven.model.Dependency dependency, org.apache.maven.plugin.logging.Log log)Add the given dependency to the dependencies of the given project.
-
-
-
Method Detail
-
addDependency
public static void addDependency(@Nonnull org.apache.maven.project.MavenProject project, @Nonnull org.apache.maven.model.Dependency dependency, @Nonnull org.apache.maven.plugin.logging.Log log) throws org.apache.maven.plugin.MojoExecutionException
Add the given dependency to the dependencies of the given project. After adding the dependencies the pom file will be rewritten.- Parameters:
project- - the project to manipulatedependency- - the dependency which should be addedlog- -Maven Logger to Log what happens- Throws:
org.apache.maven.plugin.MojoExecutionException
-
addDependencies
public static void addDependencies(@Nonnull org.apache.maven.project.MavenProject project, List<org.apache.maven.model.Dependency> dependencies, org.apache.maven.plugin.logging.Log log) throws org.apache.maven.plugin.MojoExecutionException
Add the given dependencies to the dependencies of the given project. After adding the dependencies the pom file will be rewritten.- Parameters:
project- - the project to manipulatedependencies- - the dependencies which should be addedlog- -Maven Logger to Log what happens- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-