Class AbstractExistsMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
    Direct Known Subclasses:
    LocalExistsMojo, RemoteExistsMojo

    public abstract class AbstractExistsMojo
    extends org.apache.maven.plugin.AbstractMojo
    Set a property if the artifact in a local or remote repository is same as the just built artifact.
    • Field Detail

      • gav

        protected GAV gav
    • Constructor Detail

      • AbstractExistsMojo

        public AbstractExistsMojo()
    • Method Detail

      • getPropertyName

        protected abstract String getPropertyName()
      • 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
      • isSnapshot

        protected boolean isSnapshot()
      • getVersionedPath

        protected abstract String getVersionedPath​(org.apache.maven.artifact.repository.metadata.SnapshotVersion version)
      • checkArtifactExists

        protected abstract boolean checkArtifactExists​(String path)
                                                throws Exception
        Throws:
        Exception