mvn appengine:devserver [错误]在可用目标中的插件com.google.cloud.tools:appengine-maven-plugin:1.3.1中找不到目标"devserver" [英] mvn appengine:devserver [ERROR] Could not find goal 'devserver' in plugin com.google.cloud.tools:appengine-maven-plugin:1.3.1 among available goals

查看:425
本文介绍了mvn appengine:devserver [错误]在可用目标中的插件com.google.cloud.tools:appengine-maven-plugin:1.3.1中找不到目标"devserver"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是的,我针对目标"未找到错误经历了类似的问题.但是还不能解决我的问题-

Yes, I went through similar question on 'Goal' not found Error. But havent been able to solve my problem -

我将SpringBoot应用程序部署到GCP并遵循

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>

此外,我将Maven更新到最新版本,做了一个'mvn clean package'(成功构建),然后又做了'mvn appengine:devserver',它说-

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]

任何建议,热烈欢迎!

谢谢.

推荐答案

您可以使用两个App Engine Maven插件来启动SpringBoot应用程序: 基于App Engine SDK和基于Cloud SDK.

There are two App Engine Maven plugins you can use to launch your SpringBoot app: App Engine SDK-based and Cloud SDK-based.

基于App Engine SDK的插件在pom.xml中应具有以下groupId条目:

The App Engine SDK-based plugin should have the following groupId entry in pom.xml:

<groupId>com.google.appengine</groupId> 

和运行App Engine开发网络服务器的命令是

and the command to run the App Engine development web server is

$ mvn appengine:devserver

基于Cloud SDK的插件应在pom.xml中具有以下groupId条目:

The Cloud SDK-based plugin should have the following groupId entry in pom.xml:

<groupId>com.google.cloud.tools</groupId> 

,运行App Engine开发网络服务器的命令是

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.

在代码中使用$ mvn appengine:run应该可以.

Using $ mvn appengine:run with your code should work.

这篇关于mvn appengine:devserver [错误]在可用目标中的插件com.google.cloud.tools:appengine-maven-plugin:1.3.1中找不到目标"devserver"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