CloudStorageMaven
CloudStorageMaven copied to clipboard
NullPointerException originating from GoogleStorageRepository.createStorage()
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
@gkatzioura any idea on what I might be missing?
Hey @ashkaps I created a pr for this issue. I had similar issue. It solved my issue. fyi #75