maven-gae-plugin突然坏了

时间:2013-02-26 16:34:24

标签: google-app-engine maven maven-gae-plugin

我不确定发生了什么但是我没有更改我的pom并且只进行了全新安装,但现在使用mvn gae:run运行我的应用程序时出现以下错误:

[ERROR] Failed to execute goal net.kindleit:maven-gae-plugin:0.9.4:run (default-cli) on project geoip-service: Execution default-cli of goal net.kindleit:maven-gae-plugin:0.9.4:run failed: Plugin net.kindleit:maven-gae-plugin:0.9.4 or one of its dependencies could not be resolved: Failed to collect dependencies for net.kindleit:maven-gae-plugin:jar:0.9.4 (): Failed to read artifact descriptor for net.kindleit:gae-runtime:pom:1.7.5: Could not find artifact net.kindleit:maven-gae-parent:pom:0.9.6-SNAPSHOT in genius (our_own_repo_here)

我使用的是1.7.2版本的sdk,所以我不确定1.7.5可能来自哪里。

2 个答案:

答案 0 :(得分:6)

目前,你可以使用这个丑陋的黑客

<properties>
    <gae.version>1.7.5</gae.version>
    <gae-runtime.version>1.7.5.1</gae-runtime.version>
</properties>

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

答案 1 :(得分:1)

我仍然不知道问题是什么,即。谁在拉动版本1.7.5的gae-runtime,但这是对我有用的工作。在profile / build / plugins / plugin等的maven-gae-plugin下添加以下内容。

<dependencies>
    <dependency>
        <groupId>net.kindleit</groupId>
        <artifactId>gae-runtime</artifactId>
        <version>1.7.2</version>
        <type>pom</type>
    </dependency>
</dependencies>