public class MavenHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
MVN_GIT_AUTOVER_POM_PREFIX
The prefix for the generated pom file.
|
| Constructor and Description |
|---|
MavenHelper()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
replacePomFile(org.apache.maven.project.MavenProject project,
File newPomFile)
Replace the pom of the specified project.
|
void |
setAutoVersion(org.apache.maven.model.Model model,
Map<String,?> options,
AutoverSession autoverSession)
Calculate and set the version.
|
void |
setLogger(org.codehaus.plexus.logging.Logger value)
Setter.
|
File |
writeNewPomFile(org.apache.maven.model.Model model,
File pomParentFolder)
Write the new pom file (with the version in it).
|
public static final String MVN_GIT_AUTOVER_POM_PREFIX
public void replacePomFile(org.apache.maven.project.MavenProject project,
File newPomFile)
project - the maven projectnewPomFile - the new pom file (with the actual version in it)public void setAutoVersion(org.apache.maven.model.Model model,
Map<String,?> options,
AutoverSession autoverSession)
throws IOException
model - the modeloptions - the optionsautoverSession - the autover sessionIOException - for IO problemspublic File writeNewPomFile(org.apache.maven.model.Model model, File pomParentFolder) throws IOException
model - the model (the version should be calculated by now)pomParentFolder - the parent folder of the original pom fileIOException - for IO problemspublic void setLogger(org.codehaus.plexus.logging.Logger value)
value - the loggerCopyright © 2020. All rights reserved.