yzxin / maven-android-plugin

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

Error injecting: com.jayway.maven.plugins.android.phase01generatesources.GenerateSourcesMojo #225

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I used eclipse3.7(indigo),maven 3.0.3,
2. import sample project helloflashlight to my eclipse,change min version from 
4 to 10, because I just installed version10(2.3.3)
3. mvn clean install android:deploy, then errors.

What is the expected output?
should no error

What do you see instead?
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building HelloFlashlight 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ helloflashlight ---
[INFO] Deleting 
D:\backup\开发用插件\jayway-maven-android-plugin-samples-7650963\helloflash
light\target
[INFO] 
[INFO] --- android-maven-plugin:3.0.0:generate-sources 
(default-generate-sources) @ helloflashlight ---
2011-11-28 17:03:02 org.sonatype.guice.bean.reflect.NamedClass
警告: Error injecting: 
com.jayway.maven.plugins.android.phase01generatesources.GenerateSourcesMojo
java.lang.TypeNotPresentException: Type 
com.jayway.maven.plugins.android.phase01generatesources.GenerateSourcesMojo not 
present
    at org.sonatype.guice.bean.reflect.URLClassSpace.loadClass(URLClassSpace.java:100)
    at org.sonatype.guice.bean.reflect.NamedClass.load(NamedClass.java:45)
    at org.sonatype.guice.bean.reflect.AbstractDeferredClass.get(AbstractDeferredClass.java:47)
    at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
    at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:968)
    at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1014)
    at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:964)
    at com.google.inject.Scopes$1$1.get(Scopes.java:59)
    at org.sonatype.guice.bean.locators.LazyBeanEntry.getValue(LazyBeanEntry.java:79)
    at org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:53)
    at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:243)
    at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:235)
    at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:455)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:92)
    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:319)
    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:592)
    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: java.lang.UnsupportedClassVersionError: Bad version number in .class 
file
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClassFromSelf(ClassRealm.java:386)
    at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:42)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
    at org.sonatype.guice.bean.reflect.URLClassSpace.loadClass(URLClassSpace.java:96)
    ... 33 more
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Skipping HelloFlashlight
[INFO] This project has been banned from the build due to previous failures.
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------

What version of maven-android-plugin are you using?

What are the complete output lines of "mvn -version" on your machine?

Please provide any additional information below.

Original issue reported on code.google.com by liutong...@gmail.com on 28 Nov 2011 at 9:10

GoogleCodeExporter commented 9 years ago
What java version are you using in the command line and in Eclipse?

Original comment by mosa...@gmail.com on 29 Nov 2011 at 5:20

GoogleCodeExporter commented 9 years ago
I get this issues as well.

Macintosh:helloflashlight darrens$ mvn -version
Apache Maven 3.0.3 (r1075438; 2011-02-28 17:31:09+0000)
Maven home: /usr/share/maven
Java version: 1.5.0_30, vendor: Apple Inc.
Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.5.8", arch: "i386", family: "unix"

Original comment by don.da...@gmail.com on 30 Nov 2011 at 8:14

GoogleCodeExporter commented 9 years ago
same issue when building the root:

Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
Maven home: C:\Program Files\apache-maven-3.0.3\bin\..
Java version: 1.5.0_22, vendor: Sun Microsystems Inc.
Java home: C:\Java\jdk1.5.0_22\jre
Default locale: nl_BE, platform encoding: Cp1252
OS name: "windows xp", version: "5.1", arch: "x86", family: "windows"

Original comment by sander.t...@gmail.com on 1 Dec 2011 at 1:33

GoogleCodeExporter commented 9 years ago
my platform is,
eclipse3.7(indigo),maven 3.0.3,version10(2.3.3),java1.5.0_22 or 
1.6.0_18,windows xp

Original comment by liutong...@gmail.com on 8 Dec 2011 at 4:43

GoogleCodeExporter commented 9 years ago
I experienced the same issue as well, but after changing my Java from a JRE to 
a JDK, it works! Im now using jdk1.6.0_29.

Original comment by croon...@googlemail.com on 8 Dec 2011 at 10:39

GoogleCodeExporter commented 9 years ago
(of course you need a jdk)

apart from that: I confirm that using jdk1.6.0_29, on windows XP solves (this) 
issue

Original comment by sander.t...@gmail.com on 8 Dec 2011 at 12:57

