Skip to content

Commit a3dc118

Browse files
fix(jfrog-oauth): replace deprecated --repo-resolve flag for Maven config
Replace deprecated --repo-resolve with --repo-resolve-releases and --repo-resolve-snapshots for jf mvn-config command. Verified with JFrog CLI v2.82.0.
1 parent 8bf1789 commit a3dc118

File tree

1 file changed

+3
-1
lines changed
  • registry/coder/modules/jfrog-oauth

1 file changed

+3
-1
lines changed

registry/coder/modules/jfrog-oauth/run.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ if [ -z "${HAS_MAVEN}" ]; then
9999
not_configured maven
100100
else
101101
echo "☕ Configuring maven..."
102-
jf mvnc --global --repo-resolve "${REPOSITORY_MAVEN}"
102+
jf mvnc --global \
103+
--repo-resolve-releases "${REPOSITORY_MAVEN}" \
104+
--repo-resolve-snapshots "${REPOSITORY_MAVEN}"
103105
# Create Maven config directory if it doesn't exist
104106
mkdir -p ~/.m2
105107
cat << EOF > ~/.m2/settings.xml

0 commit comments

Comments
 (0)