Class DependencyDTO

java.lang.Object
aQute.bnd.util.dto.DTO
aQute.maven.dto.DependencyDTO

public class DependencyDTO extends aQute.bnd.util.dto.DTO
The <dependency> element contains information about a dependency of the project.
  • Field Details

    • groupId

      public String groupId
      The project group that produced the dependency, e.g. org.apache.maven.
    • artifactId

      public String artifactId
      The unique id for an artifact produced by the project group, e.g. maven-artifact.
    • version

      public aQute.bnd.version.MavenVersion version
      The version of the dependency, e.g. 3.2.1. In Maven 2, this can also be specified as a range of versions.
    • type

      public String type
      The type of dependency. While it usually represents the extension on the filename of the dependency, that is not always the case. A type can be mapped to a different extension and a classifier. The type often corresponds to the packaging used, though this is also not always the case. Some examples are jar, war, ejb-client and test-jar: see default artifact handlers for a list. New types can be defined by plugins that set extensions to true, so this is not a complete list.
    • classifier

      public String classifier
      The classifier of the dependency. It is appended to the filename after the version. This allows:
      • refering to attached artifact, for example sources and javadoc: see default artifact handlers for a list,
      • distinguishing two artifacts that belong to the same POM but were built differently. For example, jdk14 and jdk15 .
    • scope

      public DependencyDTO.Scope scope
    • systemPath

      public String systemPath
      FOR SYSTEM SCOPE ONLY. Note that use of this property is discouraged and may be replaced in later versions. This specifies the path on the filesystem for this dependency. Requires an absolute path for the value, not relative. Use a property that gives the machine specific absolute path, e.g. ${java.home}.
    • exclusions

      public ExclusionDTO[] exclusions
      Lists a set of artifacts that should be excluded from this dependency's artifact list when it comes to calculating transitive dependencies.
    • optional

      public String optional
      Indicates the dependency is optional for use of this library. While the version of the dependency will be taken into account for dependency calculation if the library is used elsewhere, it will not be passed on transitively. Note: While the type of this field is String for technical reasons, the semantic type is actually Boolean . Default value is false.
  • Constructor Details

    • DependencyDTO

      public DependencyDTO()