web-dev-qa-db-de.com

"Kann org.Eclipse.aether.spi.log.Logger nicht festlegen" mit benutzerdefiniertem Maven-Plugin

Ich habe ein kleines benutzerdefiniertes Maven-Plugin geschrieben, und es läuft gut .. die meiste Zeit. 

Wenn es verwendet wird, ist es für die Ausführung in der Testphase konfiguriert, und ich sehe, dass es ausgeführt wird, kein Problem. Jetzt kommt das Problem später, wenn ich mvn clean install oder mvn clean deploy im Projekt mit dem Plugin mache. Und es kommt eindeutig von meinem Plugin, denn wenn ich es entferne, dann funktioniert mvn clean install .

Die Fehlermeldung ist sehr lang und weist 4 ähnliche Spuren auf wie die folgende.

Ich bin ziemlich ahnungslos, woher es kommen kann ... eine Idee? 

 Error injecting: private org.Eclipse.aether.spi.log.Logger org.Apache.maven.repository.internal.DefaultVersionResolver.logger
[ERROR] while locating org.Apache.maven.repository.internal.DefaultVersionResolver
[ERROR] while locating Java.lang.Object annotated with *
[ERROR] at org.Eclipse.sisu.wire.LocatorWiring
[ERROR] while locating org.Eclipse.aether.impl.VersionResolver
[ERROR] for parameter 2 at org.Eclipse.aether.internal.impl.DefaultArtifactResolver.<init>(Unknown Source)
[ERROR] while locating org.Eclipse.aether.internal.impl.DefaultArtifactResolver
[ERROR] while locating Java.lang.Object annotated with *
[ERROR] at org.Eclipse.sisu.wire.LocatorWiring
[ERROR] while locating org.Eclipse.aether.impl.ArtifactResolver
[ERROR] for parameter 2 at org.Apache.maven.repository.internal.DefaultArtifactDescriptorReader.<init>(Unknown Source)
[ERROR] while locating org.Apache.maven.repository.internal.DefaultArtifactDescriptorReader
[ERROR] while locating Java.lang.Object annotated with *
[ERROR] at org.Eclipse.sisu.wire.LocatorWiring
[ERROR] while locating org.Eclipse.aether.impl.ArtifactDescriptorReader
[ERROR] for parameter 1 at org.Eclipse.aether.internal.impl.DefaultDependencyCollector.<init>(Unknown Source)
[ERROR] while locating org.Eclipse.aether.internal.impl.DefaultDependencyCollector
[ERROR] while locating Java.lang.Object annotated with *
[ERROR] at org.Eclipse.sisu.wire.LocatorWiring
[ERROR] while locating org.Eclipse.aether.impl.DependencyCollector
[ERROR] for parameter 5 at org.Eclipse.aether.internal.impl.DefaultRepositorySystem.<init>(Unknown Source)
[ERROR] while locating org.Eclipse.aether.internal.impl.DefaultRepositorySystem
[ERROR] while locating Java.lang.Object annotated with *
[ERROR] while locating org.Apache.maven.artifact.installer.DefaultArtifactInstaller
[ERROR] at ClassRealm[plexus.core, parent: null] (via modules: org.Eclipse.sisu.wire.WireModule -> org.Eclipse.sisu.plexus.PlexusBindingModule)
[ERROR] at ClassRealm[plexus.core, parent: null] (via modules: org.Eclipse.sisu.wire.WireModule -> org.Eclipse.sisu.plexus.PlexusBindingModule)
[ERROR] while locating org.Apache.maven.artifact.installer.ArtifactInstaller
[ERROR] while locating org.Apache.maven.plugin.install.InstallMojo
[ERROR] at ClassRealm[plugin>org.Apache.maven.plugins:maven-install-plugin:2.4, parent: [email protected]] (via modules: org.Eclipse.sisu.wire.Wir
eModule -> org.Eclipse.sisu.plexus.PlexusBindingModule)
[ERROR] while locating org.Apache.maven.plugin.Mojo annotated with @com.google.inject.name.Named(value=org.Apache.maven.plugins:maven-install-plugin:2.4:install)
[ERROR] Caused by: Java.lang.IllegalArgumentException: Can not set org.Eclipse.aether.spi.log.Logger field org.Apache.maven.repository.internal.DefaultVersionResolver.log
ger to org.Eclipse.aether.internal.impl.slf4j.Slf4jLoggerFactory
[ERROR] at Sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.Java:167)
[ERROR] at Sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.Java:171)
[ERROR] at Sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.Java:81)
[ERROR] at Java.lang.reflect.Field.set(Field.Java:758)
[ERROR] at org.Eclipse.sisu.bean.BeanPropertyField.set(BeanPropertyField.Java:72)
[ERROR] at org.Eclipse.sisu.plexus.ProvidedPropertyBinding.injectProperty(ProvidedPropertyBinding.Java:48)
[ERROR] at org.Eclipse.sisu.bean.BeanInjector.injectMembers(BeanInjector.Java:52)
[ERROR] at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.Java:140)
[ERROR] at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.Java:117)
[ERROR] at com.google.inject.internal.ConstructorInjector.access$000(ConstructorInjector.Java:32)
[ERROR] at com.google.inject.internal.ConstructorInjector$1.call(ConstructorInjector.Java:92)
[ERROR] at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.Java:115)
[ERROR] at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.Java:133)
[ERROR] at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.Java:68)
[ERROR] at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.Java:90)
[ERROR] at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.Java:269)
[ERROR] at com.google.inject.internal.FactoryProxy.get(FactoryProxy.Java:56)
[ERROR] at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.Java:1009)
[ERROR] at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.Java:1066)
[ERROR] at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.Java:1005)
[ERROR] at com.google.inject.internal.SingletonScope$1.get(SingletonScope.Java:36)
[ERROR] at org.Eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.Java:81)
[ERROR] at org.Eclipse.sisu.wire.BeanProviders.firstOf(BeanProviders.Java:179)
[ERROR] at org.Eclipse.sisu.wire.BeanProviders$7.get(BeanProviders.Java:160)
[ERROR] at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.Java:86)
[ERROR] at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.Java:54)
[ERROR] at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.Java:70)
[ERROR] at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.Java:115)
[ERROR] at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.Java:133)
[ERROR] at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.Java:68)
[ERROR] at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.Java:68)
[ERROR] at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.Java:46)
[ERROR] at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.Java:38)
[ERROR] at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.Java:62)
[ERROR] at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.Java:107)
[ERROR] at com.google.inject.internal.ConstructorInjector.access$000(ConstructorInjector.Java:32)
[ERROR] at com.google.inject.internal.ConstructorInjector$1.call(ConstructorInjector.Java:92)
[ERROR] at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.Java:115)
[ERROR] at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.Java:133)
[ERROR] at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.Java:68)
[ERROR] at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.Java:90)
[ERROR] at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.Java:269)
[ERROR] at com.google.inject.internal.FactoryProxy.get(FactoryProxy.Java:56)
[ERROR] at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.Java:1009)
[ERROR] at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.Java:1066)
[ERROR] at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.Java:1005)
[ERROR] at com.google.inject.internal.SingletonScope$1.get(SingletonScope.Java:36)
[ERROR] at org.Eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.Java:81)
[ERROR] at org.Eclipse.sisu.wire.BeanProviders.firstOf(BeanProviders.Java:179)
[ERROR] at org.Eclipse.sisu.wire.BeanProviders$7.get(BeanProviders.Java:160)
[ERROR] at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.Java:86)
[ERROR] at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.Java:54)
[ERROR] at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.Java:70)
[ERROR] at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.Java:115)
[ERROR] at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.Java:133)
[ERROR] at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.Java:68)
[ERROR] at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.Java:68)
[ERROR] at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.Java:46)
[ERROR] at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.Java:38)
[ERROR] at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.Java:62)
[ERROR] at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.Java:107)
[ERROR] at com.google.inject.internal.ConstructorInjector.access$000(ConstructorInjector.Java:32)
[ERROR] at com.google.inject.internal.ConstructorInjector$1.call(ConstructorInjector.Java:92)
[ERROR] at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.Java:115)
[ERROR] at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.Java:133)
[ERROR] at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.Java:68)
[ERROR] at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.Java:90)
[ERROR] at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.Java:269)
[ERROR] at com.google.inject.internal.FactoryProxy.get(FactoryProxy.Java:56)
[ERROR] at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.Java:1009)
[ERROR] at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.Java:1066)
[ERROR] at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.Java:1005)
[ERROR] at com.google.inject.internal.SingletonScope$1.get(SingletonScope.Java:36)
[ERROR] at org.Eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.Java:81)
[ERROR] at org.Eclipse.sisu.wire.BeanProviders.firstOf(BeanProviders.Java:179)
[ERROR] at org.Eclipse.sisu.wire.BeanProviders$7.get(BeanProviders.Java:160)
[ERROR] at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.Java:86)
[ERROR] at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.Java:54)
[ERROR] at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.Java:70)
[ERROR] at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.Java:115)
[ERROR] at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.Java:133)
[ERROR] at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.Java:68)
[ERROR] at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.Java:68)
[ERROR] at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.Java:46)
[ERROR] at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.Java:38)
[ERROR] at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.Java:62)
[ERROR] at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.Java:107)
[ERROR] at com.google.inject.internal.ConstructorInjector.access$000(ConstructorInjector.Java:32)
[ERROR] at com.google.inject.internal.ConstructorInjector$1.call(ConstructorInjector.Java:92)
[ERROR] at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.Java:115)
[ERROR] at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.Java:133)
[ERROR] at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.Java:68)
[ERROR] at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.Java:90)
[ERROR] at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.Java:269)
[ERROR] at com.google.inject.internal.FactoryProxy.get(FactoryProxy.Java:56)
[ERROR] at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.Java:1009)
[ERROR] at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.Java:1059)
[ERROR] at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.Java:1005)
[ERROR] at com.google.inject.internal.SingletonScope$1.get(SingletonScope.Java:36)
[ERROR] at org.Eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.Java:81)
[ERROR] at org.Eclipse.sisu.wire.BeanProviders.firstOf(BeanProviders.Java:179)
[ERROR] at org.Eclipse.sisu.wire.BeanProviders$7.get(BeanProviders.Java:160)
[ERROR] at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.Java:86)
[ERROR] at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.Java:54)
[ERROR] at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.Java:70)
[ERROR] at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.Java:115)
[ERROR] at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.Java:133)
[ERROR] at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.Java:68)
[ERROR] at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.Java:68)
[ERROR] at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.Java:46)
[ERROR] at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.Java:38)
[ERROR] at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.Java:62)
[ERROR] at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.Java:107)
[ERROR] at com.google.inject.internal.ConstructorInjector.access$000(ConstructorInjector.Java:32)
[ERROR] at com.google.inject.internal.ConstructorInjector$1.call(ConstructorInjector.Java:92)
[ERROR] at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.Java:115)
[ERROR] at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.Java:133)
[ERROR] at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.Java:68)
[ERROR] at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.Java:90)
[ERROR] at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.Java:269)
[ERROR] at com.google.inject.internal.FactoryProxy.get(FactoryProxy.Java:56)
[ERROR] at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.Java:1009)
[ERROR] at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.Java:1066)
[ERROR] at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.Java:1005)
[ERROR] at com.google.inject.internal.SingletonScope$1.get(SingletonScope.Java:36)
[ERROR] at org.Eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.Java:81)
[ERROR] at org.Eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.Java:51)
[ERROR] at org.Eclipse.sisu.plexus.PlexusRequirements$RequirementProvider.get(PlexusRequirements.Java:250)
[ERROR] at org.Eclipse.sisu.plexus.ProvidedPropertyBinding.injectProperty(ProvidedPropertyBinding.Java:48)
[ERROR] at org.Eclipse.sisu.bean.BeanInjector.injectMembers(BeanInjector.Java:52)
[ERROR] at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.Java:140)
[ERROR] at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.Java:117)
[ERROR] at com.google.inject.internal.ConstructorInjector.access$000(ConstructorInjector.Java:32)
[ERROR] at com.google.inject.internal.ConstructorInjector$1.call(ConstructorInjector.Java:92)
[ERROR] at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.Java:115)
[ERROR] at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.Java:133)
[ERROR] at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.Java:68)
[ERROR] at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.Java:90)
[ERROR] at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.Java:269)
[ERROR] at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.Java:1009)
[ERROR] at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.Java:1066)
[ERROR] at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.Java:1005)
[ERROR] at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.Java:1044)
[ERROR] at org.Eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClass.Java:48)
[ERROR] at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.Java:86)
[ERROR] at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.Java:54)
[ERROR] at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.Java:70)
[ERROR] at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.Java:115)
[ERROR] at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.Java:133)
[ERROR] at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.Java:68)
[ERROR] at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.Java:68)
[ERROR] at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.Java:46)
[ERROR] at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.Java:46)
[ERROR] at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.Java:1066)
[ERROR] at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.Java:40)
[ERROR] at com.google.inject.internal.SingletonScope$1.get(SingletonScope.Java:36)
[ERROR] at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.Java:41)
[ERROR] at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.Java:1009)
[ERROR] at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.Java:1059)
[ERROR] at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.Java:1005)
[ERROR] at org.Eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.Java:81)
[ERROR] at org.Eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.Java:51)
[ERROR] at org.Eclipse.sisu.plexus.PlexusRequirements$RequirementProvider.get(PlexusRequirements.Java:250)
[ERROR] at org.Eclipse.sisu.plexus.ProvidedPropertyBinding.injectProperty(ProvidedPropertyBinding.Java:48)
[ERROR] at org.Eclipse.sisu.bean.BeanInjector.injectMembers(BeanInjector.Java:52)
[ERROR] at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.Java:140)
[ERROR] at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.Java:117)
[ERROR] at com.google.inject.internal.ConstructorInjector.access$000(ConstructorInjector.Java:32)
[ERROR] at com.google.inject.internal.ConstructorInjector$1.call(ConstructorInjector.Java:92)
[ERROR] at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.Java:115)
[ERROR] at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.Java:133)
[ERROR] at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.Java:68)
[ERROR] at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.Java:90)
[ERROR] at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.Java:269)
[ERROR] at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.Java:1009)
[ERROR] at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.Java:1066)
[ERROR] at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.Java:1005)
[ERROR] at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.Java:1044)
[ERROR] at org.Eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClass.Java:48)
[ERROR] at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.Java:86)
[ERROR] at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.Java:54)
[ERROR] at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.Java:70)
[ERROR] at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.Java:115)
[ERROR] at org.Eclipse.sisu.bean.BeanScheduler$Activator.onProvision(BeanScheduler.Java:176)
[ERROR] at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.Java:126)
[ERROR] at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.Java:68)
[ERROR] at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.Java:68)
[ERROR] at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.Java:46)
[ERROR] at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.Java:1009)
[ERROR] at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.Java:1059)
[ERROR] at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.Java:1005)
[ERROR] at com.google.inject.internal.SingletonScope$1.get(SingletonScope.Java:36)
[ERROR] at org.Eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.Java:81)
[ERROR] at org.Eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.Java:51)
[ERROR] at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.Java:263)
[ERROR] at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.Java:255)
[ERROR] at org.Apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.Java:543)
[ERROR] at org.Apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.Java:121)
[ERROR] at org.Apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.Java:208)
[ERROR] at org.Apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.Java:153)
[ERROR] at org.Apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.Java:145)
[ERROR] at org.Apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.Java:116)
[ERROR] at org.Apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.Java:80)
[ERROR] at org.Apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.Java:51)
[ERROR] at org.Apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.Java:128)
[ERROR] at org.Apache.maven.DefaultMaven.doExecute(DefaultMaven.Java:307)
[ERROR] at org.Apache.maven.DefaultMaven.doExecute(DefaultMaven.Java:193)
[ERROR] at org.Apache.maven.DefaultMaven.execute(DefaultMaven.Java:106)
[ERROR] at org.Apache.maven.cli.MavenCli.execute(MavenCli.Java:862)
[ERROR] at org.Apache.maven.cli.MavenCli.doMain(MavenCli.Java:286)
[ERROR] at org.Apache.maven.cli.MavenCli.main(MavenCli.Java:197)
[ERROR] at Sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at Sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.Java:62)
[ERROR] at Sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.Java:43)
[ERROR] at Java.lang.reflect.Method.invoke(Method.Java:483)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.Java:289)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.Java:229)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.Java:415)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.Java:356)
[ERROR]
[ERROR] 4 errors
[ERROR] role: org.Apache.maven.plugin.Mojo
[ERROR] roleHint: org.Apache.maven.plugins:maven-install-plugin:2.4:install
13
Vincent F

