Skip to content

fix(jfrog): replace deprecated --repo-resolve flag for Maven - #535

Merged
phorcys420 merged 7 commits into
mainfrom
fix/jfrog-mvnc-args
Nov 17, 2025
Merged

phorcys420 merged 7 commits into
mainfrom
fix/jfrog-mvnc-args

Conversation

@matifali

@matifali matifali commented Nov 12, 2025 •

Copy link
Copy Markdown
Member

Fixes deprecated Maven config flags in jfrog-oauth and jfrog-token modules
closes #534

Done using GitHub Copilot.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the JFrog CLI Maven configuration to replace the deprecated --repo-resolve flag with the newer --repo-resolve-releases and --repo-resolve-snapshots flags in both the jfrog-oauth and jfrog-token modules.

  • Replaces deprecated --repo-resolve flag with separate flags for releases and snapshots
  • Updates Maven configuration to use the same repository for both releases and snapshots

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
registry/coder/modules/jfrog-token/run.sh Updates Maven configuration command to use --repo-resolve-releases and --repo-resolve-snapshots flags
registry/coder/modules/jfrog-oauth/run.sh Updates Maven configuration command to use --repo-resolve-releases and --repo-resolve-snapshots flags

@DevelopmentCats DevelopmentCats left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@matifali

the only issue I see with this is there is no way to configure these repo's independently. This would make it work in the mean-time, but it might be good to change this to allow someone to provide seperate repo url's for release, and snapshot artifacts.

@DevelopmentCats DevelopmentCats left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

If we don't care about the above because it essentially retains the previous functionality we are good but we need to bump the versions

@DevelopmentCats

Copy link
Copy Markdown
Collaborator

this should be good now I have tested it as well

@matifali matifali added the version:patch Add to PRs requiring a patch version upgrade label Nov 13, 2025
@coder coder deleted a comment from github-actions Bot Nov 13, 2025
@DevelopmentCats DevelopmentCats changed the title fix(jfrog): replace deprecated --repo-resolve flag for Maven config fix(jfrog): replace deprecated --repo-resolve flag for Maven and correct oauth username extraction Nov 13, 2025
github-actions Bot and others added 6 commits November 14, 2025 08:07
…nfig

Replace deprecated --repo-resolve with --repo-resolve-releases and
--repo-resolve-snapshots for jf mvn-config command.

Verified with JFrog CLI v2.82.0.
…nfig

Same fix as jfrog-oauth - replace --repo-resolve with
--repo-resolve-releases and --repo-resolve-snapshots.
Update test expectations to check for separate --repo-resolve-releases
and --repo-resolve-snapshots flags instead of deprecated --repo-resolve.
@DevelopmentCats DevelopmentCats changed the title fix(jfrog): replace deprecated --repo-resolve flag for Maven and correct oauth username extraction fix(jfrog): replace deprecated --repo-resolve flag for Maven Nov 14, 2025

@bjornrobertsson bjornrobertsson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code looks good, I see the --repo* and --server-id* are extended over the minimum needed (i.e. from the proposed addition needed by end-user)

@phorcys420
phorcys420 merged commit 8add161 into main Nov 17, 2025
4 checks passed
@phorcys420
phorcys420 deleted the fix/jfrog-mvnc-args branch November 17, 2025 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

version:patch Add to PRs requiring a patch version upgrade

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: JFrog OAuth Module: Deprecated --repo-resolve Argument

5 participants