Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/eskatos/thirdparties-maven-plugin

A maven plugin to easily download external resources and attach them as classified artifacts
https://github.com/eskatos/thirdparties-maven-plugin

Last synced: about 2 months ago
JSON representation

A maven plugin to easily download external resources and attach them as classified artifacts

Awesome Lists containing this project

README

        

# thirdparties-maven-plugin

thirdparties-maven-plugin easily download external resources and attach them as classified artifacts.

The project is hosted in maven central.
[here](http://search.maven.org/#search%7Cga%7C1%7Cthirdparties-maven-plugin) you'll find a quick copy/paste for the dependency.

## Attach third party files as classified artifacts

Use the following goal: attached

### Configuration using a property file


${project.basedir}/src/main/thirdparties/yours.properties

Property file syntax is as follow:

[classifier].[type].src=[url]
[classifier].[type].md5=[md5]

Here is a quick example:

foo.tar.gz.src=http://example.com/Foo-1.2.3-r5635.tar.gz
foo.tar.gz.md5=94c331b029ab45d7db5d39cccacdf0e1

The md5 statement is optional and used only if present.
If absent a file that already exists is not downloaded.

### Configuration inside the POM

Here is a quick example:




foo
tar.gz
http://example.com/Foo-1.2.3-r5635.tar.gz
94c331b029ab45d7db5d39cccacdf0e1


## Replace project main artifact with a third party file

Use the following goal: artifact

### Configuration inside the POM

Here is a quick example:


http://example.com/Foo-1.2.3-r5635.jar
60851505f87a3569db7e143f573c2904
http://example.com/Foo-1.2.3-r5635-sources.jar
b59ed2eeea343c22ddf38d606ecfff2d
http://example.com/Foo-1.2.3-r5635-javadoc.jar
f24bc8e443d8ee4f911020f83b34b444