-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
[MNG-7253] Display relocation message defined in model #544
Conversation
maven-core/src/main/java/org/apache/maven/project/DefaultProjectDependenciesResolver.java
Outdated
Show resolved
Hide resolved
...-resolver-provider/src/main/java/org/apache/maven/repository/internal/RelocatedArtifact.java
Outdated
Show resolved
Hide resolved
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.
If you can make it proper along with a small test I will include this in 3.8.3 which will be available by the end of the month.
I'm not sure how to test this, given that the only change introduced was the logging statement. Is there any example in the codebase that captures the log output? |
That be a case for an IT...but the change is so simple that maybe we can go with out. |
Why not move the logging to |
The entire logging? |
The relocation warning (which is basically everything apart from the visitEnter debug logging) |
This sounds like a code refactoring that can be done in a separate PR |
It makes the addition of message to the ResolcationArtifact absolete. |
Correct, this is not a resolution problem, but when the static model is read. |
So in this case |
Use SLF4J and nothing else for new code. Does this solve your problem? |
Done, see if that's okay now |
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.
Looks better now. I will try make this run in action. First I need a relocated artifact or make my own...
Wait, I am seeing two warnings now in my local test:
|
Very nice. Have the the POM be invalid if the message is displayed? I am confused... |
The debug logging says: |
It is really strange, if I remove this commit, the extra warning message is no longer shown. |
Ahhh found the bug, nvm |
Move logging to DefaultArtifactDescriptorReader
This is working as it should now. It displays:
When I have this: https://github.com/quarkusio/quarkus/blob/main/extensions/vertx-web/runtime/pom.xml#L16-L19 |
Move logging to DefaultArtifactDescriptorReader This closes #544
Merged. |
Following this checklist to help us incorporate your
contribution quickly and easily:
for the change (usually before you start working on it). Trivial changes like typos do not
require a JIRA issue. Your pull request should address just this issue, without
pulling in other changes.
[MNG-XXX] - Fixes bug in ApproximateQuantiles
,where you replace
MNG-XXX
with the appropriate JIRA issue. Best practiceis to use the JIRA issue title in the pull request title and in the first line of the
commit message.
mvn clean verify
to make sure basic checks pass. A more thorough check willbe performed on your pull request automatically.
If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.
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
In any other case, please file an Apache Individual Contributor License Agreement.