We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fd4ac0 commit 3acf025Copy full SHA for 3acf025
1 file changed
java-cloud-bom/tests/src/test/java/com/google/cloud/BomContentTest.java
@@ -154,8 +154,12 @@ private static String buildMavenCentralUrl(Artifact artifact) {
154
private static boolean existsLocally(Artifact artifact) {
155
String localRepository = System.getProperty("maven.repo.local");
156
if (localRepository == null) {
157
+ String userHome = System.getProperty("user.home");
158
+ if (userHome == null) {
159
+ return false;
160
+ }
161
// Standard default location for Maven local repository.
- localRepository = System.getProperty("user.home") + "/.m2/repository";
162
+ localRepository = userHome + "/.m2/repository";
163
}
164
Path localPath =
165
Paths.get(
0 commit comments