GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Only log dependency classpath when no property/file output is specified by mwalser · Pull Request #1551 · apache/maven-dependency-plugin

Conversation

@mwalser

@mwalser mwalser commented Nov 7, 2025

Copy link
Copy Markdown
Contributor

When invoking the build-classpath mojo with outputProperty but without outputFile, it logs the complete classpath at INFO to the build log. In our case that produces an enormously long log message.

Interestingly this is not the case when the outputFile is set. This seems to be quite arbitrary.

After doing some code archaeology, I think this behavior was never intended to work this way:

  • When the mojo was conceived, there only was the outputFile property. So the user had the choice: Either set the outputFile property or have the classpath logged as INFO.
  • At one point the outputProperty parameter was added: deec581. This retained the original behavior: If neither outputProperty nor outputFile was set, the classpath would be logged at INFO.
  • At a later point in time, the code was changed to allow outputProperty and outputFile to be specified at the same time: 96ad4a0. This change introduced the current (and in my opinion unintended) behavior.

This PR fixes the issue by only logging the classpath at INFO level when neither outputProperty nor outputFile is set. This makes the behavior consistent regardless of which output method is chosen.

Note: Previously we used the <silent>true</silent> option as a workaround. However, since this has been deprecated there is not good way of achieving a sane behaviour without completely disabling logging for a build.


To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.

  • I hereby declare this contribution to be licenced under the Apache License Version 2.0, January 2004

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@mwalser
Only log dependency classpath when no property/file output is specified
285a411
slawekjaranowski
slawekjaranowski approved these changes Jan 27, 2026
View reviewed changes
@slawekjaranowski slawekjaranowski added enhancement New feature or request bug Something isn't working and removed enhancement New feature or request labels Jan 27, 2026
@slawekjaranowski
slawekjaranowski merged commit 0d88b66 into apache:master Jan 27, 2026
@github-actions github-actions Bot added this to the 3.10.0 milestone Jan 27, 2026
@github-actions github-actions Bot assigned slawekjaranowski Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@slawekjaranowski slawekjaranowski slawekjaranowski approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@slawekjaranowski slawekjaranowski

Labels

bug Something isn't working

Projects

None yet

Milestone

3.10.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@mwalser @slawekjaranowski
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.