GoogleCodeExporter commented 9 years ago
Ok.. so I assume that having a JDK instead of a JRE installed fixes this for 
everybody and will close the issue.

Original comment by mosa...@gmail.com on 8 Dec 2011 at 8:08

GoogleCodeExporter commented 9 years ago
Nope this issue remains. I got jdk1.6_21 on linux

Original comment by steff.ni...@gmail.com on 29 Dec 2011 at 7:31

GoogleCodeExporter commented 9 years ago
And still with JDK 1.7. I got x64 version for both jdk's I tried. Did someone 
ever test that it works only with 32 bits version of a jdk ?

My exact stack trace is : 
[DEBUG] Configuring mojo 
com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.0.0:generate
-sources from plugin realm 
ClassRealm[plugin>com.jayway.maven.plugins.android.generation2:android-maven-plu
gin:3.0.0, parent: sun.misc.Launcher$AppClassLoader@4edfe491]
déc. 29, 2011 11:17:29 PM org.sonatype.guice.bean.reflect.NamedClass
Avertissement: Error injecting: 
com.jayway.maven.plugins.android.phase01generatesources.GenerateSourcesMojo
java.lang.TypeNotPresentException: Type 
com.jayway.maven.plugins.android.phase01generatesources.GenerateSourcesMojo not 
present
    at org.sonatype.guice.bean.reflect.URLClassSpace.loadClass(URLClassSpace.java:100)
    at org.sonatype.guice.bean.reflect.NamedClass.load(NamedClass.java:45)
    at org.sonatype.guice.bean.reflect.AbstractDeferredClass.get(AbstractDeferredClass.java:47)
    at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
    at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:968)
    at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1014)
    at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:964)
    at com.google.inject.Scopes$1$1.get(Scopes.java:59)
    at org.sonatype.guice.bean.locators.LazyBeanEntry.getValue(LazyBeanEntry.java:79)
    at org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:53)
    at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:243)
    at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:235)
    at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:455)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:92)
    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:319)
    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: java.lang.ClassNotFoundException: 
com.jayway.maven.plugins.android.phase01generatesources.GenerateSourcesMojo
    at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
    at org.sonatype.guice.bean.reflect.URLClassSpace.loadClass(URLClassSpace.java:96)
    ... 33 more

Original comment by steff.ni...@gmail.com on 29 Dec 2011 at 10:27

GoogleCodeExporter commented 9 years ago
And still with JDK 1.7. I got x64 version for both jdk's I tried. Did someone 
ever test that it works only with 32 bits version of a jdk ?

My exact stack trace is : 
[DEBUG] Configuring mojo 
com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.0.0:generate
-sources from plugin realm 
ClassRealm[plugin>com.jayway.maven.plugins.android.generation2:android-maven-plu
gin:3.0.0, parent: sun.misc.Launcher$AppClassLoader@4edfe491]
déc. 29, 2011 11:17:29 PM org.sonatype.guice.bean.reflect.NamedClass
Avertissement: Error injecting: 
com.jayway.maven.plugins.android.phase01generatesources.GenerateSourcesMojo
java.lang.TypeNotPresentException: Type 
com.jayway.maven.plugins.android.phase01generatesources.GenerateSourcesMojo not 
present
    at org.sonatype.guice.bean.reflect.URLClassSpace.loadClass(URLClassSpace.java:100)
    at org.sonatype.guice.bean.reflect.NamedClass.load(NamedClass.java:45)
    at org.sonatype.guice.bean.reflect.AbstractDeferredClass.get(AbstractDeferredClass.java:47)
    at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
    at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:968)
    at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1014)
    at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:964)
    at com.google.inject.Scopes$1$1.get(Scopes.java:59)
    at org.sonatype.guice.bean.locators.LazyBeanEntry.getValue(LazyBeanEntry.java:79)
    at org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:53)
    at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:243)
    at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:235)
    at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:455)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:92)
    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:319)
    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: java.lang.ClassNotFoundException: 
com.jayway.maven.plugins.android.phase01generatesources.GenerateSourcesMojo
    at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
    at org.sonatype.guice.bean.reflect.URLClassSpace.loadClass(URLClassSpace.java:96)
    ... 33 more

Original comment by steff.ni...@gmail.com on 29 Dec 2011 at 10:27