Nach einigen Nachforschungen hatte ich das Gefühl, dass es nach einer Inkompatibilität der Version aussah. In der Tat ist es zwischen der Maven-Version, die ich verwende, um die Anwendungen mit dem Plugin zu erstellen, und der Maven-Core-Version, die im Plugin verwendet wird. 

  • in meinem Plugin habe ich die neueste Maven-Core-Version verwendet, die als Abhängigkeit verfügbar ist, dh 3.5.2
  • Ich baue das Plugin mit Maven 3.3.1 und Build ist OK.
  • wenn ich jedoch ein Projekt mit dem Plugin mit Maven 3.3.1 erstelle, tritt das Problem auf. 

Ich habe Maven Core auf 3.3.9 heruntergestuft und dann mein Plugin neu aufgebaut. Jetzt funktioniert es. 

Ich denke, es gibt einige Inkompatibilitäten zwischen Maven Core 3.5.x und der vorherigen Maven-Laufzeit. 

Ich sehe auf https://jaxenter.com/Apache-maven-3-5-0-nothing-see-3-4-0-move-along-133180.html dass sie geschaltet haben ... von Eclipse Aether zu Maven Artifact Resolver

was jedoch sehr verwirrend war, war, dass mein Build nicht zum Zeitpunkt des Aufrufs meines Plugins fehlschlug, sondern danach. 

