为什么我无法使用 maven-gae-plugin 部署到应用引擎?



我第一次尝试部署我的maven项目。

使用 maven-gae-plugin,就像在原型项目中设置的那样,所以它应该可以工作。但是我收到此错误:

[错误] 无法执行目标 net.kindleit:maven-gae-plugin:0.9.6:deploy (default-cli) on project UsavAppV7:目标的执行默认 cli net.kindleit:maven-gae-plugin:0.9.6:部署失败:插件 net.kindleit:maven-gae-plugin:0.9.6 或其依赖项之一可以 未解决:无法收集 的依赖项 net.kindleit:maven-gae-plugin:jar:0.9.6 (): 无法读取工件 net.kindleit:gae-runtime:pom:1.7.5 的描述符:找不到 Artifact net.kindleit:maven-gae-parent:pom:0.9.6-SNAPSHOT in maven2-repository.dev.java.net (http://download.java.net/maven/2/) -> [帮助 1]

我正在使用应用程序引擎 1.8.0(不确定 1.7.5 位是什么意思)。尝试过使用 -U 开关,也会发生同样的事情。

我注意到 maven 正在 maven2 存储库中寻找插件快照,所以可能是错误的版本或位置?

将其添加到我的pom中可以解决问题,并允许我使用最新版本的sdk和运行时:

<gae.version>1.8.6</gae.version>
<gae-runtime.version>1.8.6</gae-runtime.version>
<plugin>
  <groupId>net.kindleit</groupId>
  <artifactId>maven-gae-plugin</artifactId>
  <version>${maven.gae.plugin.version}</version>
  <configuration>
        <unpackVersion>${gae.version}</unpackVersion>
        <serverId>appengine.google.com</serverId>
        <appDir>${webappDirectory}</appDir>
    </configuration>
    <dependencies>
        <dependency>
            <groupId>net.kindleit</groupId>
            <artifactId>gae-runtime</artifactId>
            <version>${gae-runtime.version}</version>
            <type>pom</type>
        </dependency>
    </dependencies>
</plugin>

最新更新