Zipalign failed due to apklib

170 views
Skip to first unread message

Peter Miklosko

unread,
Apr 30, 2013, 11:45:37 AM4/30/13
to maven-androi...@googlegroups.com
I'm trying to setup our project build for release. The project is dependent on Apklib that beside being added as dependency to the project is "linked" through .gitmodules file since Apklib is not officially released. Zipalign will fail due to build looking for APK in linked project which is not build since it  is Apklib. Is there any way to tell build ignore/do not look for APK for account-manager/library?

[INFO] --- exec-maven-plugin:1.1.1:exec (zipalign) @ library ---
[INFO] Unable to open 'target/library.apk' as zip archive
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] FunnyProject ............................................. SUCCESS [2.262s]
[INFO] FunnyProject - Core ...................................... SUCCESS [16.797s]
[INFO] library ........................................... FAILURE [15.911s]
[INFO] FunnyProject - Application ............................... SKIPPED
[INFO] FunnyProject - Device Unit Tests ......................... SKIPPED
[INFO] ui-automator ...................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 37.667s
[INFO] Finished at: Tue Apr 30 16:37:47 BST 2013
[INFO] Final Memory: 25M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.1.1:exec (zipalign) on project library: Result of /bin/sh -c cd /Users/Peter/github/FunnyProject/account-manager/library && /Users/Peter/android-sdk-macosx/tools/zipalign -f 4 target/library.apk target/library-zipped.apk execution is: '1'. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.1.1:exec (zipalign) on project library: Result of /bin/sh -c cd /Users/Peter/github/FunnyProject/account-manager/library && /Users/Peter/android-sdk-macosx/tools/zipalign -f 4 target/library.apk target/library-zipped.apk execution is: '1'.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Result of /bin/sh -c cd /Users/Peter/github/FunnyProject/account-manager/library && /Users/Peter/android-sdk-macosx/tools/zipalign -f 4 target/library.apk target/library-zipped.apk execution is: '1'.
at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:283)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
[ERROR] 
[ERROR] Re-run Maven using the -X switch to enable full debug logging.

Reply all
Reply to author
Forward
0 new messages