web-dev-qa-db-ja.com

「org.Eclipse.aether.spi.log.Loggerを設定できません」カスタムMavenプラグイン

私は小さなカスタムMavenプラグインを作成しましたが、ほとんどの場合うまく動作します。

使用する場合、テストフェーズで実行するように構成されており、問題なく実行されています。プラグインを使用するプロジェクトでmvn clean installまたはmvn clean deployを実行すると、問題が発生します:意味をなさないメッセージで失敗します。そして、プラグインを削除すると、mvn clean installが機能するため、明らかにプラグインに由来します。

エラーメッセージは非常に長く、以下のような4つの類似したトレースがあります。

私はそれがどこから来ることができるかについて全く無知です。

 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: Sun.misc.Launcher$AppClassLoader@5c647e05] (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
19
Vincent F

いくつかの調査の後、バージョンの非互換性のように見えました。実際、プラグインを使用してアプリケーションを構築するために使用しているmavenバージョンと、プラグインで使用されているmavenコアバージョンの間です。

  • プラグインでは、依存関係として利用可能な最新のMavenコアバージョン、つまり3.5.2を使用していました
  • Maven 3.3.1でプラグインをビルドしていますが、ビルドは問題ありません。
  • しかし、Maven 3.3.1でプラグインを使用してプロジェクトをビルドすると、問題が発生します。

Mavenコアを3.3.9にダウングレードし、プラグインを再構築しましたが、現在は機能しています。

Mavenコア3.5.xと以前のMavenランタイムの間には、いくつかの非互換性があると思います。

https://jaxenter.com/Apache-maven-3-5-0-nothing-see-3-4-0-move-along-133180.html で切り替えた... Eclipse AetherからMaven Artifact Resolverへ

しかし、非常に混乱したのは、プラグインが呼び出されたときではなく、ビルドが失敗したことです。

25
Vincent F

intelliJ内で実行している場合IDEAに移動

  • ビルド->実行、展開>ビルドツール> Maven

  • Mavenディレクトリをmaven/dirとして更新します。 (maven-3.6.0)

IntelliJ idea 2018.3.1のデフォルトは3.3.9です

enter image description here

2
ibrahim karayel

スプリングブートプロジェクトの場合、何らかの理由でMavenバージョンを簡単に更新できない場合(私の場合、カスタムDockerレジストリのMaven Dockerコンテナーを使用した自動ビルドでエラーが発生しました)

プラグインのバージョンの指定spring-boot-maven-plugin私の問題を修正

    <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

Jdebを1.5から1.7にアップグレードすると、同じ問題が発生しました。 1.5にダウングレードすると修正されました。

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

プラグインspring-boot-maven-pluginのバージョンを指定すると、この問題も修正されました。変更点は次のとおりです。

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

同じ問題が発生し、jdebプラグインのバージョンを変更して修正しました。

0
anuj