download:wget

Full name:

com.googlecode.maven-download-plugin:maven-download-plugin:0.2-SNAPSHOT:wget

Description:

Will download a file from a web site using the standard HTTP protocol.

Attributes:

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

Required Parameters

Name Type Since Description
targetDirectory File - Represent the directory where the file should be downloaded.
Default value is: ${project.build.directory}.
url String - Represent the URL to fetch information from.

Optional Parameters

Name Type Since Description
cacheDirectory File - The directory to use as a cache. Default is ${local-repo}/.cache/maven-download-plugin
md5 String - The md5 of the file. If set, file signature will be compared to this signature and plugin will fail.
outputFileName String - Represent the file name to use as output value. If not set, will use last segment of "url"
retries int - How many retries for a download
Default value is: 2.
session MavenSession - (no description)
Default value is: ${session}.
sha1 String - The sha1 of the file. If set, file signature will be compared to this signature and plugin will fail.
skipCache boolean - Download file without polling cache
Default value is: false.
unpack boolean - Whether to unpack the file in case it is an archive (.zip)
Default value is: false.

Parameter Details

cacheDirectory:

The directory to use as a cache. Default is ${local-repo}/.cache/maven-download-plugin
  • Type: java.io.File
  • Required: No

md5:

The md5 of the file. If set, file signature will be compared to this signature and plugin will fail.
  • Type: java.lang.String
  • Required: No

outputFileName:

Represent the file name to use as output value. If not set, will use last segment of "url"
  • Type: java.lang.String
  • Required: No
  • Expression: ${outputFileName}

retries:

How many retries for a download
  • Type: int
  • Required: No
  • Default: 2

session:

(no description)
  • Type: org.apache.maven.execution.MavenSession
  • Required: No
  • Default: ${session}

sha1:

The sha1 of the file. If set, file signature will be compared to this signature and plugin will fail.
  • Type: java.lang.String
  • Required: No

skipCache:

Download file without polling cache
  • Type: boolean
  • Required: No
  • Default: false

targetDirectory:

Represent the directory where the file should be downloaded.
  • Type: java.io.File
  • Required: Yes
  • Expression: ${targetDirectory}
  • Default: ${project.build.directory}

unpack:

Whether to unpack the file in case it is an archive (.zip)
  • Type: boolean
  • Required: No
  • Default: false

url:

Represent the URL to fetch information from.
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${url}