在当前项目中为前缀“ 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命令时,出现以下错误:

“在当前项目和存储库[本地(/Users/luay/.m2)中没有找到前缀为'appengine'的插件,该插件组位于[org.apache.maven.plugins,org.codehaus.mojo] /存储库),中央(https://repo.maven.apache.org/maven2)]

nanyun1 回答:在当前项目中为前缀“ appengine”找到插件

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

如果您在Windows ~/.m2/repository/com/google/cloud/tools/appengine-maven-plugin/上是C:/ Users /

,还可以检查m2目录并验证是否有这些jars ~
本文链接:https://www.f2er.com/3135496.html

大家都在问