GoogleCodeExporter commented 9 years ago
Please reopen this issue! I get the problem too (using the JDK, not JRE)

Original comment by cow...@bbs.darktech.org on 12 Jul 2012 at 7:11

GoogleCodeExporter commented 9 years ago
Turns out this issue is specific to Java5. I can reproduce this issue when 
compiling a project using Java5, but not Java6.

Does maven-android-plugin officially require Java6 and higher?

Original comment by cow...@bbs.darktech.org on 12 Jul 2012 at 7:53

GoogleCodeExporter commented 9 years ago
Reproduced on Win7 with JDK 5. Resolved with JDK6, BUT there is one more step 
to resolve this.

During any JDK installation three java binaries copied from JRE to 
C:\Windows\System32. And in %PATH% variable System32 placed first.

I just delete those java*.exe files from System32 and issue was disappeared.

Original comment by shomeser on 11 Apr 2013 at 5:53

GoogleCodeExporter commented 9 years ago
Same problem on mac 10.8 using jdk j.6.0_51, so its not specific to 1.5.  I 
didn't think you could even compile android app using 1.5.

Original comment by e...@sandboxzilla.net on 7 Aug 2013 at 8:55

GoogleCodeExporter commented 9 years ago
Found that maven 3.10 has issues, maven 3.05 plays much better.

Original comment by e...@sandboxzilla.net on 7 Aug 2013 at 9:06

GoogleCodeExporter commented 9 years ago
maven 3.05 (I used version 3.1.1) resolved the problem on Windows 8

Original comment by rafal.sa...@gmail.com on 12 Oct 2013 at 11:38

GoogleCodeExporter commented 9 years ago
Me too: maven 3.05 (I used version 3.1.1) resolved the problem on Windows 8

Original comment by shmul...@gmail.com on 16 Oct 2013 at 10:21

GoogleCodeExporter commented 9 years ago
OSX 10.9 -- Issue resolved by switching to Maven 3.0.5

Original comment by alex.h...@teamspace.ca on 23 Oct 2013 at 1:46

GoogleCodeExporter commented 9 years ago
Confirm OSX 10.9 -- Issue resolved by switching to Maven 3.0.5. 

Original comment by alsor.zhou on 25 Oct 2013 at 2:05

GoogleCodeExporter commented 9 years ago
Confirm OSX 10.9 - Issue resolved by switching from Maven 3.1.1 back to 3.0.5

Original comment by jiangsha...@gmail.com on 26 Oct 2013 at 5:57

GoogleCodeExporter commented 9 years ago
Indeed works when switching from Maven 3.1.1 back to 3.0.5. However, some 
project impose Maven >= 3.1.1 (e.g. 
https://github.com/mosabua/maven-android-sdk-deployer). This issue is annoying. 
Any update about it? Thanks

Original comment by guitr...@gmail.com on 8 Dec 2013 at 7:44

GoogleCodeExporter commented 9 years ago
I've seen the same behaviour, with the same workaround (revert to 3.0.5).
OS: Ubuntu 12.04.3
JDK: 1.7

Original comment by silvag...@gmail.com on 30 Dec 2013 at 8:52

GoogleCodeExporter commented 9 years ago
Moving to maven 3.2.1 fixed the issue for me.
JDK 7.
Windows 7 64 bit.

Original comment by dheeren...@gmail.com on 25 Feb 2014 at 6:21

GoogleCodeExporter commented 9 years ago
For me it's not working with 3.1.1 and 3.2.1 but it's working with 3.0.5 and 
with eclipse plugin!

Original comment by flavioca...@gmail.com on 26 Feb 2014 at 10:26

GoogleCodeExporter commented 9 years ago
it's the same for me
with windows 8.1 x64 and 3.2.1 maven and also on ubuntu 12.04 and 3.2.1 maven
any ideas?

------------------------------------------
[WARNING] Error injecting: com.jayway.maven.plugins.android.phase01generatesourc
es.GenerateSourcesMojo
java.lang.NoClassDefFoundError: Lorg/sonatype/aether/RepositorySystem;
        at java.lang.Class.getDeclaredFields0(Native Method)
        at java.lang.Class.privateGetDeclaredFields(Class.java:2397)
        at java.lang.Class.getDeclaredFields(Class.java:1806)
        at com.google.inject.spi.InjectionPoint.getInjectionPoints(InjectionPoin
t.java:661)
        at com.google.inject.spi.InjectionPoint.forInstanceMethodsAndFields(Inje
ctionPoint.java:366)
        at com.google.inject.internal.ConstructorBindingImpl.getInternalDependen
cies(ConstructorBindingImpl.java:165)
        at com.google.inject.internal.InjectorImpl.getInternalDependencies(Injec
torImpl.java:609)
        at com.google.inject.internal.InjectorImpl.cleanup(InjectorImpl.java:565
)
        at com.google.inject.internal.InjectorImpl.initializeJitBinding(Injector
Impl.java:551)
        at com.google.inject.internal.InjectorImpl.createJustInTimeBinding(Injec
torImpl.java:865)
        at com.google.inject.internal.InjectorImpl.createJustInTimeBindingRecurs
ive(InjectorImpl.java:790)
        at com.google.inject.internal.InjectorImpl.getJustInTimeBinding(Injector
Impl.java:278)
        at com.google.inject.internal.InjectorImpl.getBindingOrThrow(InjectorImp
l.java:210)
        at com.google.inject.internal.InjectorImpl.getProviderOrThrow(InjectorIm
pl.java:986)
        at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java
:1019)
        at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java
