apache / apache/maven-help-plugin

ListDependencyTypesMojo, ListLifecyclePhasesMojo, ListPackagingMojo write to console AND file simultaneously

Open Beginner friendly
#389 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
29
Forks
42
Avg merge
1d 12h
Merged PRs (30d)
6

Description

These three mojos always log to console AND unconditionally call writeFile(output, ...) (no-op when null). Every other mojo uses if (output != null) { ... } else { getLog().info(...); }. The dual-write means content is always printed to console even when writing to file. They also do not prepend the "Generated by Maven Help Plugin" header that ActiveProfilesMojo and SystemMojo add.

Files:
- ListDependencyTypesMojo.java:95-96
- ListLifecyclePhasesMojo.java:76-77
- ListPackagingMojo.java:110-111

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the listed sections of ListDependencyTypesMojo.java, ListLifecyclePhasesMojo.java, and ListPackagingMojo.java. Compare their output handling with other mojos, especially ActiveProfilesMojo and SystemMojo, then verify that console and file output are mutually exclusive and that generated files include the expected header.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
78/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.