Maven dependency issue while integrating GCP with AEM
Hi,
We are working on a POC to call a google cloud storage API from AEM to retrieve an image file following the documentation - https://www.baeldung.com/java-google-cloud-storage . My class is as below ,currently in the early stages to establish the connectivity.
import java.io.IOException;
import com.google.api.gax.paging.Page;
import com.google.cloud.storage.Bucket;
import com.google.cloud.storage.Storage;
import com.google.cloud.storage.StorageOptions;
public class GoogleCloudConnector {
public static void main(String[] args) throws IOException {
System.out.println("This is main");
StorageOptions.Builder b = StorageOptions.newBuilder().setProjectId("lt-test-lwr");
Storage storage = b.build().getService();
Page<Bucket> buckets = storage.list();
for (Bucket bucket : buckets.iterateAll()) {
System.out.println(bucket.toString());
}
}
}
The maven dependency I have added for using this API is as below.
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-storage</artifactId>
<version>2.6.1</version>
</dependency>
But, I am getting dependency error and my bundle is not getting active.

Can someone help understand, why we get this error even after adding the required maven dependency in AEM project? Has anyone successfully integrated Google cloud platform with AEM and any insights here?
