J'ai écrit un petit plugin personnalisé maven, et il fonctionne bien .. la plupart du temps.
Lors de son utilisation, il est configuré pour fonctionner en phase de test, et je le vois en cours d'exécution, pas de problème. Maintenant, le problème vient plus tard, quand je fais mvn installation propre ou mvn installation propre dans le projet utilisant le plugin: il échoue avec un message que je ne comprends pas. Et cela vient clairement de mon plugin, parce que si je le supprime, alors mvn clean install works.
Le message d'erreur est très long et il a 4 traces similaires à celle ci-dessous.
Je ne sais pas d'où ça peut provenir, une idée?
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
Après quelques recherches, j'ai eu l'impression que cela ressemblait à une incompatibilité de version. et en effet, c’est entre la version de maven que j’utilise pour construire les applications utilisant le plugin et la version de maven core utilisée dans le plugin.
J'ai rétrogradé maven core à 3.3.9, puis j'ai reconstruit mon plugin, et cela fonctionne maintenant.
J'imagine qu'il existe des incompatibilités entre Maven Core 3.5.x et les versions précédentes de Maven.
Je vois sur https://jaxenter.com/Apache-maven-3-5-0-nothing-see-3-4-0-move-along-133180.html qu'ils ont basculé ... de l'éther Eclipse au résolveur d'artefacts Maven
mais ce qui était très déroutant, c'est que ma construction échouait non pas au moment de l'appel de mon plugin, mais après.
Pour un projet de démarrage printanier, si vous ne parvenez pas facilement à mettre à jour la version de maven pour une raison quelconque (dans mon cas, l'erreur est apparue dans les versions automatisées utilisant un conteneur docker Maven à partir d'un registre de docker personnalisé).
Spécifier une version pour le plugin spring-boot-maven-plugin a résolu le problème pour moi
<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>
J'avais rencontré le même problème lors de la mise à niveau de jdeb de 1.5 à 1.7. Et le rétrograder à 1,5 et il fixe.
<artifactId>jdeb</artifactId>
<groupId>org.vafer</groupId>
<version>1.5</version>
Spécifier une version pour le plugin spring-boot-maven-plugin a également résolu le problème. Voici ce que j'ai changé:
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>1.5.16.RELEASE</version>
J'ai eu le même problème et j'ai changé la version du plugin jdeb et cela a été corrigé.