2012-11-08 61 views
0

They said的,我不能導入 '現有Maven項目' 的i-碼頭

CD $ IJETTY_HOME /控制檯

MVN全新安裝

這將在$ IJETTY_HOME /控制檯war文件/ webapp/target,以及apk中的$ IJETTY_HOME/console/apk/target(儘管正如我們提到的,您可能對此不感興趣)。

,但我得到了以下錯誤(...哦,我的上帝,我不能上傳圖片; 0)


**

[INFO] --- exec-maven-plugin:1.2:exec (generate-dex) @ console --- 
Unable to access jarfile ${env.ANDROID_HOME}/platform-tools/lib/dx.jar 
[INFO] ------------------------------------------------------------------------ 
[INFO] Reactor Summary: 
[INFO] 
[INFO] I-Jetty :: Console Parent ......................... SUCCESS [0.241s] 
[INFO] I-Jetty :: Console Webapp ......................... FAILURE [2.431s] 
[INFO] I-Jetty :: Console Android Installer .............. SKIPPED 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 4.122s 
[INFO] Finished at: Thu Nov 08 19:33:47 KST 2012 
[INFO] Final Memory: 14M/81M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2:exec (generate-dex) on project console: Command execution failed. Process exited with an error: 1(Exit value: 1) -> [Help 1] 
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 
[ERROR] Re-run Maven using the -X switch to enable full debug logging. 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException 
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command 
[ERROR] mvn <goals> -rf :console** 

,我嘗試「建設與Eclipse'

最後,我得到以下類似的錯誤。

上導入Maven項目,


EXEC-行家-插件:1.2:EXEC(1錯誤)
行家-antrun-插件:1.6:運行(1個錯誤)
行家-depoendency -plugin:2.3:解開依賴性(1個錯誤)


幫幫我,PLZ。

我在Mac OS X Lion上安裝了maven插件1.3和eclipse。

回答

0

終於,我自己解決了。

我錯過出口Android SDK中路徑(出口ANDROID_HOME = /選擇/機器人/ Android的SDK-linux_86)

和我編輯的pom.xml

<artifactId>maven-android-plugin</artifactId> 
      <version>2.9.0-beta-5</version> 

<artifactId>android-maven-plugin</artifactId> 
      <version>3.0.0</version> 

謝謝。