pitate7777777 / maven-android-plugin

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

maven-android-plugin + cloudbees #391

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello, 
I try to move my project to cloudbees CI.

The android SDK is provided by cloudbees. it's located at path 
/opt/android/android-sdk-linux

But unfortunately, I got the following stack trace with maven-android-plugin 
3.6.0:

message : Failed to execute goal 
com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.0:generate
-sources (default-generate-sources) on project wizardpager: Execution 
default-generate-sources of goal 
com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.0:generate
-sources failed: Invalid SDK: Platform/API level 16 not available. This command 
should give you all you need:
/opt/android/android-sdk-linux/tools/android update sdk --no-ui --obsolete 
--force
cause : Execution default-generate-sources of goal 
com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.0:generate
-sources failed: Invalid SDK: Platform/API level 16 not available. This command 
should give you all you need:
/opt/android/android-sdk-linux/tools/android update sdk --no-ui --obsolete 
--force
Stack trace : 
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.0:generate
-sources (default-generate-sources) on project wizardpager: Execution 
default-generate-sources of goal 
com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.0:generate
-sources failed: Invalid SDK: Platform/API level 16 not available. This command 
should give you all you need:
/opt/android/android-sdk-linux/tools/android update sdk --no-ui --obsolete 
--force
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
    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.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79)
    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.launchStandard(Launcher.java:329)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
    at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158)
    at hudson.maven.Maven3Builder.call(Maven3Builder.java:98)
    at hudson.maven.Maven3Builder.call(Maven3Builder.java:64)
    at hudson.remoting.UserRequest.perform(UserRequest.java:118)
    at hudson.remoting.UserRequest.perform(UserRequest.java:48)
    at hudson.remoting.Request$2.run(Request.java:326)
    at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:722)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution 
default-generate-sources of goal 
com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.0:generate
-sources failed: Invalid SDK: Platform/API level 16 not available. This command 
should give you all you need:
/opt/android/android-sdk-linux/tools/android update sdk --no-ui --obsolete 
--force
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
    ... 27 more
Caused by: com.jayway.maven.plugins.android.InvalidSdkException: Invalid SDK: 
Platform/API level 16 not available. This command should give you all you need:
/opt/android/android-sdk-linux/tools/android update sdk --no-ui --obsolete 
--force
    at com.jayway.maven.plugins.android.AndroidSdk.invalidSdkException(AndroidSdk.java:100)
    at com.jayway.maven.plugins.android.AndroidSdk.<init>(AndroidSdk.java:78)
    at com.jayway.maven.plugins.android.AbstractAndroidMojo.getAndroidSdk(AbstractAndroidMojo.java:1150)
    at com.jayway.maven.plugins.android.phase01generatesources.GenerateSourcesMojo.generateR(GenerateSourcesMojo.java:461)
    at com.jayway.maven.plugins.android.phase01generatesources.GenerateSourcesMojo.execute(GenerateSourcesMojo.java:195)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
    ... 28 more
channel stopped
Finished: FAILURE

I used also the parameters from command line :
clean install -Pstandard -X -Dandroid.sdk.path=/opt/android/android-sdk-linux 
-Dandroid.sdk.platform=16 

Original issue reported on code.google.com by atali.da...@gmail.com on 2 Jun 2013 at 11:07

GoogleCodeExporter commented 9 years ago
We are no longer using the issue tracking system on Google Code. Please refile 
this issue on https://github.com/jayway/maven-android-plugin/issues if you 
still have this problem with the latest release of the Android Maven Plugin

Original comment by mosa...@gmail.com on 19 May 2014 at 4:20