download:artifact

Full name:

com.googlecode.maven-download-plugin:maven-download-plugin:0.2-SNAPSHOT: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:

  • Binds by default to the lifecycle phase: process-resources.

Required Parameters

Name Type Since Description
artifactId String - The artifact Id of the file to download.
groupId String - The group Id of the file to download.
version String - The version of the file to download.

Optional Parameters

Name Type Since Description
classifier String - The classifier of artifact to download.
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.
localRepository ArtifactRepository - (no description)
outputDirectory File - Location of the file.
Default value is: ${project.build.directory}.
outputFileName String - Will set the output file name to the specified name. Valid only when the dependency depth is set to 0.
remoteRepositories List - (no description)
type String - The type of artifact to download.
Default value is: jar.

Parameter Details

artifactId:

The artifact Id of the file to download.
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${artifactId}

classifier:

The classifier of artifact to download.
  • Type: java.lang.String
  • Required: No
  • Expression: ${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
  • Expression: ${dependencyDepth}
  • Default: 0

groupId:

The group Id of the file to download.
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${groupId}

localRepository:

(no description)
  • Type: org.apache.maven.artifact.repository.ArtifactRepository
  • Required: No
  • Expression: ${localRepository}

outputDirectory:

Location of the file.
  • Type: java.io.File
  • Required: No
  • Expression: ${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
  • Expression: ${outputFileName}

remoteRepositories:

(no description)
  • Type: java.util.List
  • Required: No
  • Expression: ${project.remoteArtifactRepositories}

type:

The type of artifact to download.
  • Type: java.lang.String
  • Required: No
  • Expression: ${type}
  • Default: jar

version:

The version of the file to download.
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${version}