:982)
        at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java
:1032)
        at org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClas
s.java:48)
        at com.google.inject.internal.ProviderInternalFactory.provision(Provider
InternalFactory.java:86)
        at com.google.inject.internal.InternalFactoryToInitializableAdapter.prov
ision(InternalFactoryToInitializableAdapter.java:55)
        at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInt
ernalFactory.java:70)
        at com.google.inject.internal.ProvisionListenerStackCallback$Provision.p
rovision(ProvisionListenerStackCallback.java:100)
        at org.eclipse.sisu.plexus.PlexusLifecycleManager.onProvision(PlexusLife
cycleManager.java:133)
        at com.google.inject.internal.ProvisionListenerStackCallback$Provision.p
rovision(ProvisionListenerStackCallback.java:109)
        at com.google.inject.internal.ProvisionListenerStackCallback.provision(P
rovisionListenerStackCallback.java:55)
        at com.google.inject.internal.ProviderInternalFactory.circularGet(Provid
erInternalFactory.java:68)
        at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(
InternalFactoryToInitializableAdapter.java:47)
        at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:99
7)
        at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.ja
va:1047)
        at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:993)
        at com.google.inject.Scopes$1$1.get(Scopes.java:59)
        at org.eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.java:82)

        at org.eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.java:5
1)
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
ner.java:260)
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
ner.java:252)
        at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfigu
redMojo(DefaultMavenPluginManager.java:462)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:120)
        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.buildProje
ct(LifecycleModuleBuilder.java:108)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:76)
        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThre
adedBuilder.build(SingleThreadedBuilder.java:51)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:116)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
356)
Caused by: java.lang.ClassNotFoundException: org.sonatype.aether.RepositorySyste
m
        at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(
SelfFirstStrategy.java:50)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadCl
ass(ClassRealm.java:259)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm
.java:235)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm
.java:227)
        ... 57 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.128 s
