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 offline Christian DietrichFriend
Messages: 14664
Registered: July 2009
Senior Member
Hi, can you please post the complete log. do you have any warnings on build.properties files?

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 186 times)
  • Attachment: build.properties
    (Size: 0.23KB, Downloaded 120 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 offline Christian DietrichFriend
Messages: 14664
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



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 offline Christian DietrichFriend
Messages: 14664
Registered: July 2009
Senior Member
And I wonder where src-gen and xtend-gen are in build.properties

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 130 times)
  • Attachment: build.properties
    (Size: 0.27KB, Downloaded 127 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 offline Christian DietrichFriend
Messages: 14664
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?


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: Tue Apr 16 12:31:10 GMT 2024

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

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

Back to the top