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: 48
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: 14665
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


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: 48
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: 14665
Registered: July 2009
Senior Member
cause xtext relys on guice to do dependency injection.

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: 48
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
Stéphane Galland is currently offline Stéphane GallandFriend
Messages: 123
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.
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: 48
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: 14665
Registered: July 2009
Senior Member
well xtend.core will use more than if you just youse xtext and its deps

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: 48
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: 14665
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


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: Thu Apr 25 10:05:14 GMT 2024

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

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

Back to the top