Skip to main content



      Home
Home » Modeling » TMF (Xtext) » xText Standalone maven dependencies
xText Standalone maven dependencies [message #1779756] Fri, 12 January 2018 04:44 Go to next message
Eclipse UserFriend
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 04:46 Go to previous messageGo to next message
Eclipse UserFriend
no you dont need xtend. but you dont use it. its just xtend lib.
and yes guice, guava and emf are needed
Re: xText Standalone maven dependencies [message #1779760 is a reply to message #1779757] Fri, 12 January 2018 04:57 Go to previous messageGo to next message
Eclipse UserFriend
Do you know why guice is mandatory?
Re: xText Standalone maven dependencies [message #1779764 is a reply to message #1779760] Fri, 12 January 2018 05:24 Go to previous messageGo to next message
Eclipse UserFriend
cause xtext relys on guice to do dependency injection.
Re: xText Standalone maven dependencies [message #1779772 is a reply to message #1779764] Fri, 12 January 2018 06:42 Go to previous messageGo to next message
Eclipse UserFriend
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 09:10 Go to previous messageGo to next message
Eclipse UserFriend
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 03:25 Go to previous messageGo to next message
Eclipse UserFriend
Cool i will try that :)
Re: xText Standalone maven dependencies [message #1780084 is a reply to message #1780078] Wed, 17 January 2018 04:21 Go to previous messageGo to next message
Eclipse UserFriend
well xtend.core will use more than if you just youse xtext and its deps
Re: xText Standalone maven dependencies [message #1780095 is a reply to message #1780084] Wed, 17 January 2018 05:50 Go to previous messageGo to next message
Eclipse UserFriend
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 06:09 Go to previous message
Eclipse UserFriend
yes

xtend > xtext > xbase/xtend.lib so if you use xtend.core you get more deps than you currently have
Previous Topic:Xtext Proposal Provider: Remove "super" etc. from list
Next Topic:Xtext for generating random dsl code
Goto Forum:
  


Current Time: Wed Jul 23 08:35:07 EDT 2025

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

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

Back to the top