jcabi-aether

Wrapper of Sonatype Aether

Лицензия

Лицензия

BSD
Группа

Группа

com.jcabi
Идентификатор

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

jcabi-aether
Последняя версия

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

0.10.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

jcabi-aether
Wrapper of Sonatype Aether
Ссылка на сайт

Ссылка на сайт

http://www.jcabi.com/jcabi-aether
Организация-разработчик

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

jcabi.com
Система контроля версий

Система контроля версий

https://github.com/jcabi/jcabi-aether

Скачать jcabi-aether

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

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

Зависимости

compile (16)

Идентификатор библиотеки Тип Версия
com.jcabi : jcabi-aspects jar 0.18
com.jcabi : jcabi-log jar 0.14.3
javax.validation : validation-api jar 1.1.0.Final
org.kuali.maven.wagons : maven-s3-wagon jar 1.1.20
org.sonatype.aether : aether-api jar 1.13.1
org.sonatype.aether : aether-spi jar 1.13.1
org.sonatype.aether : aether-util jar 1.13.1
org.sonatype.aether : aether-connector-file jar 1.13.1
org.sonatype.aether : aether-connector-asynchttpclient jar 1.13.1
org.sonatype.aether : aether-connector-wagon jar 1.13.1
org.sonatype.aether : aether-impl jar 1.13.1
org.apache.maven : maven-aether-provider jar 3.0.5
org.apache.maven.wagon : wagon-provider-api jar 2.4
org.apache.maven : maven-artifact jar 3.0.5
org.apache.commons : commons-lang3 jar 3.3.2
org.apache.maven.shared : maven-dependency-tree jar 2.1

provided (6)

Идентификатор библиотеки Тип Версия
org.projectlombok : lombok jar 1.14.8
org.apache.maven : maven-core jar 3.0.5
org.apache.maven : maven-model jar 3.0.5
org.sonatype.sisu : sisu-inject-plexus jar 2.3.4
org.apache.maven : maven-settings jar 3.0.5
org.apache.maven : maven-settings-builder jar 3.0.5

runtime (2)

Идентификатор библиотеки Тип Версия
org.hibernate : hibernate-validator jar 5.1.2.Final
org.aspectj : aspectjrt jar 1.8.2

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

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

EO principles respected here Managed by Zerocracy DevOps By Rultor.com

Build Status PDD status Maven Central Javadoc Dependencies

jpeek report

Aether adapter for Maven plugins

More details are here: aether.jcabi.com

Aether is a dependency management toolkit for Maven repositories. It is very convenient to use Aether in your Maven plugins, when it's necessary to find a location of certain artifact or find out what transitive dependencies it contains. This module contains Aether class, an adapter between your plugin and Aether.

This is how you find out the location of a junit:junit-dep:4.10 artifact:

import com.jcabi.aether.Aether;
import java.io.File;
import org.apache.maven.plugin.AbstractMojo;
import org.sonatype.aether.RepositorySystemSession;
import org.sonatype.aether.artifact.Artifact;
import org.sonatype.aether.util.artifact.DefaultArtifact;
import org.sonatype.aether.util.artifact.JavaScopes;

public class MyMojo extends AbstractMojo {
  /**
   * @parameter default-value="${repositorySystemSession}"
   * @readonly
   */
  private RepositorySystemSession session;
  @Override
  public void execute() {
    File repo = this.session.getLocalRepository().getBasedir();
    Collection<Artifact> deps = new Aether(this.getProject(), repo).resolve(
      new DefaultArtifact("junit", "junit-dep", "", "jar", "4.10"),
      JavaScopes.COMPILE
    );
    // Now you have a full set of artifacts that include junit-dep.jar
    // and all its dependencies in "runtime" scope. The first
    // element in the collection is junit-dep.jar itself. You can use
    // Artifact#getFile() method to get its absolute path
  }
}

Questions?

If you have any questions about the framework, or something doesn't work as expected, please submit an issue here.

How to contribute?

Fork the repository, make changes, submit a pull request. We promise to review your changes same day and apply to the master branch, if they look correct.

Please run Maven build before submitting a pull request:

$ mvn clean install -Pqulice
com.jcabi

jcabi.com

Small java components

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

Версия
0.10.1
0.10
0.9
0.8
0.7.22
0.7.21
0.7.20
0.7.19
0.7.18
0.7.17
0.7.16
0.7.15
0.7.14
0.7.13
0.7.12
0.7.11
0.7.10
0.7.9
0.7.8
0.7.7
0.7.6
0.7.5
0.7.4
0.7.3
0.7.2
0.7.1
0.7
0.6
0.5.5
0.5.4
0.5.3
0.5.2
0.5.1
0.5
0.4.1
0.4
0.3
0.2.1
0.2.0
0.1.10
0.1.9
0.1.8
0.1.7
0.1.6