Maven Download Plugin

This is a plugin meant to help maven user to download different files on different protocol in part of maven build. For the first implementation, there will only be a goal that will help downloading a maven artifact from the command line. Future version of the plugin could include web download, ftp download, scp download and so on.

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

com.googlecode.maven-download-plugin
ArtifactId

ArtifactId

maven-download-plugin
Last Version

Last Version

1.1.0
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

Maven Download Plugin
This is a plugin meant to help maven user to download different files on different protocol in part of maven build. For the first implementation, there will only be a goal that will help downloading a maven artifact from the command line. Future version of the plugin could include web download, ftp download, scp download and so on.
Project URL

Project URL

https://github.com/maven-download-plugin/maven-download-plugin
Project Organization

Project Organization

Open-Source
Source Code Management

Source Code Management

https://github.com/maven-download-plugin/maven-download-plugin

Download maven-download-plugin

How to add to project

<plugin>
    <groupId>com.googlecode.maven-download-plugin</groupId>
    <artifactId>maven-download-plugin</artifactId>
    <version>1.1.0</version>
</plugin>

Dependencies

compile (7)

Group / Artifact Type Version
org.apache.maven : maven-core jar 2.0
org.apache.maven : maven-plugin-api jar 2.0
org.apache.maven : maven-artifact jar 2.0
org.apache.maven : maven-project jar 2.0
commons-io : commons-io jar 1.4
org.apache.httpcomponents : httpclient jar 4.0-beta2
org.codehaus.plexus : plexus-archiver jar 1.2

test (2)

Group / Artifact Type Version
junit : junit jar 3.8.1
org.apache.maven.plugin-testing : maven-plugin-testing-harness jar 1.2

Project Modules

There are no modules declared in this project.

Maven Central

Download Plugin for Maven

This is a plugin meant to help maven user to download different files on different protocol in part of maven build.

WARNING about artifactId: Until version 1.1, the plugin artifactId used to be maven-download-plugin, however Maven conventions makes that this name is not allowed for a plugin which is not part of the Apache Maven project. So starting from version 1.2-SNAPSHOT, the plugin artifactId is download-maven-plugin. The following documentation will get updated when releasing download-maven-plugin:1.2.

Enable

This Maven plugin should be available on Maven Central. But in case you can't find it on Central for some reason, here is the repository to add to your pom:

<pluginRepository>
	<id>sonatype-public-repository</id>
	<url>https://oss.sonatype.org/content/groups/public</url>
	<snapshots>
		<enabled>true</enabled>
	</snapshots>
	<releases>
		<enabled>true</enabled>
	</releases>
</pluginRepository>

You can use some alternative repositories. See https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide#SonatypeOSSMavenRepositoryUsageGuide-4.MavenRepositories for details.

Basic Usage

"Artifact" goal

Meant to be used from anywhere on the system to download an artifact at a specific location. Does not need a pom file to be run and can be used directly from the command line. Can be an alternative to maven-dependency-plugin:get or [maven-dependency-plugin:unpack](http://maven.apache.org/plugins/maven-dependency-plugin/unpack-mojo.html maven-dependency-plugin:unpack) mojoes.

mvn com.googlecode.maven-download-plugin:download-maven-plugin:1.6.1:artifact -DgroupId=com.googlecode -DartifactId=maven-download-plugin -Dversion=0.1 -DoutputDirectory=temp

"WGet" goal

This is meant to provide the necessary tooling for downloading anything in your Maven build without having to use Ant scripts. It provides caching and signature verification.

<plugin>
	<groupId>com.googlecode.maven-download-plugin</groupId>
	<artifactId>download-maven-plugin</artifactId>
	<version>1.6.1</version>
	<executions>
		<execution>
			<id>install-jbpm</id>
			<phase>pre-integration-test</phase>
			<goals>
				<goal>wget</goal>
			</goals>
			<configuration>
				<url>http://downloads.sourceforge.net/project/jbpm/jBPM%203/jbpm-3.1.4/jbpm-3.1.4.zip</url>
				<unpack>true</unpack>
				<outputDirectory>${project.build.directory}/jbpm-3.1.4</outputDirectory>
				<md5>df65b5642f33676313ebe4d5b69a3fff</md5>
			</configuration>
		</execution>
	</executions>
</plugin>

Help

Maven help

To get basic plugin help, type in the command :

mvn com.googlecode.maven-download-plugin:download-maven-plugin:help

To get a more detailed help, type command :

mvn com.googlecode.maven-download-plugin:download-maven-plugin:help -Ddetail

Generated documentation

See also generated documentation pages for 1.6.1 and for snapshot.

Mailing-list

See https://groups.google.com/forum/?fromgroups#!forum/maven-download-plugin

Issue Tracker and wikis...

Are maintained at GitHub (links above).

Contribute

The recommended way to contribute is to use Gerrit and GerritHub: https://review.gerrithub.io/#/admin/projects/maven-download-plugin/maven-download-plugin . Gerrit is pretty convenient as it manages topic branches automatically, allows a better tracking of various versions of a patch, enforce 1 commit per change and prevents from merge commits without payload.

Alternatively, this project support GitHub PR, but enforce some rules for decent tracking: 1 Change Request == 1 PR == 1 commit, if a change can be made by iterations, then use a specific PR for each iteration.

Other links

Project metrics on Ohloh: Ohloh

Former project page at Google Code: http://code.google.com/p/maven-download-plugin/

Versions

Version
1.1.0
1.0.0
0.1