Package org.apache.maven.scm.plugin
Class ValidateMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.scm.plugin.AbstractScmMojo
org.apache.maven.scm.plugin.ValidateMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
ValidateRecursively
@Mojo(name="validate",
requiresProject=false)
@Execute(phase=VALIDATE)
public class ValidateMojo
extends AbstractScmMojo
Validate scm connection string.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.maven.project.MavenProject
private boolean
(Subversion specific) Enables checking that "URL" field returned by 'svn info' matches what is specified under the scm tag.private String
The scm connection url.private String
The scm connection url for developers.Fields inherited from class org.apache.maven.scm.plugin.AbstractScmMojo
VALID_VERSION_TYPES, VERSION_TYPE_BRANCH, VERSION_TYPE_REVISION, VERSION_TYPE_TAG
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
private void
validateConnection
(String connectionString, String type) Methods inherited from class org.apache.maven.scm.plugin.AbstractScmMojo
checkResult, getBasedir, getConnectionUrl, getExcludes, getFileSet, getIncludes, getScmManager, getScmRepository, getScmVersion, getWorkingDirectory, handleExcludesIncludesAfterCheckoutAndExport, setConnectionType, setConnectionUrl, setExcludes, setIncludes, setWorkingDirectory
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
scmConnection
@Parameter(property="scmConnection", defaultValue="${project.scm.connection}") private String scmConnectionThe scm connection url. -
project
@Parameter(defaultValue="${project}", readonly=true) private org.apache.maven.project.MavenProject project -
scmDeveloperConnection
@Parameter(property="scmDeveloperConnection", defaultValue="${project.scm.developerConnection}") private String scmDeveloperConnectionThe scm connection url for developers. -
scmCheckWorkingDirectoryUrl
@Parameter(property="scmCheckWorkingDirectoryUrl", defaultValue="false") private boolean scmCheckWorkingDirectoryUrl(Subversion specific) Enables checking that "URL" field returned by 'svn info' matches what is specified under the scm tag.- See Also:
-
-
Constructor Details
-
ValidateMojo
public ValidateMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Specified by:
execute
in interfaceorg.apache.maven.plugin.Mojo
- Overrides:
execute
in classAbstractScmMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
validateConnection
private void validateConnection(String connectionString, String type) throws org.apache.maven.plugin.MojoExecutionException - Throws:
org.apache.maven.plugin.MojoExecutionException
-