他们说,
cd $IJETTY_HOME/控制台
mvn 干净安装
这将在 $IJETTY_HOME/console/webapp/target 中生成一个 war 文件,以及在 $IJETTY_HOME/console/apk/target 中的 apk(尽管正如我们所提到的,您可能对此不感兴趣)。
但我收到以下错误(......哦,我的上帝。我无法上传图片;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-maven-plugin:1.2:exec (1 个错误)
maven-antrun-plugin:1.6:run(1 个错误)
maven-depoendency-plugin:2.3:unpack-dependencies(1 个错误)
帮帮我,请。
我在 Mac OS X Lion 上使用 eclipse 安装了 maven 插件 1.3。