CloudStorageMaven icon indicating copy to clipboard operation
CloudStorageMaven copied to clipboard

NullPointerException originating from GoogleStorageRepository.createStorage()

Open ashkaps opened this issue 5 years ago • 2 comments

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 avatar Jan 03 '20 10:01 ashkaps

@gkatzioura any idea on what I might be missing?

ashkaps avatar Jan 03 '20 10:01 ashkaps

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

talatuyarer avatar Mar 05 '20 17:03 talatuyarer