我目前必须为Android上的Jaspersoft Report Server构建移动客户端。为了做到这一点,我得到了现有的开源JasperMobile应用程序的源代码,认为我可以使用它作为基础/模板,并将其扩展为我们公司所需的特定功能。整理出一吨的构建问题后,我坚持最后一个一个:用Eclipse构建JasperMobile/Android的Maven
在构建我从行家以下的输出:
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building js-android-jaspermobile 1.5
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ js-android-jaspermobile ---
[INFO] Deleting C:\Development\JasperMobile\target
[INFO]
[INFO] --- android-maven-plugin:3.3.0:generate-sources
(default-generate-sources) @ js-android-jaspermobile ---
[DEBUG] Expanding: c:\DEVELOPMENT\maven\repo\com\actionbarsherlock\actionbarsherlock\4.3.1
\actionbarsherlock-4.3.1.apklib into C:\Development\JasperMobile\target\unpack\apklibs
\com.actionbarsherlock_actionbarsherlock_apklib_4.3.1
[DEBUG] expand complete
[INFO] ANDROID-904-002: Found aidl files: Count = 0
[INFO] ANDROID-904-002: Found aidl files: Count = 0
[INFO] ANDROID-904-002: Found aidl files: Count = 0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.767s
[INFO] Finished at: Tue Jul 09 14:49:37 CAT 2013
[INFO] Final Memory: 6M/11M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-
plugin:3.3.0:generate-sources (default-generate-sources) on project js-android-
jaspermobile: Execution default-generate-sources of goal
com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.3.0:generate-sources
failed: Could not find tool 'aapt'. Please provide a proper Android SDK directory path as
configuration parameter <sdk><path>...</path></sdk> in the plugin <configuration/>. As an
alternative, you may add the parameter to commandline: -Dandroid.sdk.path=... or set
environment variable ANDROID_HOME. -> [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/PluginExecutionException
我已经阅读了这个问题,它似乎是相关的到用于集成maven和android开发的eclipse插件。它在\ platform-tools \中而不是\ build-tools \中查找aapt.exe和aidl.exe。目前的解决方法似乎是为必要的文件制作符号链接(在win7中使用mklink作为管理员),但是当链接一个可执行文件时,我会得到一个破损的文件而不是链接,尽管根据cmd该操作是成功的。
请问我是一个mavin和windoze n00b所以如果有可能是另一种解决方法?也许点maven到正确的位置?其他一些符号链接工具?
谢谢大家!
如果这在命令行上失败,如上面的输出日志所示,那么这可能不是用于将maven与android开发集成的eclipse插件的问题。 –