Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext gradle plugin error(org.xtext.xtend error.)
Xtext gradle plugin error [message #1764881] Fri, 02 June 2017 20:08 Go to next message
Deniss Artisskis is currently offline Deniss ArtisskisFriend
Messages: 5
Registered: June 2017
Junior Member
I am a bit new to Xtext and gradle nevertheless was given an assignment by my manager to create headless build for our Xtext project. I am moving step by step and running mwe2 generator to generate the language infrastructure I have no issues. The Problem comes when running generateXtext which as I understand compiles Xtend sources. In the beginning I was getting Xtend compilation errors due o the fact that I was refering to java classes from different package of the same project. I read that this was a known bug and was fixed in latest Xtext reseases. So I upgraded to Xtext 2.12.0. This issue went away for now but I am faced with the different issue :

:generateXtext FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':generateXtext'.
> Could not resolve all dependencies for configuration ':detachedConfiguration2'.
> Could not find org.eclipse.xtend:org.eclipse.xtend.core:0752.
Searched in the following locations:
xxxxx://repo1.maven.org/maven2/org/eclipse/xtend/org.eclipse.xtend.core/0752/org.eclipse.xtend.core-0752.pom
xxxx://repo1.maven.org/maven2/org/eclipse/xtend/org.eclipse.xtend.core/0752/org.eclipse.xtend.core-0752.jar
xxxx://jcenter.bintray.com/org/eclipse/xtend/org.eclipse.xtend.core/0752/org.eclipse.xtend.core-0752.pom
xxxx://jcenter.bintray.com/org/eclipse/xtend/org.eclipse.xtend.core/0752/org.eclipse.xtend.core-0752.jar
Required by:
project :

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.


I do not reference neither that version of the specified jar or even have no definition of detachedConfiguration2. What did I do wrong?
Re: Xtext gradle plugin error [message #1764989 is a reply to message #1764881] Mon, 05 June 2017 14:59 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
hmmm that seems to be this bug: you may comment on it. https://github.com/xtext/xtext-gradle-plugin/issues/81
https://github.com/xtext/xtext-gradle-plugin/issues/81


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext gradle plugin error [message #1764990 is a reply to message #1764989] Mon, 05 June 2017 15:01 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
the question would be: which is the bad class on your cp and where does it come from.

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext gradle plugin error [message #1765020 is a reply to message #1764990] Mon, 05 June 2017 18:05 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
setting the "xtext.version" property explicitely should help

e.g

subprojects {
ext.xtextVersion = '2.12.0'
}


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext gradle plugin error [message #1765029 is a reply to message #1765020] Mon, 05 June 2017 19:59 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Can you give some additional hints on what you do in the build
Do you consume Xtext p2 / eclipse artifacts?


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:org.xtext.xtend gradle plugin.
Next Topic:Cross references to non-EMF objects
Goto Forum:
  


Current Time: Thu Mar 28 21:05:39 GMT 2024

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

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

Back to the top