Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Type Resolving Error on Maven Build
Type Resolving Error on Maven Build [message #1777437] Wed, 29 November 2017 11:37 Go to next message
Kian Schmalenbach is currently offline Kian SchmalenbachFriend
Messages: 4
Registered: November 2017
Junior Member
Hi all,
for Java code analysis, we developed an Xtext language "JCQL" representing different types of the Java language elements.
However, when trying to build our XText project using Maven, we ran into the following error:
[INFO] --- xtend-maven-plugin:2.11.0:compile (default) @ de.uni.jcql ---
[ERROR] 
ERROR: 	ModelGenerator.xtend - /home/jenkins/home/workspace/JCQL/jcql_bootstrap/de.uni.jcql/src/de/uni/jcql/generator/prolog/ModelGenerator.xtend
3: de.uni.jcql.AbstractElement cannot be resolved to a type.
[ERROR] 
ERROR: 	ModelGenerator.xtend - /home/jenkins/home/workspace/JCQL/jcql_bootstrap/de.uni.jcql/src/de/uni/jcql/generator/prolog/ModelGenerator.xtend
4: de.uni.jcql.AbstractStatement cannot be resolved to a type.
[ERROR] 
ERROR: 	ModelGenerator.xtend - /home/jenkins/home/workspace/JCQL/jcql_bootstrap/de.uni.jcql/src/de/uni/jcql/generator/prolog/ModelGenerator.xtend
5: de.uni.jcql.ClassElement cannot be resolved to a type.
[ERROR] 
ERROR: 	ModelGenerator.xtend - /home/jenkins/home/workspace/JCQL/jcql_bootstrap/de.uni.jcql/src/de/uni/jcql/generator/prolog/ModelGenerator.xtend
6: de.uni.jcql.EnumElement cannot be resolved to a type.
[ERROR] 
ERROR: 	ModelGenerator.xtend - /home/jenkins/home/workspace/JCQL/jcql_bootstrap/de.uni.jcql/src/de/uni/jcql/generator/prolog/ModelGenerator.xtend
7: de.uni.jcql.FieldElement cannot be resolved to a type.
[ERROR] 
ERROR: 	ModelGenerator.xtend - /home/jenkins/home/workspace/JCQL/jcql_bootstrap/de.uni.jcql/src/de/uni/jcql/generator/prolog/ModelGenerator.xtend
8: de.uni.jcql.JTArrayCall cannot be resolved to a type.
[ERROR] 
ERROR: 	ModelGenerator.xtend - /home/jenkins/home/workspace/JCQL/jcql_bootstrap/de.uni.jcql/src/de/uni/jcql/generator/prolog/ModelGenerator.xtend
9: de.uni.jcql.JTArrayCreator cannot be resolved to a type.
[ERROR] 
ERROR: 	ModelGenerator.xtend - /home/jenkins/home/workspace/JCQL/jcql_bootstrap/de.uni.jcql/src/de/uni/jcql/generator/prolog/ModelGenerator.xtend
10: de.uni.jcql.JTAssignment cannot be resolved to a type.
[ERROR] 
ERROR: 	ModelGenerator.xtend - /home/jenkins/home/workspace/JCQL/jcql_bootstrap/de.uni.jcql/src/de/uni/jcql/generator/prolog/ModelGenerator.xtend
11: de.uni.jcql.JTAssignmentExpression cannot be resolved to a type.
[ERROR] 
ERROR: 	ModelGenerator.xtend - /home/jenkins/home/workspace/JCQL/jcql_bootstrap/de.uni.jcql/src/de/uni/jcql/generator/prolog/ModelGenerator.xtend
12: de.uni.jcql.JTBinaryOperation cannot be resolved to a type.

This type of error occurs for all elements of our XText language, so apparently there is an error in our Maven configuration.
I appended both the global pom.xml and the pom.xml of the jcql project. Any help of what needs to be reconfigured in order to being able resolving the types is highly appreciated.

Thanks in advance,
Kian
Re: Type Resolving Error on Maven Build [message #1777511 is a reply to message #1777437] Wed, 29 November 2017 20:12 Go to previous messageGo to next message
Christian Dietrich is currently online Christian DietrichFriend
Messages: 12038
Registered: July 2009
Senior Member
Hi, can you please post the complete log. do you have any warnings on build.properties files?

Need professional support for Xtext, Xpand, EMF?
Go to: https://xtext.itemis.com
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Type Resolving Error on Maven Build [message #1777530 is a reply to message #1777511] Thu, 30 November 2017 00:27 Go to previous messageGo to next message
Kian Schmalenbach is currently offline Kian SchmalenbachFriend
Messages: 4
Registered: November 2017
Junior Member
I have attached the complete log file and the build.properties file. Eclipse does not show any warnings inside it.
  • Attachment: log.txt
    (Size: 200.62KB, Downloaded 34 times)
  • Attachment: build.properties
    (Size: 0.23KB, Downloaded 31 times)
Re: Type Resolving Error on Maven Build [message #1777536 is a reply to message #1777530] Thu, 30 November 2017 06:00 Go to previous messageGo to next message
Christian Dietrich is currently online Christian DietrichFriend
Messages: 12038
Registered: July 2009
Senior Member
Sorry without having the code no idea
So can you share the code eg in an hello world example


It looks like you are using an existing metamodel
But you have no dependency to that external metamodel plugin.
I wonder how that can work even in eclipse.
I don't see what you have customized for that



Need professional support for Xtext, Xpand, EMF?
Go to: https://xtext.itemis.com
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Type Resolving Error on Maven Build [message #1777537 is a reply to message #1777536] Thu, 30 November 2017 06:07 Go to previous messageGo to next message
Christian Dietrich is currently online Christian DietrichFriend
Messages: 12038
Registered: July 2009
Senior Member
And I wonder where src-gen and xtend-gen are in build.properties

Need professional support for Xtext, Xpand, EMF?
Go to: https://xtext.itemis.com
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Type Resolving Error on Maven Build [message #1777565 is a reply to message #1777537] Thu, 30 November 2017 11:35 Go to previous messageGo to next message
Kian Schmalenbach is currently offline Kian SchmalenbachFriend
Messages: 4
Registered: November 2017
Junior Member
Thanks for your reply. I added src-gen and xtend-gen to build.properties and now the type resolving errors are apparently solved. Instead, we are now receiving compiler errors, as can be seen in the attached log file. (When compiling the same project at the same location in Eclipse, there are no errors.)

If you son't have another idea on what else could be configured wrong, I will ask for permission to share the code.
  • Attachment: log.txt
    (Size: 63.19KB, Downloaded 26 times)
  • Attachment: build.properties
    (Size: 0.27KB, Downloaded 25 times)
Re: Type Resolving Error on Maven Build [message #1777574 is a reply to message #1777565] Thu, 30 November 2017 12:07 Go to previous messageGo to next message
Christian Dietrich is currently online Christian DietrichFriend
Messages: 12038
Registered: July 2009
Senior Member
maybe a java version problem? is superclass an interface? maybe you compile against java 5 somewhere?
what is configured in settings and manifest and classpath files?


Need professional support for Xtext, Xpand, EMF?
Go to: https://xtext.itemis.com
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Type Resolving Error on Maven Build [message #1777690 is a reply to message #1777574] Fri, 01 December 2017 15:20 Go to previous message
Kian Schmalenbach is currently offline Kian SchmalenbachFriend
Messages: 4
Registered: November 2017
Junior Member
Thank you very much. It was indeed a Java-1.5 entry in one MANIFEST.MF file. The build is working now.
Previous Topic:Create intermediate EMF model for additional Validation and for Code generation
Next Topic:What is the license of the generated code
Goto Forum:
  


Current Time: Thu Jun 21 16:30:15 GMT 2018

Powered by FUDForum. Page generated in 0.02356 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top