Class Dependency


  • public class Dependency
    extends Object
    A description of the set of project dependencies to include in the mapping. If no includes or excludes are specified, all dependencies will be included in the mapping.

    Each include or exclude should be specified in the form: "groupID:artifactID[ :version]" Any field can be specified as "*" which means any value is a match. If version is omitted (it usually is), it is the same as specifying "*".

    • Constructor Detail

      • Dependency

        public Dependency()
    • Method Detail

      • getIncludes

        public List<org.apache.maven.artifact.Artifact> getIncludes()
        Retrieve the list of dependencies to include.
        Returns:
        The list of dependencies to include.
      • setIncludes

        public void setIncludes​(List<String> incls)
                         throws org.apache.maven.plugin.MojoExecutionException
        Set the list of dependencies to include.
        Parameters:
        incls - The new list of dependencies to include.
        Throws:
        org.apache.maven.plugin.MojoExecutionException - if the parse fails
      • getExcludes

        public List<org.apache.maven.artifact.Artifact> getExcludes()
        Retrieve the list of dependencies to exclude.
        Returns:
        The list of dependencies to exclude.
      • setExcludes

        public void setExcludes​(List<String> excls)
                         throws org.apache.maven.plugin.MojoExecutionException
        Set the list of dependencies to exclude.
        Parameters:
        excls - The new list of dependencies to exclude.
        Throws:
        org.apache.maven.plugin.MojoExecutionException - if the parse fails
      • getStripVersion

        public boolean getStripVersion()
        Retrieve the stripVersion property
        Returns:
        The stripVersion property
      • setStripVersion

        public void setStripVersion​(boolean stripVersion)
                             throws org.apache.maven.plugin.MojoExecutionException
        Set the stripVersion property
        Parameters:
        stripVersion - the stripVersion property to set
        Throws:
        org.apache.maven.plugin.MojoExecutionException - if the parse fails