dependency:resolve-plugins

Goal that resolves all project plugins and reports and their dependencies.

Mojo Attributes:

  • Requires a Maven 2.0 project to execute.
  • Automatically executes within the lifecycle phase: generate-sources

Required Parameters

Name Type Description
markersDirectory File Directory to store flag files

Optional Parameters

Name Type Description
classifier String Specify classifier to look for. Example: sources
excludeTransitive boolean If we should exclude transitive dependencies Default value is false.
excludeTypes String Comma Separated list of Types to exclude. Empty String indicates don't exclude anything (default). Ignored if includeTypes is used.
includeTypes String Comma Separated list of Types to include. Empty String indicates include everything (default).
mavenProjectBuilder MavenProjectBuilder Artifact factory, needed to download source jars.
overWriteReleases boolean Overwrite release artifacts Default value is false.
overWriteSnapshots boolean Overwrite snapshot artifacts Default value is true.
silent boolean If the plugin should be silent. Default value is false.
type String Specify type to look for when constructing artifact based on classifier. Example: java-source,jar,war Default value is java-source.

Parameter Details

classifier

Specify classifier to look for. Example: sources

  • Type: java.lang.String
  • Required: No
  • Expression: ${classifier}

excludeTransitive If we should exclude transitive dependencies
  • Type: boolean
  • Required: No
  • Expression: ${excludeTransitive}
  • Default: false

excludeTypes Comma Separated list of Types to exclude. Empty String indicates don't exclude anything (default). Ignored if includeTypes is used.
  • Type: java.lang.String
  • Required: No
  • Expression: ${excludeTypes}

includeTypes Comma Separated list of Types to include. Empty String indicates include everything (default).
  • Type: java.lang.String
  • Required: No
  • Expression: ${includeTypes}

markersDirectory Directory to store flag files
  • Type: java.io.File
  • Required: Yes
  • Expression: ${project.build.directory}/dependency-maven-plugin-markers

mavenProjectBuilder Artifact factory, needed to download source jars.
  • Type: org.apache.maven.project.MavenProjectBuilder
  • Required: No

overWriteReleases Overwrite release artifacts
  • Type: boolean
  • Required: No
  • Expression: ${overWriteReleases}
  • Default: false

overWriteSnapshots Overwrite snapshot artifacts
  • Type: boolean
  • Required: No
  • Expression: ${overWriteSnapshots}
  • Default: true

silent If the plugin should be silent.
  • Type: boolean
  • Required: No
  • Expression: ${silent}
  • Default: false

type Specify type to look for when constructing artifact based on classifier. Example: java-source,jar,war
  • Type: java.lang.String
  • Required: No
  • Expression: ${type}
  • Default: java-source