Maven Fetcher

A simple API for fetching artifacts from Maven repositories.

License

License

GroupId

GroupId

com.samskivert
ArtifactId

ArtifactId

mfetcher
Last Version

Last Version

1.0.6
Release Date

Release Date

Type

Type

jar
Description

Description

Maven Fetcher
A simple API for fetching artifacts from Maven repositories.
Project URL

Project URL

http://github.com/samskivert/mfetcher/
Source Code Management

Source Code Management

http://github.com/samskivert/mfetcher/

Download mfetcher

How to add to project

<!-- https://jarcasting.com/artifacts/com.samskivert/mfetcher/ -->
<dependency>
    <groupId>com.samskivert</groupId>
    <artifactId>mfetcher</artifactId>
    <version>1.0.6</version>
</dependency>
// https://jarcasting.com/artifacts/com.samskivert/mfetcher/
implementation 'com.samskivert:mfetcher:1.0.6'
// https://jarcasting.com/artifacts/com.samskivert/mfetcher/
implementation ("com.samskivert:mfetcher:1.0.6")
'com.samskivert:mfetcher:jar:1.0.6'
<dependency org="com.samskivert" name="mfetcher" rev="1.0.6">
  <artifact name="mfetcher" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.samskivert', module='mfetcher', version='1.0.6')
)
libraryDependencies += "com.samskivert" % "mfetcher" % "1.0.6"
[com.samskivert/mfetcher "1.0.6"]

Dependencies

test (1)

Group / Artifact Type Version
junit : junit jar 4.8.1

Project Modules

There are no modules declared in this project.

Maven Fetcher

This library provides a greatly simplified interface to Maven's Aether repository system, allowing one to download Maven artifacts into a user's local Maven repository with a minimum degree of fuss.

It is adapted from the Capsule project. Capsule is designed for all wrinkles to be ironed out up front and thus tends to handle any errors by blowing everything up. This library expects to be used in situations where developers will be editing Maven dependencies and may make mistakes, and thus it provides better failure handling for unresolvable dependencies.

Usage

Like so:

Path home = Paths.get(System.getProperty("user.home"));
Path m2 = home.resolve(".m2/repository");
DependencyManager mgr = new DependencyManager(m2, null, false, false);
Map<Coord,Path> results = mgr.resolveDependencies(Arrays.asList(
  new Coord("junit", "junit", "4.11", "jar")));

Et voila!

Set -Dmfetcher.log=verbose to see all the messy details and/or debug failures.

Versions

Version
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0