Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » org.eclipse.xtext.ecore
org.eclipse.xtext.ecore [message #1072282] Mon, 22 July 2013 12:59 Go to next message
Udo Walker is currently offline Udo WalkerFriend
Messages: 81
Registered: July 2009
Member
Hi,

where can I get the library org.eclipse.xtext.ecore from?

I want to add it as Maven dependency.

I found version 2.0.0 but this is not compatible (signing problems) with version 2.4.2 of Xtend lib.

I used this dependeny description:

<dependency>
<groupId>org.eclipse.xtext</groupId>
<artifactId>org.eclipse.xtext.ecore</artifactId>
<version>[0,)</version>
<optional>false</optional>
</dependency>

And it gave me version 2.0.0. But if I add the version 2.4.2 instead of [0,) then I get errors that it is not found.

Which repository has the correct version?

With regards,
Udo

Re: org.eclipse.xtext.ecore [message #1072317 is a reply to message #1072282] Mon, 22 July 2013 14:07 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Think you have To feed everything To maven yourself

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: org.eclipse.xtext.ecore [message #1072333 is a reply to message #1072317] Mon, 22 July 2013 14:40 Go to previous messageGo to next message
Udo Walker is currently offline Udo WalkerFriend
Messages: 81
Registered: July 2009
Member
Hmm,

I could find this here in the Maven repo:

<dependency>
  <groupId>org.eclipse.xtend</groupId>
  <artifactId>org.eclipse.xtend.standalone</artifactId>
  <version>2.4.2</version>
</dependency>


This includes almost everthing but not the package org.eclipse.xtext.ecore I mentioned above.

If I use this to load my DSL file:

public static void main(String[] args) {
  new org.eclipse.emf.mwe.utils.StandaloneSetup().setPlatformUri("../");
  Injector injector = new ConfigDslStandaloneSetup().createInjectorAndDoEMFRegistration();
  ...


I get the error

Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/xtext/ecore/EcoreSupport
...
Caused by: java.lang.ClassNotFoundException: org.eclipse.xtext.ecore.EcoreSupport


Then I added the above mentioned lib and then I get the error

Exception in thread "main" com.google.inject.internal.util.$ComputationException: com.google.inject.internal.util.$ComputationException: java.lang.SecurityException: class "org.eclipse.xtext.resource.impl.DefaultResourceServiceProvider"'s signer information does not match signer information of other classes in the same package

...
Caused by: com.google.inject.internal.util.$ComputationException: java.lang.SecurityException: class "org.eclipse.xtext.resource.impl.DefaultResourceServiceProvider"'s signer information does not match signer information of other classes in the same package



and I suppose this comes from the wrong version number of org.eclipse.xtext.ecore.

How should I use the StandaloneSetup ?
Re: org.eclipse.xtext.ecore [message #1072341 is a reply to message #1072333] Mon, 22 July 2013 14:57 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi,

i dont think it is a good idea to missuse Xtext standalone. you may have a look at on
https://github.com/aphethean/xtext-maven-examples
how to build a standlone thingy yourself.


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: org.eclipse.xtext.ecore [message #1073201 is a reply to message #1072341] Wed, 24 July 2013 10:03 Go to previous messageGo to next message
Udo Walker is currently offline Udo WalkerFriend
Messages: 81
Registered: July 2009
Member
Hi,

I looked at the link you gave me. After some time to learn the dependencies of the different pom and MANIFEST.MF files I got it running in my project with Xtext 2.4.2 (the example uses version 2.3.0 and in that version the dependent plug-ins are differently named).

I have following question:

How to mix different DSLs which are based on Xtext? Do I have to build for each DSL a standalone package?

I think it is very difficult to keep the versions of all dependent libs compatible all the time.

What is your strategy?
Re: org.eclipse.xtext.ecore [message #1073203 is a reply to message #1073201] Wed, 24 July 2013 10:09 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi I'd mix it all into one.
Or feed a maven repo with eclipse and Xtext plugins and use Tycho to
build the dsl plugins and manage maven deps on my own

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: org.eclipse.xtext.ecore [message #1073634 is a reply to message #1073203] Thu, 25 July 2013 08:03 Go to previous messageGo to next message
Udo Walker is currently offline Udo WalkerFriend
Messages: 81
Registered: July 2009
Member
I thought about the problem and I'd repackage all Xtext dependencies in 1 standalone jar. Then for each DSL I would package it itself as Maven dep.

That gives me the question: Would it be possible to package the Xtext deps as standalone from the Xtext project team themselves?

Everybody who uses Xtext DSLs in a Maven environment has to repackage it himself but it would be great if everybody could just add the dep from Maven central (or Fornax) to her project and just build the own DSL as Maven dep only.


Is this a feature request?

Re: org.eclipse.xtext.ecore [message #1073638 is a reply to message #1073634] Thu, 25 July 2013 08:06 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi please file a enhancement request for that

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:dot notation and scoping
Next Topic:Parser seems to confuse assignments / Grammar problem
Goto Forum:
  


Current Time: Thu Apr 18 00:31:40 GMT 2024

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

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

Back to the top