Skip to content
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.

NullPointerException originating from GoogleStorageRepository.createStorage() #73

Open
ashkaps opened this issue Jan 3, 2020 · 2 comments

Comments

@ashkaps
Copy link

ashkaps commented Jan 3, 2020

Error thrown by plugin:
Please configure you google cloud account by logging using gcloud and specify a default project

Reason: keyPath is null

Is there is definite way to pass the value of keyPath?
I am getting this issue in my project which is trying to download artifacts from google buckets.

I am authenticated with my GCP.
I have set value of GOOGLE_APPLICATION_CREDENTIALS correctly. Since keyPath is null code never goes to default.

I have tried providing the value of keyPath in my pom.xml like this:
<plugin> <groupId>com.gkatzioura.maven.cloud</groupId> <artifactId>google-storage-wagon</artifactId> <version>2.3</version> <executions> <execution> <id>download</id> <phase>install</phase> <configuration> <keyPath>../src/test/resources/serviceacc.json</keyPath> </configuration> <goals> <goal>gcs-download</goal> </goals> </execution> </executions> </plugin>
Plugin Version: 2.3

@ashkaps
Copy link
Author

ashkaps commented Jan 3, 2020

@gkatzioura any idea on what I might be missing?

@talatuyarer
Copy link

Hey @ashkaps I created a pr for this issue. I had similar issue. It solved my issue. fyi #75

pwoodworth added a commit to emergentdotorg/cloud-storage-maven that referenced this issue Sep 15, 2024
pwoodworth added a commit to emergentdotorg/cloud-storage-maven that referenced this issue Sep 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants