Maven POM agent

Instrumentation agent for detection of POMs in Maven builds

Лицензия

Лицензия

Категории

Категории

Maven Компиляция и сборка
Группа

Группа

org.entur.maven.orb.agent
Идентификатор

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

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

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

1.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

Maven POM agent
Instrumentation agent for detection of POMs in Maven builds
Ссылка на сайт

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

https://github.com/entur/maven-orb
Организация-разработчик

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

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

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

https://github.com/entur/maven-orb/tree/master

Скачать agent

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

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

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

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

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

maven-orb

This orb clones the official CircleCI Maven orb interface, but applies a different caching strategy.

In a nutshell, it detects previous build file changes via the git history, so that it can restore the previous Maven cache regardless of what changed in the latest commit.

In contrast, the official CircleCI orb restores the previous Maven cache via a hash of the build files, so all changes to the build files (even whitespace changes) result in a cache miss.

Typical use-case:

  • projects with frequent tweaks to the Maven build, i.e.
    • functional changes in the build files themselves
    • dependency bumping

Advantages:

  • Improves build time when the Maven build files themselves are updated, as (most) dependencies are already in the cache
  • Less traffic for artifact repositories (i.e. Maven central, JCenter, your own private Artifactory etc.)

Disadvantages:

  • Instruments Maven itself to record POM files in use
    • The cache job might break on a future version of Maven or the JVM. If so, it is trivial to (temporarily) revert to the official Maven orb.

Bugs, feature suggestions and help requests can be filed with the issue-tracker.

Usage

Import the orb

orbs:
  owasp: entur/maven-orb@0.0.x

where x is the latest version from the orb registry.

Note that the official orb goes offline before running the build. This does noes work well for multi-module builds, and so this orb detects whether the root pom.xml has any <modules> tag and if so skips going offline.

Default executor

To use the default executor, Docker Hub credentials must be set as the environment variables $DOCKERHUB_LOGIN and $DOCKERHUB_PASSWORD.

Caching strategy

For a detailed caching strategy walkthrough, see our Gradle orb.

Troubleshooting

If the cache is corrupted, update the cache key, so that the previous state is not restored - as in the official Maven orb.

org.entur.maven.orb.agent

Entur AS

Together for easy, sustainable journeys. We supply digital services to the public transport in Norway.

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

Версия
1.0.0