@Mojo(name="getinfo")
public class SCMInfoMojo
extends org.apache.maven.plugin.AbstractMojo
getinfo that generates the updated
POM and potentially updates the POM file so that
the current MavenProject's file points
to the updated POM instead of the original pom.xml file. The
updated POM is a new version of the original POM with the
scm information if specified and generated by the SVN
keyword $URL$ will be properly formatted. This will automatically keep the
scm information up to date without user intervention.| Constructor and Description |
|---|
SCMInfoMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
boolean |
isUpdatePomFile() |
static void |
main(String[] args) |
public static final String NEW_POM
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionpublic boolean isUpdatePomFile()
true if the generated updated POM shall be
set as POM artifact of the
MavenProject, false otherwise. If the scm information
was not supplied or did not contain updatable information (i.e. no SVN keyword were used) then
the POM file will not be updated the file set as POM artifact of the MavenProject will remain as
the original POM file.public static void main(String[] args) throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureExceptionCopyright © 2020 MFJ Associates. All rights reserved.