17
Vincent F

Wenn Sie für ein Spring-Boot-Projekt die Maven-Version aus irgendeinem Grund nicht problemlos aktualisieren können (in meinem Fall trat der Fehler in automatisierten Builds auf, die einen Maven-Docker-Container aus einer benutzerdefinierten Docker-Registry verwendeten).

Die Angabe einer Version für das Plugin Spring-Boot-Maven-Plugin hat das Problem für mich behoben

    <pluginManagement>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <version>1.3.5.RELEASE</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>repackage</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </pluginManagement>
1
Florian Nicolas

Das gleiche Problem hatte ich beim Upgrade von jdeb von 1.5 auf 1.7. Und downgrade es auf 1.5 und es wurde behoben.

                        <artifactId>jdeb</artifactId>
                        <groupId>org.vafer</groupId>
                        <version>1.5</version>
0
Chen Daocheng

wenn Sie in IntelliJ IDEA laufen, gehen Sie zu 

  • Build -> Ausführung, Bereitstellung> Build-Tools> Maven

  • Aktualisieren Sie das Maven-Verzeichnis als Ihr Maven/Verzeichnis. (maven-3.6.0)

Der Standardwert ist 3.3.9 für die IntelliJ-Idee 2018.3.1

 enter image description here

0
ikarayel

Die Angabe einer Version für das Plug-in-Spring-Boot-Maven-Plugin hat das Problem auch für mich behoben. Folgendes habe ich geändert:

<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>1.5.16.RELEASE</version>
0
Pankaj

Ich hatte das gleiche Problem und änderte die Version des Jdeb-Plugins.

0
anuj