Class DynamicDependency


  • public class DynamicDependency
    extends java.lang.Object
    Configuration used to declare extra dependencies for the ResolveDependenciesMojo.

    Users can declare extra dependencies that do not appear in any dependency tree of the project but are still needed for the build to work.

    The most common examples are artifacts that are dynamically loaded by plugins during build runtime

    Author:
    Andreas Janning andreas.janning@qaware.de
    • Field Detail

      • CONFIGURATION_ERROR_MESSAGE

        public static final java.lang.String CONFIGURATION_ERROR_MESSAGE
        See Also:
        Constant Field Values
    • Constructor Detail

      • DynamicDependency

        public DynamicDependency()
    • Method Detail

      • validate

        public void validate()
                      throws org.apache.maven.plugin.MojoExecutionException
        Validate that all required parameters are set.
        Throws:
        org.apache.maven.plugin.MojoExecutionException - if any required parameter is not set
      • getArtifactId

        public java.lang.String getArtifactId()
        Returns:
        The artifactId of the DynamicDependency
      • setArtifactId

        public void setArtifactId​(java.lang.String artifactId)
      • getGroupId

        public java.lang.String getGroupId()
        Returns:
        The groupId of the DynamicDependency
      • setGroupId

        public void setGroupId​(java.lang.String groupId)
      • getVersion

        public java.lang.String getVersion()
        Returns:
        The version of the DynamicDependency
      • setVersion

        public void setVersion​(java.lang.String version)
      • getType

        public java.lang.String getType()
        Returns:
        The type of the DynamicDependency. Either returns the user entered value or "jar" as a default if the user provided no value.
      • setType

        public void setType​(java.lang.String type)
      • getClassifier

        public java.lang.String getClassifier()
        Returns:
        The classifier of the DynamicDependency. May be null.
      • setClassifier

        public void setClassifier​(java.lang.String classifier)
      • getRepositoryType

        public RepositoryType getRepositoryType()
        Returns:
        from which type of remoteRepository this dependency must be downloaded
      • setRepositoryType

        public void setRepositoryType​(RepositoryType repositoryType)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object