Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mosabua/6872813 to your computer and use it in GitHub Desktop.
Save mosabua/6872813 to your computer and use it in GitHub Desktop.
[INFO]
[INFO] --- android-maven-plugin:3.7.1-SNAPSHOT:ndk-build (default) @ mixed-java-native-with-apklib-dependency ---
[INFO] Creating native output directory /Volumes/mac-data/dev/github/jayway/maven-android-plugin-samples/native/mixed-java-native-with-apklib-dependency/obj/local/armeabi
Downloading: http://localhost:8081/nexus/content/groups/public/com/jayway/maven/plugins/android/generation2/samples/native-apklib/1.0.0-SNAPSHOT/native-apklib-1.0.0-SNAPSHOT.har
[ERROR] Error during build: Error while resolving header archive file for: native-apklib
org.apache.maven.plugin.MojoExecutionException: Error while resolving header archive file for: native-apklib
at com.jayway.maven.plugins.android.phase05compile.MakefileHelper.createMakefileFromArtifacts(MakefileHelper.java:226)
at com.jayway.maven.plugins.android.phase05compile.NdkBuildMojo.execute(NdkBuildMojo.java:392)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
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:317)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
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:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error while resolving artifact: Could not find artifact com.jayway.maven.plugins.android.generation2.samples:native-apklib:har:1.0.0-SNAPSHOT in nexus (http://localhost:8081/nexus/content/groups/public)
at com.jayway.maven.plugins.android.common.AetherHelper.resolveArtifact(AetherHelper.java:94)
at com.jayway.maven.plugins.android.phase05compile.MakefileHelper.createMakefileFromArtifacts(MakefileHelper.java:193)
... 22 more
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not find artifact com.jayway.maven.plugins.android.generation2.samples:native-apklib:har:1.0.0-SNAPSHOT in nexus (http://localhost:8081/nexus/content/groups/public)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:459)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:262)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:239)
at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:295)
at com.jayway.maven.plugins.android.common.AetherHelper.resolveArtifact(AetherHelper.java:82)
... 23 more
Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact com.jayway.maven.plugins.android.generation2.samples:native-apklib:har:1.0.0-SNAPSHOT in nexus (http://localhost:8081/nexus/content/groups/public)
at org.eclipse.aether.connector.wagon.WagonRepositoryConnector$6.wrap(WagonRepositoryConnector.java:1012)
at org.eclipse.aether.connector.wagon.WagonRepositoryConnector$6.wrap(WagonRepositoryConnector.java:1004)
at org.eclipse.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:725)
at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)
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:724)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Android SDK ApiDemos - Parent ..................... SUCCESS [0.525s]
[INFO] Android SDK ApiDemos - Application ................ SUCCESS [44.000s]
[INFO] Android SDK ApiDemos - Instrumentation Test ....... SUCCESS [25.945s]
[INFO] HelloFlashlight ................................... SUCCESS [1.847s]
[INFO] MorseFlash - Parent ............................... SUCCESS [0.009s]
[INFO] MorseFlash - Library .............................. SUCCESS [2.442s]
[INFO] MorseFlash - App .................................. SUCCESS [3.583s]
[INFO] MorseFlash - Instrumentation Test ................. SUCCESS [19.496s]
[INFO] Scala Application ................................. SUCCESS [39.074s]
[INFO] Library Projects Parent ........................... SUCCESS [0.053s]
[INFO] Library Projects - Library 1 ...................... SUCCESS [1.065s]
[INFO] Library Projects - Library 2 ...................... SUCCESS [1.027s]
[INFO] Library Projects - Main App ....................... SUCCESS [9.719s]
[INFO] Library Projects - Instrumentation Tests .......... SUCCESS [40.828s]
[INFO] Android Archive AR Creation - Library 1 .......... SUCCESS [1.426s]
[INFO] Android NDK - Aggregator .......................... SUCCESS [0.039s]
[INFO] Android NDK - Native Sample ....................... SUCCESS [1.302s]
[INFO] Android NDK - Java With Native Dependency ......... SUCCESS [1.623s]
[INFO] Android NDK - Native Static Library ............... SUCCESS [0.552s]
[INFO] Android NDK - Native Code including Static Library SUCCESS [0.799s]
[INFO] Android NDK - Java With Native Statically Linked Dependency SUCCESS [2.430s]
[INFO] Android NDK - Java With Native Library ............ SUCCESS [1.818s]
[INFO] Android NDK - Java Transient Dependency ........... SUCCESS [1.629s]
[INFO] Android NDK - Java Native Mixed Sample ............ SUCCESS [2.022s]
[INFO] Android NDK - Native APKLIB Sample ................ SUCCESS [1.287s]
[INFO] Android NDK - apklib With Native APKLIB Dependency SUCCESS [1.126s]
[INFO] Android NDK - Java With Native APKLIB Dependency .. SUCCESS [2.014s]
[INFO] Android NDK - Java Native Mixed with APKLIB Dependency Sample FAILURE [2.600s]
[INFO] Android Support V4 Demos .......................... SKIPPED
[INFO] Android Maven Plugin Samples - Aggregator ......... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3:34.895s
[INFO] Finished at: Mon Oct 07 11:32:22 PDT 2013
[INFO] Final Memory: 50M/399M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.7.1-SNAPSHOT:ndk-build (default) on project mixed-java-native-with-apklib-dependency: Error while resolving header archive file for: native-apklib: Error while resolving artifact: Could not find artifact com.jayway.maven.plugins.android.generation2.samples:native-apklib:har:1.0.0-SNAPSHOT in nexus (http://localhost:8081/nexus/content/groups/public) -> [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 :mixed-java-native-with-apklib-dependency
Manfreds-MacBook-Pro:maven-android-plugin-samples manfred$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment