Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deploy with maven plugin hangs forever the first time #117

Open
eschultink opened this issue Oct 1, 2021 · 0 comments
Open

deploy with maven plugin hangs forever the first time #117

eschultink opened this issue Oct 1, 2021 · 0 comments
Labels
bug Something isn't working P3

Comments

@eschultink
Copy link

Console log looks as follows:

[INFO] ------------------------< co.worklytics:project >-------------------------
[INFO] Building project 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- function-maven-plugin:0.9.7:deploy (default-cli) @ project ---
Executing Cloud SDK command: gcloud functions deploy project-google-chat --trigger-http --entry-point=co.worklytics.project.Route --service-account=project-google-chat-dwd@project-dev-erik.iam.gserviceaccount.com --env-vars-file=./configs/google-chat.yaml --runtime=java11 --project=project-dev-erik

This is invoked by IntelliJ "Run Configuration".

When I go to terminal and run gcloud functions deploy project-google-chat --trigger-http --entry-point=co.worklytics.project.Route --service-account=project-google-chat-dwd@project-dev-erik.iam.gserviceaccount.com --env-vars-file=./configs/google-chat.yaml --runtime=java11 --project=project-dev-erik

then I get the prompt

Allow unauthenticated invocations of new function [project-google-chat]?
 (y/N)? 

I answer 'N' to that, and everything continues as expected. If I now try the IntelliJ run configuration again, it all works.

I'd blame IntelliJ for not picking up the prompt, yet I tried against having added allowUnauthenticated explicitly to my pom.xml, and the same behavior happens:

                <groupId>com.google.cloud.functions</groupId>
                <artifactId>function-maven-plugin</artifactId>
                <version>0.9.7</version>
                <configuration>
                    <functionTarget>co.worklytics.project.Route</functionTarget>
                    <envVarsFile>./configs/${sourceApi}.yaml</envVarsFile>
                    <projectId>${gcpProjectId}</projectId>
                    <name>project-${sourceApi}</name>
                    <serviceAccount>${serviceAccount}</serviceAccount>
                    <allowUnauthenticated>false</allowUnauthenticated>
                </configuration>
@josephlewis42 josephlewis42 added the bug Something isn't working label Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P3
Projects
None yet
Development

No branches or pull requests

2 participants