MvnResolver Uber

Mvn Resolver Tools

License

License

GroupId

GroupId

io.codekontor.mvnresolver
ArtifactId

ArtifactId

mvnresolver-uber
Last Version

Last Version

1.0.0.RC1
Release Date

Release Date

Type

Type

jar
Description

Description

MvnResolver Uber
Mvn Resolver Tools

Download mvnresolver-uber

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
io.codekontor.mvnresolver : mvnresolver-api jar 1.0.0.RC1
com.google.guava : guava jar 21.0

Project Modules

There are no modules declared in this project.

MvnResolver Uber-jar

Version 1.0.0.RC1 - 2019-09-03

The MvnResolver project aims at providing an easy to use, non-invasive solution to resolve maven artifacts from within java applications. Simply add the MvnResolver uber-jar to your project's classpath - all required libraries are embedded within the MvnResolver Uber jar, so no additional dependencies are added to your project.

The uber-Jar internally relies on shrinkwrap-resolver.

Usage

Adding MvnResolver to your project

You can add the Mvnresolver uber-jar to your project by adding the following dependency:

<project>
    ...
    <dependencies>
        ...
        <dependency>
            <groupId>io.codekontor.mvnresolver</groupId>
            <artifactId>mvnresolver-uber</artifactId>
            <version>1.0.0.RC1</version>
        </dependency>
    </dependencies>
</project>

Creating an instance of IMvnResolverServiceFactory

In order to create a new MvnResolverService, you have to create a MvnResolverServie Factory first.

// creating the MvnResolverServiceFactory
IMvnResolverServiceFactory mvnResolverServiceFactory = MvnResolverServiceFactoryFactory
        .createNewResolverServiceFactory();

Configuring and creating a MvnResolverService

// creating a new IMvnResolverService
IMvnResolverService mvnResolverService = mvnResolverServiceFactory.newMvnResolverService().create();

Resolving artifacts

//
File[] files = mvnResolverService.resolve("org.neo4j.test:neo4j-harness:2.3.3");
//
File[] files = mvnResolverService.resolve(false, "org.neo4j.test:neo4j-harness:2.3.3");
//
File file = mvnResolverService.resolveArtifact("org.neo4j.test:neo4j-harness:2.3.3");

License

MvnResolver is licensed under the Apache License version 2.0.

io.codekontor.mvnresolver

Code-Kontor GmbH

Versions

Version
1.0.0.RC1