Sonatype Mojo Commons

A reusable collection of utilities to have support for Logback, SISU, etc within Mojos.

Categories

Categories

Maven Build Tools
GroupId

GroupId

org.sonatype.maven
ArtifactId

ArtifactId

mojo-commons
Last Version

Last Version

1.1
Release Date

Release Date

Type

Type

jar
Description

Description

Sonatype Mojo Commons
A reusable collection of utilities to have support for Logback, SISU, etc within Mojos.
Project Organization

Project Organization

Sonatype, Inc.
Source Code Management

Source Code Management

https://github.com/sonatype/mojo-commons

Download mojo-commons

How to add to project

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

Dependencies

compile (5)

Group / Artifact Type Version
org.sonatype.plexus : plexus-sec-dispatcher jar 1.4
ch.qos.logback : logback-core Optional jar 1.0.0
ch.qos.logback : logback-classic Optional jar 1.0.0
org.sonatype.sisu : sisu-inject-bean Optional jar 2.3.0
org.sonatype.sisu : sisu-inject-plexus Optional jar 2.3.0

provided (3)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 2.2.1
org.apache.maven : maven-core jar 2.2.1
org.sonatype.sisu : sisu-guice jar 3.1.0

test (1)

Group / Artifact Type Version
junit : junit jar 4.8.2

Project Modules

There are no modules declared in this project.

Mojo Commons

Set of reusable stuff for developing Maven Mojos. Currently with support for:

  • "Bootstrapping" a SISU container from within a Mojo.
  • LogBack module support (with Maven loglevel sync and bindings added)
  • Static utility class to "sync" LogBack logging level to Maven's logging level (when SISU and Logback modules is not used)
  • Logback appender to append to Maven's log.

All the libraries are marked as optional, to not drag parts you don't need with this library.

Thanks, and have fun,
t

org.sonatype.maven

Sonatype

Developer friendly, full-spectrum software supply-chain management

Versions

Version
1.1
1.0
0.0.1