org.kuali.maven.plugin
Class ExtractorMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.kuali.maven.plugin.ExtractorMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class ExtractorMojo
- extends org.apache.maven.plugin.AbstractMojo
Extracts information contained in the pom and exposes it as project properties
eg major version, scm type, scm url
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExtractorMojo
public ExtractorMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
handleScmUrl
protected void handleScmUrl(org.apache.maven.project.MavenProject project)
handleScmType
protected void handleScmType(org.apache.maven.project.MavenProject project)
getScmUrl
protected String getScmUrl(org.apache.maven.model.Scm scm)
getScmType
protected String getScmType(org.apache.maven.model.Scm scm)
getScmType
protected String getScmType(String url)
handleMajorVersion
protected void handleMajorVersion(org.apache.maven.project.MavenProject project)
getMajorVersion
protected String getMajorVersion(String version)
getPos
protected int getPos(String version)
isInteger
protected boolean isInteger(char c)
getProject
public org.apache.maven.project.MavenProject getProject()
setProject
public void setProject(org.apache.maven.project.MavenProject project)
getMajorVersionProperty
public String getMajorVersionProperty()
setMajorVersionProperty
public void setMajorVersionProperty(String majorVersionProperty)
getScmTypeProperty
public String getScmTypeProperty()
setScmTypeProperty
public void setScmTypeProperty(String scmTypeProperty)
getScmUrlProperty
public String getScmUrlProperty()
setScmUrlProperty
public void setScmUrlProperty(String scmUrlProperty)
Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.