Class 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 Detail

      • scmConnection

        @Parameter(property="scmConnection",
                   defaultValue="${project.scm.connection}")
        private java.lang.String scmConnection
        The 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 java.lang.String scmDeveloperConnection
        The 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:
        AbstractSvnScmProvider.CURRENT_WORKING_DIRECTORY
    • Constructor Detail

      • ValidateMojo

        public ValidateMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException
        Specified by:
        execute in interface org.apache.maven.plugin.Mojo
        Overrides:
        execute in class AbstractScmMojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • validateConnection

        private void validateConnection​(java.lang.String connectionString,
                                        java.lang.String type)
                                 throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException