Skip to content

[MARTIFACT-58] add warn log for each dependency stemming from a local repository - #227

Open
sebtiem wants to merge 1 commit into
apache:masterfrom
sebtiem:MARTIFACT-58
Open

[MARTIFACT-58] add warn log for each dependency stemming from a local repository#227
sebtiem wants to merge 1 commit into
apache:masterfrom
sebtiem:MARTIFACT-58

Conversation

@sebtiem

@sebtiem sebtiem commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Following this checklist to help us incorporate your
contribution quickly and easily:

  • Your pull request should address just one issue, without pulling in other changes.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Each commit in the pull request should have a meaningful subject line and body.
    Note that commits might be squashed by a maintainer on merge.
  • Write unit tests that match behavioral changes, where the tests fail if the changes to the runtime are not applied.
    This may not always be possible but is a best-practice.
  • Run mvn verify to make sure basic checks pass.
    A more thorough check will be performed on your pull request automatically.
  • You have run the integration tests successfully (mvn -Prun-its verify).

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.

@hboutemy hboutemy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

really nice addition to give a chance to discover local rebuilds

just trying to get message that is easier to understand "why" and act accordingly


if (resultRepo instanceof LocalRepository) {
log.warn(String.format(
"The artifact %s:%s:%s is stemming from your local Maven repository. "

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

"from your local Maven repository." => "from a local install to your local Maven repository."

if (resultRepo instanceof LocalRepository) {
log.warn(String.format(
"The artifact %s:%s:%s is stemming from your local Maven repository. "
+ "Please ensure that this is intended. "

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

  • " and that your local installed artifact matches public reference from remote."

this helps understand the risk of locally installed releases vs reference published to remote

log.warn(String.format(
"The artifact %s:%s:%s is stemming from your local Maven repository. "
+ "Please ensure that this is intended. "
+ "If not, consider removing this artifact and rebuilding.",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

adding the path to the local repository directory of the artifact version would help delete

@hboutemy

hboutemy commented Aug 7, 2026

Copy link
Copy Markdown
Member

notice: I don't think the reference to https://issues.apache.org/jira/browse/MARTIFACT-58 is really useful: this PR is much more focused and interesting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants