download:artifact

Full name:

com.googlecode.maven-download-plugin:download-maven-plugin:1.6.8:artifact

Description:

This mojo is designed to download a maven artifact from the repository and download them in the specified path. The maven artifact downloaded can also download it's dependency or not, based on a parameter.

Attributes:

Required Parameters

Name Type Since Description
<artifactId> String - The artifact Id of the file to download.
User property is: artifactId.
<groupId> String - The group Id of the file to download.
User property is: groupId.
<version> String - The version of the file to download.
User property is: version.

Optional Parameters

Name Type Since Description
<classifier> String - The classifier of artifact to download.
User property is: classifier.
<dependencyDepth> long - The dependency depth to query. Will try to fetch the artifact for as much as the number of dependency specified.
Default value is: 0.
User property is: dependencyDepth.
<localRepository> ArtifactRepository - (no description)
User property is: localRepository.
<outputDirectory> File - Location of the file.
Default value is: ${project.build.directory}.
User property is: outputDirectory.
<outputFileName> String - Will set the output file name to the specified name. Valid only when the dependency depth is set to 0.
User property is: outputFileName.
<remoteRepositories> List - (no description)
User property is: project.remoteArtifactRepositories.
<skip> boolean - Whether to skip execution of Mojo
Default value is: false.
User property is: download.plugin.skip.
<type> String - The type of artifact to download.
Default value is: jar.
User property is: type.
<unpack> boolean - Whether to unpack the artifact
Default value is: false.
User property is: unpack.

Parameter Details

<artifactId>

The artifact Id of the file to download.
  • Type: java.lang.String
  • Required: Yes
  • User Property: artifactId

<classifier>

The classifier of artifact to download.
  • Type: java.lang.String
  • Required: No
  • User Property: classifier

<dependencyDepth>

The dependency depth to query. Will try to fetch the artifact for as much as the number of dependency specified.
  • Type: long
  • Required: No
  • User Property: dependencyDepth
  • Default: 0

<groupId>

The group Id of the file to download.
  • Type: java.lang.String
  • Required: Yes
  • User Property: groupId

<localRepository>

(no description)
  • Type: org.apache.maven.artifact.repository.ArtifactRepository
  • Required: No
  • User Property: localRepository

<outputDirectory>

Location of the file.
  • Type: java.io.File
  • Required: No
  • User Property: outputDirectory
  • Default: ${project.build.directory}

<outputFileName>

Will set the output file name to the specified name. Valid only when the dependency depth is set to 0.
  • Type: java.lang.String
  • Required: No
  • User Property: outputFileName

<remoteRepositories>

(no description)
  • Type: java.util.List
  • Required: No
  • User Property: project.remoteArtifactRepositories

<skip>

Whether to skip execution of Mojo
  • Type: boolean
  • Required: No
  • User Property: download.plugin.skip
  • Default: false

<type>

The type of artifact to download.
  • Type: java.lang.String
  • Required: No
  • User Property: type
  • Default: jar

<unpack>

Whether to unpack the artifact
  • Type: boolean
  • Required: No
  • User Property: unpack
  • Default: false

<version>

The version of the file to download.
  • Type: java.lang.String
  • Required: Yes
  • User Property: version