Class AbstractDependency

    • Constructor Detail

      • AbstractDependency

        public AbstractDependency()
    • Method Detail

      • setType

        public void setType​(String type)
        Parameters:
        type - Type.
      • getType

        public String getType()
        Returns:
        Type.
      • setLocation

        public void setLocation​(String location)
        Parameters:
        location - Location.
      • getLocation

        public String getLocation()
        Returns:
        Location.
      • setGroupId

        public void setGroupId​(String groupId)
        Parameters:
        groupId - Group id.
      • getGroupId

        public String getGroupId()
        Returns:
        Group id.
      • setArtifactId

        public void setArtifactId​(String artifactId)
        Parameters:
        artifactId - Artifact id.
      • getArtifactId

        public String getArtifactId()
        Returns:
        Artifact id.
      • setClassifier

        public void setClassifier​(String classifier)
        Parameters:
        classifier - Classifier.
      • getClassifier

        public String getClassifier()
        Returns:
        Classifier.
      • findArtifactLocation

        protected String findArtifactLocation​(Set<org.apache.maven.artifact.Artifact> artifacts,
                                              org.apache.maven.plugin.logging.Log log)
                                       throws org.apache.maven.plugin.MojoExecutionException
        Find artifact location for the artifact of this dependency.
        Parameters:
        artifacts - All artifacts' list.
        log - Logger.
        Returns:
        Artifact location.
        Throws:
        org.apache.maven.plugin.MojoExecutionException - If resolve fails.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object