[Secrets Manager]Java Maven: Configuring GCP Secret Manager. "Type" Not Accessible Error #10975
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: question
Request for information or clarification. Not an issue.
Issue
I would like to use GCP Secrets Manager for my Java application. The main trouble comes when using the module-info.java file, if I use a version of Java less than 9 that doesn't have the module-info.java file, then it works fine. The main error that comes up is
The import com.google.cloud.secretmanager.v1.{Class Name} cannot be resolved Java (268435846).
, and that applies to the following classes:The only class that correctly imports is
SecretManagerServiceClient
.Environment details
Steps to reproduce
LINK TO REPRODUCIBLE CODE: https://github.com/phillipshaong/java-gcp-secrets-manager-test/tree/main
Code example
Stack trace
N/A
External references such as API reference guides
-https://cloud.google.com/secret-manager/docs/reference/libraries#client-libraries-install-java
Any additional information below
N/A
Following these steps guarantees the quickest resolution possible.
Thanks!
The text was updated successfully, but these errors were encountered: