Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Maven configuration for Xtext
Maven configuration for Xtext [message #768368] Tue, 20 December 2011 01:52 Go to next message
Michael Ernst is currently offline Michael ErnstFriend
Messages: 49
Registered: July 2010
Member
Hello together,

I'm looking for a simple maven configuration or dummy project which uses maven for dependency management (xtext 2.1.1). After having fun with maven for six hours I have no idea what to do to get a project running without any error markers for missing dependencies. I found almost five maven repos and I still could not found all required artifacts to get an error free project.

I would appreciate it if someone could provide such a configuration so I can parse and create Xtext resources outside of eclipse.

Regards
Michael
Re: Maven configuration for Xtext [message #768572 is a reply to message #768368] Tue, 20 December 2011 11:49 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Hi,

did you have a look at the spray project?
http://code.google.com/a/eclipselabs.org/p/spray/

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Maven configuration for Xtext [message #768664 is a reply to message #768572] Tue, 20 December 2011 15:18 Go to previous messageGo to next message
Michael Ernst is currently offline Michael ErnstFriend
Messages: 49
Registered: July 2010
Member
Hi,

Thanks for your reply. I'm unsure how the spray project can help me. I'm not running in Eclipse. I already build successfully my xtext projects and model projects with tycho. I want to use them now in a normal standalone application to handle Strings from a data store as xtext resources.

Kind regards
Michael
Re: Maven configuration for Xtext [message #768666 is a reply to message #768664] Tue, 20 December 2011 15:23 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Hi,

then i still do not understand what your problem is.
can you elaborate on your problem?
if you use tycho it should give you anything you need.

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Tue, 20 December 2011 16:34]

Report message to a moderator

Re: Maven configuration for Xtext [message #768671 is a reply to message #768666] Tue, 20 December 2011 15:30 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
P.s:

if it is just about: which jars do i need to add to my jar-bunch called classpath
have a look at the "export as runnable ja file" wizard in eclipse

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Maven configuration for Xtext [message #768747 is a reply to message #768671] Tue, 20 December 2011 17:46 Go to previous messageGo to next message
Michael Ernst is currently offline Michael ErnstFriend
Messages: 49
Registered: July 2010
Member
Ok, more details what I'm trying to do.

I got my xtext project which are configured as eclipse-bundle with tycho. The artifacts are build with maven and the resulting jars are added to my local repository. The created artifact poms does only contain the name of the project, no further dependencies. Tycho does not add the downloaded artifacts from the p2 repository to my local repository.

Now I want to include these generated artifacts in another project which knows nothing from tycho or how the projects are build. I want to use them as simple artifacts but when I include them, the xtext artifacts and their dependencies are missing. So how can I get the missing artifacts into my local repository without the monkey work to add them manually?

Or did I misunderstand something?

Regards
Michael
Re: Maven configuration for Xtext [message #768753 is a reply to message #768747] Tue, 20 December 2011 18:03 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Hi,

i fear you have to do the monkey work. xtext is not really meant to be used with maven.
feel free to file enhancement requests.

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Maven configuration for Xtext [message #769006 is a reply to message #768747] Wed, 21 December 2011 08:31 Go to previous messageGo to next message
Michael Clay is currently offline Michael ClayFriend
Messages: 9
Registered: July 2009
Junior Member
'so I can parse and create Xtext resources outside of eclipse':

pls have a look at http://build.eclipse.org/common/xtend/maven/org/eclipse/xtend2/org.eclipse.xtend2.standalone/2.2.1/org.eclipse.xtend2.standalone-2.2.1.jar it includes xtext,xtend2,emf and antlr rt from http://www.eclipse.org/Xtext/xtend/documentation/index.html#MavenSupport
Re: Maven configuration for Xtext [message #769225 is a reply to message #769006] Wed, 21 December 2011 15:57 Go to previous messageGo to next message
Michael Ernst is currently offline Michael ErnstFriend
Messages: 49
Registered: July 2010
Member
Hi,
thanks for all replies. I will try this tomorrow.

Regards
Michael

Re: Maven configuration for Xtext [message #769288 is a reply to message #769225] Wed, 21 December 2011 18:27 Go to previous messageGo to next message
Michael Ernst is currently offline Michael ErnstFriend
Messages: 49
Registered: July 2010
Member
Hi,

thanks for the link. It works!!!

Regards
Michael
Re: Maven configuration for Xtext [message #780743 is a reply to message #769288] Thu, 19 January 2012 09:27 Go to previous messageGo to next message
Michael Ernst is currently offline Michael ErnstFriend
Messages: 49
Registered: July 2010
Member
It seems that this standalone build includes emf 2.6. Shouldn't it be 2.7, because I miss the org.eclipse.emf.ecore.util.Switch class?

Where to find the build configuration for this artifact?

Kind regards
Michael
Re: Maven configuration for Xtext [message #780888 is a reply to message #780743] Thu, 19 January 2012 19:44 Go to previous message
Michael Clay is currently offline Michael ClayFriend
Messages: 9
Registered: July 2009
Junior Member
it depends on your .genModel 'emf runtime' version property (i.e. set it to 2.6 and regenerate)
Previous Topic:Re-using OutlineTreeProvider??
Next Topic:How to manipulate Xtext files with the Edit Framework
Goto Forum:
  


Current Time: Fri Mar 29 05:35:27 GMT 2024

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

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

Back to the top