File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
tests/src/test/java/com/google/cloud Expand file tree Collapse file tree 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 {
110110 }
111111
112112 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)
113118 return "https://repo1.maven.org/maven2/"
114119 + artifact .getGroupId ().replace ('.' , '/' )
115120 + "/"
116121 + artifact .getArtifactId ()
117122 + "/"
118123 + artifact .getVersion ()
119- + "/" ;
124+ + "/"
125+ + artifact .getArtifactId ()
126+ + "-"
127+ + artifact .getVersion ()
128+ + ".pom" ;
120129 }
121130
122131 /** 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