Issue
Yes, I went through similar question on 'Goal' not found Error. But havent been able to solve my problem -
Im deploying my SpringBoot App to GCP and following href="https://codelabs.developers.google.com/codelabs/cloud-app-engine-springboot/index.html?index=..%2F..%2Findex#7" rel="nofollow noreferrer">this.
Had a few hiccups so far, but managed to overcome.
This time, the problem is that I added the goal, but still I see the same error. Like this ->
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>appengine-maven-plugin</artifactId>
<version>1.3.1</version>
<configuration>
<project>${endpoints.project.id}</project>
<version>1</version>
<devserver.host>localhost</devserver.host>
<devserver.port>8888</devserver.port>
</configuration>
</plugin>
Also, I updated maven to latest version, did a 'mvn clean package' (which was successful build) and then did 'mvn appengine:devserver' and it says -
[ERROR] Could not find goal 'devserver' in plugin com.google.cloud.tools:appengine-maven-plugin:1.3.1 among available goals deploy, deployCron, deployDispatch, deployDos, deployIndex, deployQueue, genRepoInfoFile, help, run, stage, start, stop -> [Help 1]
[ERROR]
Any suggestions, warmly welcome!
Thanks.
Solution
There are two App Engine Maven plugins you can use to launch your SpringBoot app: App Engine SDK-based and Cloud SDK-based.
The App Engine SDK-based plugin should have the following groupId entry in pom.xml
:
<groupId>com.google.appengine</groupId>
and the command to run the App Engine development web server is
$ mvn appengine:devserver
The Cloud SDK-based plugin should have the following groupId entry in pom.xml
:
<groupId>com.google.cloud.tools</groupId>
and the command to run the App Engine development web server is
$ mvn appengine:run
In that case you were using the wrong command for the chosen plugin.
Using $ mvn appengine:run
with your code should work.
Answered By - Philipp Sh
Answer Checked By - Senaida (JavaFixing Volunteer)