This is jetty-download-maven-plugin.
In contradiction to other available Maven plugins for downloading resources, this one uses Eclipse Jetty version @jettyVersion@, and tries to do only one thing.
The plugin is written using Scala 3 (Dotty).
Probably the most widely known similar plugin is the download-maven-plugin. It is based on Apache HttpClient and offers e.g. checksum checking, unarchiving, caching, and many more.
Jetty Download Maven Plugin requires Maven 3.3.9+ and Java 8+. However, we maintain the latest Plugin version with the latest Maven.
Plugin is tested with Java 8, 11, and 17 running on Ubuntu, Windows, and MacOS using GitHub Actions
The plugin should be available in Central maven repository.
The plugin only offers one goal, download
, which should download the given resource to the given file location. In order to use the plugin from pom.xml, an example build
usage would look like this:
<plugins>
<plugin>
<groupId>nl.jarmoniuk</groupId>
<artifactId>jetty-download-maven-plugin</artifactId>
<version>1.1.0-SNAPSHOT</version>
<executions>
<execution>
<id>download-file</id>
<configuration>
<uri>https://speed.hetzner.de/1GB.bin</uri>
<outputFile>test.bin</outputFile>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
Please consult the goal usage to see the full list of configuration options.