xtext 2.9.0 beta : Problem with the new Maven project wizard

86 views
Skip to first unread message

Yariv Amar

unread,
Oct 14, 2015, 7:05:37 AM10/14/15
to Xtend Programming Language
Hi

Using the 2.9.0 beta of Xtext, when I create a new Xtext project with: "Build system = Maven", The new projects are created but maven build fails due to:
Couldn't resolve reference to JvmType 'ui.templates.CodetemplatesGeneratorFragment2'

[INFO] ------------------------------------------------------------------------
[INFO] Building org.example.web.parent 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-install-plugin:2.4:install (default-install) @ org.example.web.parent ---
[INFO] Installing C:\dev\xText\beta-2.9\workspace\org.example.web.parent\pom.xml to C:\Users\abc\.m2\repository\org\example\web\org.example.web.parent\1.0.0-SNAPSHOT\org.example.web.parent-1.0.0-SNAPSHOT.pom
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building org.example.web 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- tycho-packaging-plugin:0.23.1:build-qualifier (default-build-qualifier) @ org.example.web ---
[INFO] The project's OSGi version is 1.0.0.201510141045
[INFO] 
[INFO] --- tycho-packaging-plugin:0.23.1:validate-id (default-validate-id) @ org.example.web ---
[INFO] 
[INFO] --- tycho-packaging-plugin:0.23.1:validate-version (default-validate-version) @ org.example.web ---
[INFO] 
[INFO] >>> exec-maven-plugin:1.2.1:java (mwe2Launcher) @ org.example.web >>>
[INFO] 
[INFO] --- tycho-packaging-plugin:0.23.1:build-qualifier (default-build-qualifier) @ org.example.web ---
[INFO] The project's OSGi version is 1.0.0.201510141045
[INFO] 
[INFO] --- tycho-packaging-plugin:0.23.1:validate-id (default-validate-id) @ org.example.web ---
[INFO] 
[INFO] --- tycho-packaging-plugin:0.23.1:validate-version (default-validate-version) @ org.example.web ---
[INFO] 
[INFO] <<< exec-maven-plugin:1.2.1:java (mwe2Launcher) @ org.example.web <<<
[INFO] 
[INFO] --- exec-maven-plugin:1.2.1:java (mwe2Launcher) @ org.example.web ---
0    [org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main()] ERROR mf.mwe2.launch.runtime.Mwe2Launcher  - [XtextLinkingDiagnostic: null:108 Couldn't resolve reference to JvmType 'ui.templates.CodetemplatesGeneratorFragment2'.]
java.lang.IllegalStateException: [XtextLinkingDiagnostic: null:108 Couldn't resolve reference to JvmType 'ui.templates.CodetemplatesGeneratorFragment2'.]
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:88)
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(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:297)
at java.lang.Thread.run(Unknown Source)

Any idea how to solve this?


Thanks!
Reply all
Reply to author
Forward
0 new messages