在当前项目中找到前缀"appengine"的插件错误



下面是Hello World gcloud和基于maven的代码的示例

<!-- [START pom] -->
.
.
.
<!-- [START properties] -->
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<!-- REQUIRED by appengine-maven-plugin plugin, if web.xml does not exist for your application -->
<failOnMissingWebXml>false</failOnMissingWebXml>
<!-- [END_EXCLUDE] -->
.
.
.
<build>
<!-- for hot reload of the web application-->
<outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory>
<plugins>
<!-- [START cloudplugin] -->
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>appengine-maven-plugin</artifactId>
<version>1.3.2</version>
</plugin>
<!-- [END cloudplugin] -->
</plugins>
</build>
</project>
<!-- [END pom] -->

在运行mvn-appengine:run命令时,我得到以下错误:

"在当前项目和插件组[org.apache.maven.plugins,org.codehaus.mojo]中找不到前缀为‘appengine’的插件,这些插件可从存储库[local(/Users/luay/.m2/repository(,central获得(https://repo.maven.apache.org/maven2)]">

Maven可能不会以某种方式更新您的本地存储库,您可以运行命令mvn appengine:run -U并碰碰运气;U的意思是更新存储库。

你也可以检查你的m2目录,并验证你是否有这些罐子~/.m2/repository/com/google/cloud/tools/appengine-maven-plugin/,如果你在windows上,~是C:\Users/

相关内容

最新更新