Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a logging resolution event listener #725

Merged
merged 8 commits into from
Feb 20, 2024

Conversation

ammachado
Copy link
Contributor

@ammachado ammachado commented Jan 31, 2024

What's changed?

Added a logging ResolutionListener on MavenMojoProjectParser.

What's your motivation?

Identify maven resolution issues (#703).

Anything in particular you'd like reviewers to focus on?

No

Anyone you would like to review specifically?

No

Have you considered any alternatives or workarounds?

Current maven debug output is not helpful regarding the plugin dependency resolution errors.

Any additional context

No

Checklist

  • I've added unit tests to cover both positive and negative cases
  • I've read and applied the recipe conventions and best practices
  • I've used the IntelliJ IDEA auto-formatter on affected files

@ammachado ammachado force-pushed the logging-resolution-listener branch from 5b9c1d7 to e0a8493 Compare January 31, 2024 04:00
@ammachado ammachado changed the title Adding a logging resolution listener Adding a logging resolution event listener Jan 31, 2024
Copy link
Contributor

@timtebeek timtebeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it! Can see how this would be helpful to users of the OSS plugin too.

@timtebeek timtebeek added the enhancement New feature or request label Jan 31, 2024
@timtebeek
Copy link
Contributor

Let me know when you consider this ready to review; as it's still marked as a draft.

@ammachado ammachado marked this pull request as ready for review February 1, 2024 13:30
@timtebeek timtebeek self-requested a review February 1, 2024 19:31
Copy link
Contributor

@timtebeek timtebeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great to see this @ammachado ; After trying it out I've minimized the logged messages a bit, as in particular the resolved properties made debug mode unusable. Rather than trace I figured only keep the most valuable ones related to download success/failure and failure to access repositories.

Hope you agree!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants