Skip to content

Commit b67c0c8

Browse files
committed
melting-pot: add dependency:get to debug output
Unfortunately, this makes the debugging output nondeterministic... so the cram tests might fail the first time they are run. But only the first time. Pragmatically, I am OK with it.
1 parent 92f2ce3 commit b67c0c8

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

melting-pot.sh

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,12 +276,21 @@ pomPath() {
276276

277277
# Fetches the POM for the given GAV into the local repository cache.
278278
downloadPOM() {
279+
local g="$(groupId "$1")"
280+
local a="$(artifactId "$1")"
281+
local v="$(version "$1")"
282+
debug "mvn dependency:get \\
283+
-DrepoUrl=\"$remoteRepos\" \\
284+
-DgroupId=\"$g\" \\
285+
-DartifactId=\"$a\" \\
286+
-Dversion=\"$v\" \\
287+
-Dpackaging=pom"
279288
mvn dependency:get \
280289
-DrepoUrl="$remoteRepos" \
281-
-DgroupId="$(groupId "$1")" \
282-
-DartifactId="$(artifactId "$1")" \
283-
-Dversion="$(version "$1")" \
284-
-Dpackaging=pom
290+
-DgroupId="$g" \
291+
-DartifactId="$a" \
292+
-Dversion="$v" \
293+
-Dpackaging=pom > /dev/null
285294
}
286295

287296
# Gets the POM path for the given GAV, ensuring it exists locally.

0 commit comments

Comments
 (0)