Skip to content

jarmoniuk/jetty-download-maven-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jetty Download Maven Plugin

What and why

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).

Similar plugins

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.

Maintained versions

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

Quick start

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.

About

A simple Maven plugin for downloading resources, using Eclipse Jetty, written in Scala 3 (Dotty)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published