Skip to content

Commit 2195ceb

Browse files
Add fix-lockfile target to normalize JFrog proxy URLs
When lockfiles are regenerated while Maven resolves through JFrog (CI or VPN), the resolved URLs point to databricks.jfrog.io instead of repo.maven.apache.org. This target rewrites them back to public Maven Central URLs before committing.
1 parent 99312ca commit 2195ceb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,9 @@ lock:
1010
check-lock:
1111
mvn io.github.chains-project:maven-lockfile:5.5.2:validate
1212

13+
fix-lockfile:
14+
@# Replace JFrog proxy URLs with public Maven Central equivalents in lockfiles.
15+
@# Prevents proxy URLs from being accidentally committed.
16+
find . -type f -name 'lockfile.json' \
17+
-exec sed -i 's|databricks\.jfrog\.io/artifactory/db-maven|repo.maven.apache.org/maven2|g' {} +
18+

0 commit comments

Comments
 (0)