dependency:get

Full name:

org.apache.maven.plugins:maven-dependency-plugin:2.4:get

Description:

Downloads a single artifact transitively from the specified remote repositories. Caveat: will always check the central repository defined in the super pom. You could use a mirror entry in your settings.xml

Attributes:

Optional Parameters

Name Type Since Description
artifact String - A string of the form groupId:artifactId:version[:packaging][:classifier].
artifactId String - The artifactId of the artifact to download. Ignored if artifact is used.
classifier String 2.3 The classifier of the artifact to download. Ignored if artifact is used.
destination String 2.4 The destination file to copy the artifact to, if other than the local repository
groupId String - The groupId of the artifact to download. Ignored if artifact is used.
packaging String - The packaging of the artifact to download. Ignored if artifact is used.
Default value is: jar.
remoteRepositories String - Repositories in the format id::[layout]::url or just url, separated by comma. ie. central::default::http://repo1.maven.apache.org/maven2,myrepo::::http://repo.acme.com,http://repo.acme2.com
repositoryId String - Deprecated. Use remoteRepositories
Default value is: temp.
repositoryUrl String - Deprecated. Use remoteRepositories
transitive boolean - Download transitively, retrieving the specified artifact and all of its dependencies.
Default value is: true.
version String - The version of the artifact to download. Ignored if artifact is used.

Parameter Details

artifact:

A string of the form groupId:artifactId:version[:packaging][:classifier].
  • Type: java.lang.String
  • Required: No
  • Expression: ${artifact}

artifactId:

The artifactId of the artifact to download. Ignored if artifact is used.
  • Type: java.lang.String
  • Required: No
  • Expression: ${artifactId}

classifier:

The classifier of the artifact to download. Ignored if artifact is used.
  • Type: java.lang.String
  • Since: 2.3
  • Required: No
  • Expression: ${classifier}

destination:

The destination file to copy the artifact to, if other than the local repository
  • Type: java.lang.String
  • Since: 2.4
  • Required: No
  • Expression: ${dest}

groupId:

The groupId of the artifact to download. Ignored if artifact is used.
  • Type: java.lang.String
  • Required: No
  • Expression: ${groupId}

packaging:

The packaging of the artifact to download. Ignored if artifact is used.
  • Type: java.lang.String
  • Required: No
  • Expression: ${packaging}
  • Default: jar

remoteRepositories:

Repositories in the format id::[layout]::url or just url, separated by comma. ie. central::default::http://repo1.maven.apache.org/maven2,myrepo::::http://repo.acme.com,http://repo.acme2.com
  • Type: java.lang.String
  • Required: No
  • Expression: ${remoteRepositories}

repositoryId:

Deprecated. Use remoteRepositories
The id of the repository from which we'll download the artifact
  • Type: java.lang.String
  • Required: No
  • Expression: ${repoId}
  • Default: temp

repositoryUrl:

Deprecated. Use remoteRepositories
The url of the repository from which we'll download the artifact. DEPRECATED Use remoteRepositories
  • Type: java.lang.String
  • Required: No
  • Expression: ${repoUrl}

transitive:

Download transitively, retrieving the specified artifact and all of its dependencies.
  • Type: boolean
  • Required: No
  • Expression: ${transitive}
  • Default: true

version:

The version of the artifact to download. Ignored if artifact is used.
  • Type: java.lang.String
  • Required: No
  • Expression: ${version}