Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Where put dependecy in new maven/gradle project build ?
Where put dependecy in new maven/gradle project build ? [message #1722990] Wed, 10 February 2016 16:33 Go to next message
Luca Sacchi is currently offline Luca SacchiFriend
Messages: 1
Registered: February 2016
Junior Member
I was porting an exisiting pre 2.9 maven custom tyco build (that work flawlessy) to post 2.9.x, and found some difficulty with adding maven dependency that should be used by our xbase inferrer.

I created a new maven/gradle project with the new wizard, copied my grammar and iferrer code, added maven repository and dependency to the "main" submodule . I also (tried also adding to gradle), but when launched by eclipse "run as Eclipse application", inferrer code cannot find type defined in the added dependency.

I tried adding the maven deps everywhere without any luck..

Any hints ?

thanks
Luca
Re: Where put dependecy in new maven/gradle project build ? [message #1723123 is a reply to message #1722990] Thu, 11 February 2016 20:17 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14067
Registered: July 2009
Senior Member
Hi,

maven deps wont work in eclipse. eclipse still is all about plugins

- you need to add bundle dependencies to the manifest
- or unpack the maven deps and add it as jar in the runtime/classpath tab of the manifest editor

therefor you should go for build maven, layout eclipse in the wizard


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:invalid tokenType with the content assist parser
Next Topic:Regarding Resource URI
Goto Forum:
  


Current Time: Fri Sep 24 19:35:49 GMT 2021

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

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

Back to the top