Observed on Eclipse 4.26/m2e 2.2.1 on MacOS (but this issue has been present for several Eclipse/M2E releases)
I work on a project which has a .mvn/extensions.xml configuration file and is causing Eclipse to fail importing and/or updating the project with the following error message:
Could not lookup required component
com.google.inject.ProvisionException: Unable to provision, see the following errors:
1) Error injecting: public void org.apache.maven.eventspy.internal.EventSpyDispatcher.setEventSpies(java.util.List)
at ClassRealm[maven.ext., parent: ClassRealm[plexus.core, parent: null]] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
while locating org.apache.maven.eventspy.internal.EventSpyDispatcher
for field at org.apache.maven.internal.aether.DefaultRepositorySystemSessionFactory.eventSpyDispatcher(Unknown Source)
while locating org.apache.maven.internal.aether.DefaultRepositorySystemSessionFactory
while locating org.apache.maven.DefaultMaven
at ClassRealm[maven.ext., parent: ClassRealm[plexus.core, parent: null]] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
while locating org.apache.maven.Maven
1 error
role: org.apache.maven.Maven
roleHint:
If I comment the content of the file or remove it, Eclipse has no problem importing the project.
Attaching a small test project to reproduce the issue: m2e-lifecycle-issue.tar.gz
Observed on Eclipse 4.26/m2e 2.2.1 on MacOS (but this issue has been present for several Eclipse/M2E releases)
I work on a project which has a
.mvn/extensions.xmlconfiguration file and is causing Eclipse to fail importing and/or updating the project with the following error message:If I comment the content of the file or remove it, Eclipse has no problem importing the project.
Attaching a small test project to reproduce the issue: m2e-lifecycle-issue.tar.gz