0

我想第一次部署我的maven項目。爲什麼我不能使用maven-gae-plugin部署到應用程序引擎?

使用maven-gae-plugin,如在原型項目中設置的那樣,它應該可以工作。然而我得到這個錯誤:

[ERROR] Failed to execute goal net.kindleit:maven-gae-plugin:0.9.6:deploy (default-cli) on project UsavAppV7: Execution default-cli of goal net.kindleit:maven-gae-plugin:0.9.6:deploy failed: Plugin net.kindleit:maven-gae-plugin:0.9.6 or one of its dependencies could not be resolved: Failed to collect dependencies for net.kindleit:maven-gae-plugin:jar:0.9.6(): 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 maven2-repository.dev.java.net (http://download.java.net/maven/2/) -> [Help 1]

我使用的是appengine 1.8.0(不知道1.7.5位意味着什麼)。已經嘗試使用-U開關併發生同樣的事情。

我注意到maven正在maven2-repository中查看插件快照,所以可能是錯誤的版本或位置?

+1

你有沒有試過這種http://stackoverflow.com/questions/15178931/maven -gae-archetype-not-working/15182650#15182650 – ZiglioUK

+1

大約半小時前找到它並現在嘗試它。我並不想在理想世界中使用1.7.5,但現在看起來像一個很好的解決方法 – slugmandrew

+0

祝你好運。我在GAE + java 7 + eclipse + maven遇到了很多麻煩http://stackoverflow.com/questions/19117440/understanding-how-to-resolve-inconsistent-stackmap-frames-exception/19117957?noredirect=1# comment28826938_19117957 – ZiglioUK

回答

0

添加此我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> 
相關問題