2013-02-26 21 views
5

Nie jestem pewien, co się stało, ale nie zrobiłem zmiany w moim pom i nie tylko zrobić czystą instalację, ale teraz prowadzę aplikację z mvn gae:run daje mi następujący błąd:mvn-GAE-plugin nagle złamane

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

Używam wersji 1.7.2 sdk, więc nie jestem pewien, skąd może pochodzić 1.7.5.

+1

Ja eksperymentuje ten sam problem . Może ten problem ma związek z tą prośbą o pociągnięcie, która została podjęta 2 dni temu: https://github.com/maven-gae-plugin/maven-gae-plugin/pull/64 https://github.com/maven-gae -plugin/maven-gae-plugin/commit/6c708b5c86a879227d36f84b97eac9afe9d6d380 –

+0

Miał ten sam problem za pomocą wtyczki 0.9.5 z gAE 1.8.5. – xamde

Odpowiedz

6

Na razie, można użyć tego brzydkiego 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> 
+0

można rzucić światło na dlaczego to obejście jest potrzebne? Powinienem móc używać dowolnego SDK, prawda? Czy to błąd w wtyczce? – slugmandrew

+0

, który był jakiś czas temu. Wydaje mi się, że konkretne wydanie wtyczki maven-gae odnosiło się do wersji beta gs sdk, więc jawnie przekazując wersję sami, sprawiamy, że maven odnajduje poprawną wersję. Być może teraz nie jest już potrzebny, nie próbowałem – ZiglioUK

1

Nadal nie wiem, jaki był problem, tj. który ciągnął gae-runtime wersji 1.7.5, ale to jest praca, która zadziałała dla mnie. Dodaj następujący pod maven-gae-plugin w profilu/build/plugins/wtyczki itp

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

Zobacz GitHub problem [tutaj] [1] [1]: https://github.com/maven-gae-plugin/maven-gae-plugin/issues/67#issuecomment-14149465 – ZiglioUK

Powiązane problemy