[INFO] Finished at: 2014-03-31T21:05:28+02:00
[INFO] Final Memory: 17M/157M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.jayway.maven.plugins.android.generation2:andr
oid-maven-plugin:3.7.0:generate-sources (default-generate-sources) on project ro
bospice-sample-core-basic: Execution default-generate-sources of goal com.jayway
.maven.plugins.android.generation2:android-maven-plugin:3.7.0:generate-sources f
ailed: A required class was missing while executing com.jayway.maven.plugins.and
roid.generation2:android-maven-plugin:3.7.0:generate-sources: Lorg/sonatype/aeth
er/RepositorySystem;
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>com.jayway.maven.plugins.android.generation2:android-m
aven-plugin:3.7.0
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/C:/Users/Epic/.m2/repository/com/jayway/maven/plugins/an
droid/generation2/android-maven-plugin/3.7.0/android-maven-plugin-3.7.0.jar
[ERROR] urls[1] = file:/C:/Users/Epic/.m2/repository/com/android/tools/common/22
.2.0/common-22.2.0.jar
[ERROR] urls[2] = file:/C:/Users/Epic/.m2/repository/com/google/guava/guava/13.0
.1/guava-13.0.1.jar
[ERROR] urls[3] = file:/C:/Users/Epic/.m2/repository/com/android/tools/dvlib/22.
2.0/dvlib-22.2.0.jar
[ERROR] urls[4] = file:/C:/Users/Epic/.m2/repository/com/android/tools/sdk-commo
n/22.2.0/sdk-common-22.2.0.jar
[ERROR] urls[5] = file:/C:/Users/Epic/.m2/repository/com/android/tools/sdklib/22
.2.0/sdklib-22.2.0.jar
[ERROR] urls[6] = file:/C:/Users/Epic/.m2/repository/org/apache/httpcomponents/h
ttpclient/4.1.1/httpclient-4.1.1.jar
[ERROR] urls[7] = file:/C:/Users/Epic/.m2/repository/org/apache/httpcomponents/h
ttpcore/4.1/httpcore-4.1.jar
[ERROR] urls[8] = file:/C:/Users/Epic/.m2/repository/commons-logging/commons-log
ging/1.1.1/commons-logging-1.1.1.jar
[ERROR] urls[9] = file:/C:/Users/Epic/.m2/repository/commons-codec/commons-codec
/1.4/commons-codec-1.4.jar
[ERROR] urls[10] = file:/C:/Users/Epic/.m2/repository/org/apache/httpcomponents/
httpmime/4.1/httpmime-4.1.jar
[ERROR] urls[11] = file:/C:/Users/Epic/.m2/repository/org/apache/commons/commons
-compress/1.0/commons-compress-1.0.jar
[ERROR] urls[12] = file:/C:/Users/Epic/.m2/repository/com/android/tools/build/bu
ilder/0.5.7/builder-0.5.7.jar
[ERROR] urls[13] = file:/C:/Users/Epic/.m2/repository/com/android/tools/build/bu
ilder-test-api/0.5.7/builder-test-api-0.5.7.jar
[ERROR] urls[14] = file:/C:/Users/Epic/.m2/repository/com/android/tools/build/bu
ilder-model/0.5.7/builder-model-0.5.7.jar
[ERROR] urls[15] = file:/C:/Users/Epic/.m2/repository/org/bouncycastle/bcpkix-jd
k15on/1.48/bcpkix-jdk15on-1.48.jar
[ERROR] urls[16] = file:/C:/Users/Epic/.m2/repository/org/bouncycastle/bcprov-jd
k15on/1.48/bcprov-jdk15on-1.48.jar
[ERROR] urls[17] = file:/C:/Users/Epic/.m2/repository/com/android/tools/build/ma
nifest-merger/22.2.0/manifest-merger-22.2.0.jar
[ERROR] urls[18] = file:/C:/Users/Epic/.m2/repository/net/sf/kxml/kxml2/2.3.0/kx
ml2-2.3.0.jar
[ERROR] urls[19] = file:/C:/Users/Epic/.m2/repository/com/android/tools/ddms/ddm
lib/22.2.0/ddmlib-22.2.0.jar
[ERROR] urls[20] = file:/C:/Users/Epic/.m2/repository/com/android/tools/layoutli
b/layoutlib-api/22.2.0/layoutlib-api-22.2.0.jar
[ERROR] urls[21] = file:/C:/Users/Epic/.m2/repository/com/android/tools/lint/lin
t/22.2.0/lint-22.2.0.jar
[ERROR] urls[22] = file:/C:/Users/Epic/.m2/repository/com/android/tools/lint/lin
t-api/22.2.0/lint-api-22.2.0.jar
[ERROR] urls[23] = file:/C:/Users/Epic/.m2/repository/com/android/tools/external
/lombok/lombok-ast/0.2.1/lombok-ast-0.2.1.jar
[ERROR] urls[24] = file:/C:/Users/Epic/.m2/repository/org/ow2/asm/asm-tree/4.0/a
sm-tree-4.0.jar
[ERROR] urls[25] = file:/C:/Users/Epic/.m2/repository/com/android/tools/lint/lin
t-checks/22.2.0/lint-checks-22.2.0.jar
[ERROR] urls[26] = file:/C:/Users/Epic/.m2/repository/org/ow2/asm/asm-analysis/4
.0/asm-analysis-4.0.jar
[ERROR] urls[27] = file:/C:/Users/Epic/.m2/repository/org/sonatype/sisu/sisu-inj
ect-bean/2.1.1/sisu-inject-bean-2.1.1.jar
[ERROR] urls[28] = file:/C:/Users/Epic/.m2/repository/org/sonatype/sisu/sisu-gui
ce/2.9.4/sisu-guice-2.9.4-no_aop.jar
[ERROR] urls[29] = file:/C:/Users/Epic/.m2/repository/org/codehaus/plexus/plexus
-interpolation/1.14/plexus-interpolation-1.14.jar
[ERROR] urls[30] = file:/C:/Users/Epic/.m2/repository/org/codehaus/plexus/plexus
-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
[ERROR] urls[31] = file:/C:/Users/Epic/.m2/repository/org/sonatype/plexus/plexus
-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[32] = file:/C:/Users/Epic/.m2/repository/org/sonatype/plexus/plexus
-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[33] = file:/C:/Users/Epic/.m2/repository/org/apache/maven/maven-arc
hiver/2.5/maven-archiver-2.5.jar
[ERROR] urls[34] = file:/C:/Users/Epic/.m2/repository/emma/emma/2.0.5312/emma-2.
0.5312.jar
[ERROR] urls[35] = file:/C:/Users/Epic/.m2/repository/org/codehaus/plexus/plexus
-archiver/2.3/plexus-archiver-2.3.jar
[ERROR] urls[36] = file:/C:/Users/Epic/.m2/repository/junit/junit/3.8.1/junit-3.
8.1.jar
[ERROR] urls[37] = file:/C:/Users/Epic/.m2/repository/org/codehaus/plexus/plexus
-io/2.0.6/plexus-io-2.0.6.jar
[ERROR] urls[38] = file:/C:/Users/Epic/.m2/repository/org/codehaus/plexus/plexus
-utils/3.0.10/plexus-utils-3.0.10.jar
[ERROR] urls[39] = file:/C:/Users/Epic/.m2/repository/commons-jxpath/commons-jxp
ath/1.3/commons-jxpath-1.3.jar
[ERROR] urls[40] = file:/C:/Users/Epic/.m2/repository/commons-io/commons-io/2.4/
commons-io-2.4.jar
[ERROR] urls[41] = file:/C:/Users/Epic/.m2/repository/org/ow2/asm/asm/4.1/asm-4.
1.jar
[ERROR] urls[42] = file:/C:/Users/Epic/.m2/repository/commons-lang/commons-lang/
2.6/commons-lang-2.6.jar
[ERROR] urls[43] = file:/C:/Users/Epic/.m2/repository/org/sonatype/aether/aether
-util/1.13.1/aether-util-1.13.1.jar
[ERROR] urls[44] = file:/C:/Users/Epic/.m2/repository/com/github/rtyley/android-
screenshot-paparazzo/1.9/android-screenshot-paparazzo-1.9.jar
[ERROR] urls[45] = file:/C:/Users/Epic/.m2/repository/com/madgag/animated-gif-li
b/1.0/animated-gif-lib-1.0.jar
[ERROR] urls[46] = file:/C:/Users/Epic/.m2/repository/com/github/rtyley/android-
screenshot-celebrity/1.9/android-screenshot-celebrity-1.9.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[project>com.octo.android.rob
ospice:robospice-sample-core-basic:1.0.0-SNAPSHOT, parent: ClassRealm[maven.api,
 parent: null]]]
[ERROR]
[ERROR] -----------------------------------------------------: org.sonatype.aeth
er.RepositorySystem
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/AetherClassNotFound
-------------------------------

Original comment by inertial...@gmail.com on 31 Mar 2014 at 7:21

GoogleCodeExporter commented 9 years ago
You are using android-maven-plugin-3.7.0 which is very old.
Try it against 3.9.0-rc.1

Original comment by william....@xandar.com.au on 31 Mar 2014 at 9:59

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
dowgrade Apache maven to 3.0.5 solved the issue.

Original comment by zairi...@gmail.com on 7 Mar 2015 at 10:55

GoogleCodeExporter commented 9 years ago
@zairi.ou that would only be true if you are using a *very* old version of 
android-maven-plugin

It is not an issue with version 4.1.1 (and hasn't been an issue since ??3.9.0??)

Original comment by william....@xandar.com.au on 7 Mar 2015 at 11:36