Package aQute.maven.dto
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.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe scope of the dependency -compile,runtime,test,system, andprovided. -
Field Summary
FieldsModifier and TypeFieldDescriptionThe unique id for an artifact produced by the project group, e.g.The classifier of the dependency.Lists a set of artifacts that should be excluded from this dependency's artifact list when it comes to calculating transitive dependencies.The project group that produced the dependency, e.g.Indicates the dependency is optional for use of this library.FOR SYSTEM SCOPE ONLY.The type of dependency.aQute.bnd.version.MavenVersionThe version of the dependency, e.g. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class aQute.bnd.util.dto.DTO
toString
-
Field Details
-
groupId
The project group that produced the dependency, e.g.org.apache.maven. -
artifactId
The unique id for an artifact produced by the project group, e.g.maven-artifact. -
version
public aQute.bnd.version.MavenVersion versionThe version of the dependency, e.g.3.2.1. In Maven 2, this can also be specified as a range of versions. -
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 arejar,war,ejb-clientandtest-jar: see default artifact handlers for a list. New types can be defined by plugins that setextensionstotrue, so this is not a complete list. -
classifier
The classifier of the dependency. It is appended to the filename after the version. This allows:- refering to attached artifact, for example
sourcesandjavadoc: see default artifact handlers for a list, - distinguishing two artifacts that belong to the same POM but were
built differently. For example,
jdk14andjdk15.
- refering to attached artifact, for example
-
scope
-
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
Lists a set of artifacts that should be excluded from this dependency's artifact list when it comes to calculating transitive dependencies. -
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 isStringfor technical reasons, the semantic type is actuallyBoolean. Default value isfalse.
-
-
Constructor Details
-
DependencyDTO
public DependencyDTO()
-