1
我是Spring Roo和Maven的新手。我試圖使用Spring Roo設置基本的Google App Engine Web應用程序。但是當我運行測試時 - 執行測試/ mvn測試 - 我收到一個錯誤,說因API可兼容性無法運行Unpack目標。無法執行目標net.kindleit:maven-gae-plugin:0.9.2:由於API不兼容導致解包
詳情: gae.version:1.6.1 GAE運行時:0.9.2
試圖用1.6.0和0.9.0一樣 - 仍然給我同樣的錯誤。
例外:
[INFO] --- maven-gae-plugin:0.9.2:unpack (default) @ project_x --- Feb 8, 2012 2:47:40 PM org.sonatype.guice.bean.reflect.Logs$JULSink warn WARNING: Error injecting: net.kindleit.gae.UnpackGoal java.lang.TypeNotPresentException: Type net.kindleit.gae.UnpackGoal not present at org.sonatype.guice.bean.reflect.URLClassSpace.loadClass(URLClassSpace.java:109) at org.sonatype.guice.bean.reflect.NamedClass.load(NamedClass.java:45) ... ... ... 41 more [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 27.836s [INFO] Finished at: Wed Feb 08 14:47:40 IST 2012 [INFO] Final Memory: 6M/12M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal net.kindleit:maven-gae-plugin:0.9.2:unpack (default) on project project_x: Execution default of goal net.kindleit:maven-gae-plugin:0.9.2:unpack failed: Unable to load the mojo 'unpack' in the plugin 'net.kindleit:maven-gae-plugin:0.9.2' due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException: Bad version number in .class file [ERROR] ----------------------------------------------------- [ERROR] realm = plugin>net.kindleit:maven-gae-plugin:0.9.2 [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy [ERROR] urls[0] = file:/Users/myself/.m2/repository/net/kindleit/maven-gae-plugin/0.9.2/maven-gae-plugin-0.9.2.jar [ERROR] urls[1] = file:/Users/myself/.m2/repository/net/kindleit/gae-runtime/1.6.1/gae-runtime-1.6.1.pom ... ..
我試着用搜索引擎這個問題,但任何人都跨越面臨這個問題沒來。我想,我錯過了生成的POM中的一些依賴 - 但是由於我缺乏經驗,我無法弄清楚確切的原因。
讓我知道,如果我需要上傳生成的pom.xml或任何其他細節。
與此同時,我會繼續弄清楚是什麼導致了這個問題。
在此先感謝。