-
Notifications
You must be signed in to change notification settings - Fork 77
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
Adding a logging resolution event listener #725
Conversation
5b9c1d7
to
e0a8493
Compare
There was a problem hiding this 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.
src/main/java/org/openrewrite/maven/MavenLoggingResolutionEventListener.java
Outdated
Show resolved
Hide resolved
src/main/java/org/openrewrite/maven/MavenLoggingResolutionEventListener.java
Outdated
Show resolved
Hide resolved
…tListener.java Co-authored-by: Tim te Beek <[email protected]>
Let me know when you consider this ready to review; as it's still marked as a draft. |
There was a problem hiding this 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!
What's changed?
Added a logging
ResolutionListener
onMavenMojoProjectParser
.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