gwt-plugins / gwt-eclipse-plugin

GWT Eclipse Plugin Documentation
http://gwt-plugins.github.io/documentation/
Eclipse Public License 1.0
114 stars 47 forks source link

Maven support is broken in Eclipse 2022-06 #450

Open protoism opened 1 year ago

protoism commented 1 year ago

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)
...