Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » xText Standalone maven dependencies
xText Standalone maven dependencies [message #1779756] Fri, 12 January 2018 09:44 Go to next message
Dennis Melzer is currently offline Dennis MelzerFriend
Messages: 46
Registered: December 2014
Member
Hello,

Currently I have an xtext maven project without plugin support, which I use standalone. I wonder about the many dependencies at runtime. Is it possible to reduce the dependencies? Need the project really guice, guava and xtend at runtime?

Re: xText Standalone maven dependencies [message #1779757 is a reply to message #1779756] Fri, 12 January 2018 09:46 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 11973
Registered: July 2009
Senior Member
no you dont need xtend. but you dont use it. its just xtend lib.
and yes guice, guava and emf are needed


Need professional support for Xtext, Xpand, EMF?
Go to: https://xtext.itemis.com
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: xText Standalone maven dependencies [message #1779760 is a reply to message #1779757] Fri, 12 January 2018 09:57 Go to previous messageGo to next message
Dennis Melzer is currently offline Dennis MelzerFriend
Messages: 46
Registered: December 2014
Member
Do you know why guice is mandatory?
Re: xText Standalone maven dependencies [message #1779764 is a reply to message #1779760] Fri, 12 January 2018 10:24 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 11973
Registered: July 2009
Senior Member
cause xtext relys on guice to do dependency injection.

Need professional support for Xtext, Xpand, EMF?
Go to: https://xtext.itemis.com
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: xText Standalone maven dependencies [message #1779772 is a reply to message #1779764] Fri, 12 January 2018 11:42 Go to previous messageGo to next message
Dennis Melzer is currently offline Dennis MelzerFriend
Messages: 46
Registered: December 2014
Member
Okay thanks.
I thought it's just for the injection during the code generation. And during the runtime xtext don't need it.
Re: xText Standalone maven dependencies [message #1779783 is a reply to message #1779772] Fri, 12 January 2018 14:10 Go to previous messageGo to next message
Stephane Galland is currently offline Stephane GallandFriend
Messages: 117
Registered: July 2014
Location: Belfort, France
Senior Member
Dear all.

My mave dependencies for standalone application (run-time, not DSL compiler) are:
		<dependency>
			<groupId>org.eclipse.xtext</groupId>
			<artifactId>org.eclipse.xtext.xbase.lib</artifactId>
		</dependency>
		<dependency>
			<groupId>org.eclipse.xtend</groupId>
			<artifactId>org.eclipse.xtend.core</artifactId>
		</dependency>
		<dependency>
			<groupId>com.google.guava</groupId>
			<artifactId>guava</artifactId>
		</dependency>
		<dependency>
			<groupId>javax.inject</groupId>
			<artifactId>javax.inject</artifactId>
		</dependency>


You could remove Xtend if you are not using it.

All the best.
Stéphane.


Dr.habil Stéphane Galland.
Belfort-Montbéliard University of Technologie, France.

http://www.multiagent.fr/People:Galland_stephane
http://www.sarl.io
http://www.arakhne.org
Re: xText Standalone maven dependencies [message #1780078 is a reply to message #1779783] Wed, 17 January 2018 08:25 Go to previous messageGo to next message
Dennis Melzer is currently offline Dennis MelzerFriend
Messages: 46
Registered: December 2014
Member
Cool i will try that :)
Re: xText Standalone maven dependencies [message #1780084 is a reply to message #1780078] Wed, 17 January 2018 09:21 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 11973
Registered: July 2009
Senior Member
well xtend.core will use more than if you just youse xtext and its deps

Need professional support for Xtext, Xpand, EMF?
Go to: https://xtext.itemis.com
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: xText Standalone maven dependencies [message #1780095 is a reply to message #1780084] Wed, 17 January 2018 10:50 Go to previous messageGo to next message
Dennis Melzer is currently offline Dennis MelzerFriend
Messages: 46
Registered: December 2014
Member
Christian Dietrich wrote on Wed, 17 January 2018 09:21
well xtend.core will use more than if you just youse xtext and its deps


And how you said xtext use DI itself, so i think you cannot get rid of the guice dependency.

e.g. i use the IResourceValidator to validate the resource and get the erros.
The ResourceValidateImpl use injection
Re: xText Standalone maven dependencies [message #1780097 is a reply to message #1780095] Wed, 17 January 2018 11:09 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 11973
Registered: July 2009
Senior Member
yes

xtend > xtext > xbase/xtend.lib so if you use xtend.core you get more deps than you currently have


Need professional support for Xtext, Xpand, EMF?
Go to: https://xtext.itemis.com
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Xtext Proposal Provider: Remove "super" etc. from list
Next Topic:Xtext for generating random dsl code
Goto Forum:
  


Current Time: Mon May 28 03:41:27 GMT 2018

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

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

Back to the top