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.
- Host: GitHub
- URL: https://github.com/buijs-dev/maven-explicit-dependencies-plugin
- Owner: buijs-dev
- License: mit
- Created: 2024-04-27T19:21:22.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-26T14:11:09.000Z (about 2 years ago)
- Last Synced: 2025-03-09T20:04:13.710Z (over 1 year ago)
- Language: Java
- Size: 48.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
[](https://pub.dev/publishers/buijs.dev/packages)
[](https://codescene.io/projects/54076)
[](https://codecov.io/gh/buijs-dev/maven-explicit-dependencies-plugin)
[](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)