Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoSuchMethodError thrown when plugin is used with Eclipse 2022-12 #811

Open
TatuLund opened this issue Mar 10, 2023 · 3 comments
Open

NoSuchMethodError thrown when plugin is used with Eclipse 2022-12 #811

TatuLund opened this issue Mar 10, 2023 · 3 comments
Labels

Comments

@TatuLund
Copy link
Contributor

Eclipse Version: 2022-12 (4.26.0) Build id: 20221201-1913

java.lang.NoSuchMethodError: 'org.apache.maven.project.MavenProject org.eclipse.m2e.core.project.configurator.ProjectConfigurationRequest.getMavenProject()'
    at com.vaadin.integration.eclipse.maven.VaadinMavenProjectConfigurator.getSourceFolders(VaadinMavenProjectConfigurator.java:46)
    at org.eclipse.m2e.jdt.AbstractSourcesGenerationProjectConfigurator.configureRawClasspath(AbstractSourcesGenerationProjectConfigurator.java:65)
    at org.eclipse.m2e.jdt.internal.AbstractJavaProjectConfigurator.invokeJavaProjectConfigurators(AbstractJavaProjectConfigurator.java:227)
    at org.eclipse.m2e.jdt.internal.AbstractJavaProjectConfigurator.configure(AbstractJavaProjectConfigurator.java:186)
    at org.eclipse.m2e.core.project.configurator.AbstractLifecycleMapping.configure(AbstractLifecycleMapping.java:123)
    at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.lambda$6(ProjectConfigurationManager.java:494)
    at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:364)
    at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:274)
    at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationManager.java:488)
    at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.lambda$4(ProjectConfigurationManager.java:416)
    at java.base/java.util.Collection.removeIf(Collection.java:576)
@TatuLund TatuLund added the bug label Mar 10, 2023
@TatuLund
Copy link
Contributor Author

Apparently our plugin is trying to use method from Maven plugin that no longer exists. This needs to be changed.

@TatuLund
Copy link
Contributor Author

Looks to be similar type of case than this one vaadin/designer#2443

@ndedobbeleer
Copy link

Similar problem on Eclipse 2023-03 when trying create new Vaadin 10+ design :

java.lang.NoSuchMethodError: 'org.eclipse.core.runtime.IPath[] org.eclipse.m2e.core.project.IMavenProjectFacade.getCompileSourceLocations()'
	at com.vaadin.designer2.eclipse.util.SourceFolderUtils.getSourceRootFolder(SourceFolderUtils.java:170)
	at com.vaadin.designer2.eclipse.wizards.NewFlowWizardPage.getJavaSourcePath(NewFlowWizardPage.java:511)
	at com.vaadin.designer2.eclipse.wizards.NewFlowWizardPage.isJavaSourcePath(NewFlowWizardPage.java:516)
	at com.vaadin.designer2.eclipse.wizards.NewFlowWizardPage.initializeFields(NewFlowWizardPage.java:431)
	at com.vaadin.designer2.eclipse.wizards.NewFlowWizardPage.createAdvancedControls(NewFlowWizardPage.java:354)
	at org.eclipse.ui.dialogs.WizardNewFileCreationPage.createControl(WizardNewFileCreationPage.java:240)
	at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:178)
	at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:744)
        ............

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants