Clay Maven Settings Builder

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

Лицензия

Лицензия

Категории

Категории

Maven Компиляция и сборка Dex Универсальные библиотеки Utility
Группа

Группа

ru.yandex.qatools.clay
Идентификатор

Идентификатор

clay-maven-settings-builder
Последняя версия

Последняя версия

2.5
Дата

Дата

Тип

Тип

jar
Описание

Описание

Clay Maven Settings Builder
Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/
Организация-разработчик

Организация-разработчик

Yandex

Скачать clay-maven-settings-builder

Как подключить последнюю версию

<!-- 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"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.apache.maven : maven-settings-builder jar 3.1.0
org.apache.maven : maven-model jar 3.1.0

test (3)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.11
commons-io : commons-io jar 2.4
com.github.stefanbirkner : system-rules jar 1.7.0

Модули Проекта

Данный проект не имеет модулей.

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.

Версии библиотеки

Версия
2.5
2.4
2.3
2.2
2.1
2.0