mvn appengine:devserver [ERROR] Could not find goal 'devserver' in plugin com.google.cloud.tools:appengine-maven-plugin:1.3.1 among available goals

谁说我不能喝 提交于 2019-12-25 18:33:45

问题


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 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.


回答1:


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.



来源:https://stackoverflow.com/questions/50225782/mvn-appenginedevserver-error-could-not-find-goal-devserver-in-plugin-com-go

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!