A dependency description is used in multiple places in the configuration. Each dependency element can have the following nested elements:
element name | is required? | description |
---|---|---|
artifactId |
required | The artifact id for the dependency. |
groupId |
required | The group id for the dependency. |
version |
optional | Can be a single version or a version range. Dependency version ranges are described in depth in the Sonatype Maven reference. If no version is given, any version matches. |
type |
optional | Defines the type of dependency matching. If no type is given, it defaults to jar . If the type test-jar is used, it is equivalent to using the type jar with the tests classifier. |
classifier |
optional | Defines the dependency classifier. A classifier is only very seldom used; the most common use case is specifying tests for a dependency containing the unit tests for an artifact. |