apache / apache/maven-jdeps-plugin

Add support for --print-module-deps in jdeps:jdkinternals or new goal

Open
#65 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
18
Forks
18
Avg merge
9h 12m
Merged PRs (30d)
5

Description

### New feature, improvement proposal

I would like to be able to get the output for the flag --print-module-deps and store it into a file or path of choice. Similar to the `` option. Perhaps have it as or something similar.

This will also require the use of --ignore-missing-deps as well.

Desired functionality:

```xml

21
${project.build.directory}/jdeps/deps.info
true
true

```
So this would run the command :

```zsh
jdeps \
--ignore-missing-deps \
--recursive \
--multi-release 21 \
--print-module-deps \
--class-path "[project classpath]" \
./project.jar > ${project.build.directory}/jdeps/deps.info
```
After the above were supplied then the output of the --print-module-deps would be placed in the location specified in the file specified.

I have searched the issues, and I have not seen this requested or reported, so if this is a duplicate, then I apologize.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by examining the jdeps:jdkinternals goal and the existing dotOutput configuration, then trace how the plugin builds the jdeps command and handles output. Done means the requested depsOutput and ignoreMissingDeps configuration produce --print-module-deps output at the selected path, including the recursive and multi-release options shown.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.