【问题标题】:I couldn't import 'Existing Maven Projects' of i-jetty我无法导入 i-jetty 的“现有 Maven 项目”
【发布时间】:2012-11-08 11:00:05
【问题描述】:

They said,

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。

【问题讨论】:

    标签: eclipse maven eclipse-plugin maven-plugin ijetty


    【解决方案1】:

    最后,我自己解决了。

    我错过了导出 android sdk 路径(导出 ANDROID_HOME=/opt/android/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>
    

    谢谢。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-01-10
      • 2020-07-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-09-23
      相关资源
      最近更新 更多