sajith4u / maven-android-plugin

Automatically exported from code.google.com/p/maven-android-plugin
0 stars 0 forks source link

Caused by: com.jayway.maven.plugins.android.ExecutionException: ANDROID-040-001: Could not execute: Command = /bin/sh -c cd #398

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
            <plugin>
                <groupId>com.jayway.maven.plugins.android.generation2</groupId>
                <artifactId>android-maven-plugin</artifactId>
                <version>3.6.0</version>
                <configuration>
                    <sdk>
                        <platform>17</platform>
                    </sdk>
                    <!--deleteConflictingFiles>true</deleteConflictingFiles-->
                    <undeployBeforeDeploy>true</undeployBeforeDeploy>
                </configuration>
                <extensions>true</extensions>
            </plugin>

ANDROID SDK TOOLS 22.0.1

mvn -v
Apache Maven 3.0.4 (r1232337; 2012-01-17 03:44:56-0500)
Maven home: /Users/josediaz/tools/springsource/apache-maven-3.0.4
Java version: 1.7.0_10, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_10.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: US-ASCII
OS name: "mac os x", version: "10.8.4", arch: "x86_64", family: "mac"

java -version
java version "1.7.0_10"
Java(TM) SE Runtime Environment (build 1.7.0_10-b18)
Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)
Joses-MacBook-Pro:juntosmovil josediaz$ 

Please, I cannot compile. I am getting it error:

Joses-MacBook-Pro:juntosmovil josediaz$ mvn compile
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building juntosmovil 1.0.0.BUILD-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- android-maven-plugin:3.6.0:generate-sources 
(default-generate-sources) @ juntosmovil ---
[INFO] ANDROID-904-002: Found aidl files: Count = 0
[INFO] ANDROID-904-002: Found aidl files: Count = 0
[INFO] Manifest merging disabled. Using project manifest only
[INFO] /Users/josediaz/tools/android-sdk-macosx/build-tools/17.0.0/aapt 
[package, -m, -J, 
/Users/josediaz/Documents/workspace-android/juntosmovil/target/generated-sources
/r, -M, 
/Users/josediaz/Documents/workspace-android/juntosmovil/AndroidManifest.xml, 
-S, /Users/josediaz/Documents/workspace-android/juntosmovil/res, 
--auto-add-overlay, -A, 
/Users/josediaz/Documents/workspace-android/juntosmovil/assets, -I, 
/Users/josediaz/tools/android-sdk-macosx/platforms/android-17/android.jar]
[INFO] 
/Users/josediaz/Documents/workspace-android/juntosmovil/AndroidManifest.xml:17: 
error: Error: No resource found that matches the given name (at 'theme' with 
value '@style/Theme.Sherlock.Light.DarkActionBar').
[ERROR] Error when generating sources.
org.apache.maven.plugin.MojoExecutionException: 
    at com.jayway.maven.plugins.android.phase01generatesources.GenerateSourcesMojo.generateR(GenerateSourcesMojo.java:484)
    at com.jayway.maven.plugins.android.phase01generatesources.GenerateSourcesMojo.execute(GenerateSourcesMojo.java:195)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
    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:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    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: com.jayway.maven.plugins.android.ExecutionException: 
ANDROID-040-001: Could not execute: Command = /bin/sh -c cd 
/Users/josediaz/Documents/workspace-android/juntosmovil && 
/Users/josediaz/tools/android-sdk-macosx/build-tools/17.0.0/aapt package -m -J 
/Users/josediaz/Documents/workspace-android/juntosmovil/target/generated-sources
/r -M 
/Users/josediaz/Documents/workspace-android/juntosmovil/AndroidManifest.xml -S 
/Users/josediaz/Documents/workspace-android/juntosmovil/res --auto-add-overlay 
-A /Users/josediaz/Documents/workspace-android/juntosmovil/assets -I 
/Users/josediaz/tools/android-sdk-macosx/platforms/android-17/android.jar, 
Result = 1
    at com.jayway.maven.plugins.android.CommandExecutor$Factory$DefaultCommandExecutor.executeCommand(CommandExecutor.java:246)
    at com.jayway.maven.plugins.android.phase01generatesources.GenerateSourcesMojo.generateR(GenerateSourcesMojo.java:480)
    ... 22 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.079s
[INFO] Finished at: Sun Jun 16 01:57:50 PET 2013
[INFO] Final Memory: 15M/188M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.0:generate
-sources (default-generate-sources) on project juntosmovil: 
MojoExecutionException: ANDROID-040-001: Could not execute: Command = /bin/sh 
-c cd /Users/josediaz/Documents/workspace-android/juntosmovil && 
/Users/josediaz/tools/android-sdk-macosx/build-tools/17.0.0/aapt package -m -J 
/Users/josediaz/Documents/workspace-android/juntosmovil/target/generated-sources
/r -M 
/Users/josediaz/Documents/workspace-android/juntosmovil/AndroidManifest.xml -S 
/Users/josediaz/Documents/workspace-android/juntosmovil/res --auto-add-overlay 
-A /Users/josediaz/Documents/workspace-android/juntosmovil/assets -I 
/Users/josediaz/tools/android-sdk-macosx/platforms/android-17/android.jar, 
Result = 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
Joses-MacBook-Pro:juntosmovil josediaz$ 

Original issue reported on code.google.com by jamdiazdiaz on 16 Jun 2013 at 6:57

GoogleCodeExporter commented 9 years ago
Upgrade to 3.8.2 and fix your dependencies and things should work

Original comment by mosa...@gmail.com on 31 Dec 2013 at 7:11

GoogleCodeExporter commented 9 years ago
Try to add at actionbarsherlock dependency <type>apklib</type>

Original comment by touchdia...@gmail.com on 26 Mar 2014 at 4:17

GoogleCodeExporter commented 9 years ago
@touchdiamond58 NB this was fixed in 3.8.2
- what version of the plugin are you using?
- what error are you getting?

Original comment by william....@xandar.com.au on 26 Mar 2014 at 9:46