An open API service indexing awesome lists of open source software.

https://github.com/buijs-dev/maven-explicit-dependencies-plugin

Maven plugin to force transitive dependencies to be explicitly declared.
https://github.com/buijs-dev/maven-explicit-dependencies-plugin

Last synced: about 1 year ago
JSON representation

Maven plugin to force transitive dependencies to be explicitly declared.

Awesome Lists containing this project

README

          

[![](https://img.shields.io/badge/Buijs-Software-blue)](https://pub.dev/publishers/buijs.dev/packages)
[![CodeScene Code Health](https://codescene.io/projects/54076/status-badges/code-health)](https://codescene.io/projects/54076)
[![codecov](https://codecov.io/gh/buijs-dev/maven-explicit-dependencies-plugin/graph/badge.svg?token=Bz9XcQYruX)](https://codecov.io/gh/buijs-dev/maven-explicit-dependencies-plugin)
[![GitHub](https://img.shields.io/github/license/buijs-dev/maven-explicit-dependencies-plugin?color=black)](https://github.com/buijs-dev/maven-explicit-dependencies-plugin/blob/main/LICENSE)

# maven-explicit-dependencies-plugin
Maven plugin to force transitive dependencies to be explicitly declared.

## Usage
Add the buijs-dev maven repository:
```xml


buijs-dev
https://repsy.io/mvn/buijs-dev/maven

```

Add the plugin:
```xml

dev.buijs.maven
explicit-dependencies-maven-plugin
1.0.0

```

The plugin can be executed after configuration:

```shell
mvn explicit-dependencies:compile
```

Minimal configuration:
```xml

dev.buijs.maven
explicit-dependencies-maven-plugin
1.0.0

```

Add an execution goal to automatically execute the plugin during
the compilation:

```xml

dev.buijs.maven
explicit-dependencies-maven-plugin
1.0.0



compile


```

Set the force option false to let compilation continue when the plugin has errors.

```xml

dev.buijs.maven
explicit-dependencies-maven-plugin
...

false

```

Log output is available in target/maven-explicit-dependencies directory:
- dependencies.json (all explicitly added dependencies)
- dependenciesMissing.json (all transitive dependencies that are not explicitly added)
- dependencyTree.txt (compiled dependency-tree)
- dependencyTreeFlattened.json (all dependencies which should be explicitly added)