gwt-eclipse-plugin icon indicating copy to clipboard operation
gwt-eclipse-plugin copied to clipboard

Maven support is broken in Eclipse 2022-06

Open protoism opened this issue 2 years ago • 0 comments

The plugin is now built against 2022-09 and m2e 2.x, and we lost compatibility with m2e 1.x, due to a few methods renamed (possibly none)

The changed methods are:

ProjectConfigurationRequest.getMavenProject() -> ProjectConfigurationRequest.mavenProject() ProjectConfigurationRequest.getMavenProjectFacade() -> ProjectConfigurationRequest.mavenProjectFacade()

Using Plugin 4.0.0 with maven projects Eclipse logs stack traces such as this one:

java.lang.NoSuchMethodError: 'org.apache.maven.project.MavenProject org.eclipse.m2e.core.project.configurator.ProjectConfigurationRequest.mavenProject()'
	at com.google.gdt.eclipse.maven.configurators.AbstracMavenProjectConfigurator.configure(AbstracMavenProjectConfigurator.java:74)
	at com.google.gdt.eclipse.maven.configurators.MavenProjectConfigurator.configure(MavenProjectConfigurator.java:124)
	at org.eclipse.m2e.core.project.configurator.AbstractLifecycleMapping.configure(AbstractLifecycleMapping.java:125)
	at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.lambda$6(ProjectConfigurationManager.java:475)
...

protoism avatar Feb 17 '23 01:02 protoism