NoSuchMethodError when running Maven [message #1801946] |
Tue, 29 January 2019 12:37  |
Eclipse User |
|
|
|
Dear all,
I am facing an error when running Maven for my dsl and I don't what to check anymore. The error is the following:
org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main()] ERROR mf.mwe2.launch.runtime.Mwe2Launcher - com.google.common.base.Throwables.throwIfUnchecked(Ljava/lang/Throwable;)V
java.lang.NoSuchMethodError: com.google.common.base.Throwables.throwIfUnchecked(Ljava/lang/Throwable;)V
at org.eclipse.xtext.resource.DerivedStateAwareResource.installDerivedState(DerivedStateAwareResource.java:251)
at org.eclipse.xtext.xbase.resource.BatchLinkableResource.getContents(BatchLinkableResource.java:148)
at org.eclipse.xtext.xtext.generator.XtextGeneratorResourceSetInitializer.each(XtextGeneratorResourceSetInitializer.java:169)
at org.eclipse.xtext.xtext.generator.XtextGeneratorResourceSetInitializer.registerGenModels(XtextGeneratorResourceSetInitializer.java:155)
at org.eclipse.xtext.xtext.generator.XtextGeneratorResourceSetInitializer.initialize(XtextGeneratorResourceSetInitializer.java:44)
at org.eclipse.xtext.xtext.generator.XtextGeneratorLanguage.initialize(XtextGeneratorLanguage.java:218)
at org.eclipse.xtext.xtext.generator.StandardLanguage.initialize(StandardLanguage.java:189)
at org.eclipse.xtext.xtext.generator.XtextGenerator.initialize(XtextGenerator.java:185)
at org.eclipse.xtext.xtext.generator.XtextGenerator.checkConfigurationInternal(XtextGenerator.java:139)
at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent2.checkConfiguration(AbstractWorkflowComponent2.java:21)
at org.eclipse.emf.mwe.core.lib.Mwe2Bridge.preInvoke(Mwe2Bridge.java:65)
at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.preInvoke(AbstractWorkflowComponent.java:197)
at org.eclipse.emf.mwe2.runtime.workflow.AbstractCompositeWorkflowComponent.preInvoke(AbstractCompositeWorkflowComponent.java:29)
at org.eclipse.emf.mwe2.runtime.workflow.Workflow.run(Workflow.java:18)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:102)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:62)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:52)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.run(Mwe2Launcher.java:78)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main(Mwe2Launcher.java:36)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:293)
at java.lang.Thread.run(Thread.java:748)
Outside Maven, everything is working.
The method which fires the exception is in the class path and the containing dependence is listed in the target file.
The POM file is the automatically generated through the Xtext Wizard.
I have a guess that there can be some problem surrounding the POM file, since, after I have created the project, I created a separated Xcore project for the metamodel and introduced it to the DSL context. But still, the error message does not suggest some problem in there...
I'm attaching the POM files of the relevant parts.
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06666 seconds