File tree 1 file changed +10
-1
lines changed
tests/src/test/java/com/google/cloud 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -110,13 +110,22 @@ static void checkBomReachable(Path bomPath) throws Exception {
110
110
}
111
111
112
112
private static String buildMavenCentralUrl (Artifact artifact ) {
113
+ // Due to a maven caching issue, accessing an artifact using the directory link (e.g
114
+ // https://repo1.maven.org/maven2/com/google/cloud/google-cloud-bigtable/2.23.2)
115
+ // results in a `404 Not Found` error even if the artifact is published but using a
116
+ // nested file within the directory works (e.g.
117
+ // https://repo1.maven.org/maven2/com/google/cloud/google-cloud-bigtable/2.23.2/google-cloud-bigtable-2.23.2.pom)
113
118
return "https://repo1.maven.org/maven2/"
114
119
+ artifact .getGroupId ().replace ('.' , '/' )
115
120
+ "/"
116
121
+ artifact .getArtifactId ()
117
122
+ "/"
118
123
+ artifact .getVersion ()
119
- + "/" ;
124
+ + "/"
125
+ + artifact .getArtifactId ()
126
+ + "-"
127
+ + artifact .getVersion ()
128
+ + ".pom" ;
120
129
}
121
130
122
131
/** Asserts that the BOM only provides JARs which contains unique class names to the classpath. */
You can’t perform that action at this time.
0 commit comments