Skip to content

Route list goal output to either file or console - #436

Merged
slachiewicz merged 2 commits into
apache:masterfrom
efegokdemir:codex/issue-389-list-output-routing
Oct 27, 2026
Merged

slachiewicz merged 2 commits into
apache:masterfrom
efegokdemir:codex/issue-389-list-output-routing

Conversation

@efegokdemir

@efegokdemir efegokdemir commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Description

Fixes #389. The list-dependency-types, list-lifecycle-phases, and list-packaging goals now treat the configured output file as an alternative to console output, matching the documented behavior and the other help goals.

Changes

  • Write list-goal content only when output is configured.
  • Log the generated content only when no output file is configured.
  • Add regression coverage for all three list goals.

Tests

  • mvn -Prun-its verify passed on JDK 17 (33 unit tests and 36 integration tests).
  • mvn spotless:check passed.

Notes


To make clear that you license your contribution under the Apache License Version 2.0, January 2004, check one of the following:

@slawekjaranowski slawekjaranowski added the bug Something isn't working label Oct 8, 2026
@efegokdemir

Copy link
Copy Markdown
Contributor Author

Sorted the imports in ListMojoOutputTest. mvn -Prun-its verify (33 unit tests and 36 integration tests) and mvn spotless:check pass on JDK 17.

@slachiewicz
slachiewicz force-pushed the codex/issue-389-list-output-routing branch from 98942a6 to d1095e2 Compare October 27, 2026 20:56
@slachiewicz
slachiewicz merged commit bcb168a into apache:master Oct 27, 2026
19 checks passed
@github-actions github-actions Bot added this to the 3.5.3 milestone Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ListDependencyTypesMojo, ListLifecyclePhasesMojo, ListPackagingMojo write to console AND file simultaneously

3 participants