Clay Maven Settings Builder

Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/

License

License

Categories

Categories

Maven Build Tools Dex General Purpose Libraries Utility
GroupId

GroupId

ru.yandex.qatools.clay
ArtifactId

ArtifactId

clay-maven-settings-builder
Last Version

Last Version

2.5
Release Date

Release Date

Type

Type

jar
Description

Description

Clay Maven Settings Builder
Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/
Project Organization

Project Organization

Yandex

Download clay-maven-settings-builder

How to add to project

<!-- https://jarcasting.com/artifacts/ru.yandex.qatools.clay/clay-maven-settings-builder/ -->
<dependency>
    <groupId>ru.yandex.qatools.clay</groupId>
    <artifactId>clay-maven-settings-builder</artifactId>
    <version>2.5</version>
</dependency>
// https://jarcasting.com/artifacts/ru.yandex.qatools.clay/clay-maven-settings-builder/
implementation 'ru.yandex.qatools.clay:clay-maven-settings-builder:2.5'
// https://jarcasting.com/artifacts/ru.yandex.qatools.clay/clay-maven-settings-builder/
implementation ("ru.yandex.qatools.clay:clay-maven-settings-builder:2.5")
'ru.yandex.qatools.clay:clay-maven-settings-builder:jar:2.5'
<dependency org="ru.yandex.qatools.clay" name="clay-maven-settings-builder" rev="2.5">
  <artifact name="clay-maven-settings-builder" type="jar" />
</dependency>
@Grapes(
@Grab(group='ru.yandex.qatools.clay', module='clay-maven-settings-builder', version='2.5')
)
libraryDependencies += "ru.yandex.qatools.clay" % "clay-maven-settings-builder" % "2.5"
[ru.yandex.qatools.clay/clay-maven-settings-builder "2.5"]

Dependencies

compile (2)

Group / Artifact Type Version
org.apache.maven : maven-settings-builder jar 3.1.0
org.apache.maven : maven-model jar 3.1.0

test (3)

Group / Artifact Type Version
junit : junit jar 4.11
commons-io : commons-io jar 2.4
com.github.stefanbirkner : system-rules jar 1.7.0

Project Modules

There are no modules declared in this project.

CLAY (Common LAYer module)

release Maven Central covarage

Clay Maven Settings Builder

Fluent-api builders for maven settings.

Settings settings = newSettings()
        .withActiveProfile(newProfile()
                .withId("profile")
                .withRepository(newRepository()
                        .withUrl("http://repo1.maven.org/maven2"))).build();

Clay Aether

Fluent-api for Eclipse Aether. Easy to resolve/collect/install/deploy artifacts.

//resolve with transitives 
List<ArtifactResult> results = aether(localRepositoryFile, settings)
        .resolve("ru.yandex.qatools.allure:allure-model:jar:1.3.9").get();
}

//resolve without transitives
List<ArtifactResult> results = aether(localRepositoryFile, settings)
        .resolve("ru.yandex.qatools.allure:allure-model:jar:1.3.9", false);
        
//resolve all given artifacts 
List<ArtifactResult> results = aether(localRepo, MAVEN_SETTINGS)
        .resolveAll("ru.yandex.qatools.allure:allure-model:jar:1.3.9", 
                    "ru.yandex.qatools.allure:allure-java-annotations:jar:1.3.9").get();
        
//collect
List<Artifact> artifacts = aether(localRepositoryFile, settings)
        .collect("ru.yandex.qatools.allure:allure-model:jar:1.3.9");

//install
aether(localRepositoryFile, settings)
        .install(archiveToDeploy, "testGroupId", "testArtifactId", "testVersion");

//deploy
aether(localRepositoryFile, settings)
        .deploy(distributionManagement, archiveToDeploy, "testGroupId", "testArtifactId", "testVersion");

Also you have few ways to get resolve results:

//as list of artifact results:
List<ArtifactResult> results = aether(localRepositoryFile, settings)
        .resolve("ru.yandex.qatools.allure:allure-model:jar:1.3.9").get();
        
//as array of urls:
URL[] urls = aether(localRepositoryFile, settings)
        .resolve("ru.yandex.qatools.allure:allure-model:jar:1.3.9").getAsUrls();
        
//as class path:
String[] cp = aether(localRepositoryFile, settings)
        .resolve("ru.yandex.qatools.allure:allure-model:jar:1.3.9").getAsClassPath();
        
//as ClassLoader:
ClassLoader cl = aether(localRepositoryFile, settings)
        .resolve("ru.yandex.qatools.allure:allure-model:jar:1.3.9").getAsClassLoader();

Clay Utils

Some useful tools, such as ArchiveUtil (configurable unpack jar's), DateUtil and MapUtil.

ru.yandex.qatools.clay

Camelot Framework

Simplified scalable aggregation and processing framework built upon Apache Camel.

Versions

Version
2.5
2.4
2.3
2.2
2.1
2.0