【问题标题】:mvn-gae-plugin suddenly brokenmaven-jar-plugin 突然坏了
【发布时间】:2013-02-12 05:09:11
【问题描述】:

我不确定发生了什么,但我没有对我的 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 的来源。

【问题讨论】:

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


【解决方案1】:

暂时,你可以用这个丑陋的hack

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

【讨论】:

  • 您能否解释一下为什么需要这种解决方法?我应该可以使用任何sdk,对吧?是插件的bug吗?
  • 那是不久前的事了。我认为 maven-gae-plugin 的特定版本是指 gae sdk 的 beta 版本,因此通过我们自己明确传递一个版本,我们让 maven 找到正确的版本。可能现在不需要了,没试过
【解决方案2】:

我仍然不知道问题是什么,即谁正在使用 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>

【讨论】:

猜你喜欢
  • 1970-01-01
  • 2018-07-10
  • 1970-01-01
  • 1970-01-01
  • 2016-05-19
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多