Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » migrating to 2.9.x from 2.8.4(Are there correct way to do this)
migrating to 2.9.x from 2.8.4 [message #1723373] Mon, 15 February 2016 09:09 Go to next message
Alex Gor is currently offline Alex GorFriend
Messages: 157
Registered: November 2014
Location: Russia
Senior Member
Hello colleagues,

I have a tools that based on xtext 2.8.4. This tools is used in production as standlone DSL IDE. For building standalone application I've created eclipse product file and save it in separate project. Now I would like to migrate to 2.9.x level of XText and use maven as build system. What there correct way for migratting from 2.8.x that use eclipse build system to 2.9.x with maven?


Thank you in advance
Alexander
Re: migrating to 2.9.x from 2.8.4 [message #1723374 is a reply to message #1723373] Mon, 15 February 2016 09:23 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
do you want to keep the old generator infrastructure or move to the new generator
- if you want to keep simply go with a normal tycho build
- if you want to use the new one: create a new Project and copy & paste your files


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
Re: migrating to 2.9.x from 2.8.4 [message #1723379 is a reply to message #1723374] Mon, 15 February 2016 09:47 Go to previous messageGo to next message
Alex Gor is currently offline Alex GorFriend
Messages: 157
Registered: November 2014
Location: Russia
Senior Member
Thanks Ditrich

I would like to use new one. What about my product project should I save it and used it in new version of project.?

And one more question When I created new project I see a few options
like

1. Eclipse Plugin
2.Generic IDE support

In case I use my tools only as standalone DSL IDE. I schall not check options one. Am I right?


Thanks
Alexander

[Updated on: Mon, 15 February 2016 09:48]

Report message to a moderator

Re: migrating to 2.9.x from 2.8.4 [message #1723380 is a reply to message #1723379] Mon, 15 February 2016 09:50 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
the question is

- do you want to target
(a) eclipse
(b) idea
(c) web
(d) no ide at all

so what is a "standalone dsl ide"?


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
Re: migrating to 2.9.x from 2.8.4 [message #1723390 is a reply to message #1723380] Mon, 15 February 2016 11:15 Go to previous messageGo to next message
Alex Gor is currently offline Alex GorFriend
Messages: 157
Registered: November 2014
Location: Russia
Senior Member
I would like to have eclipse based application. That can be run by my end user as ordinary Windows Application. On xtext 2.8,x I've create product defintion and built it using "Eclippse product export wizard" option. Then I have distribution that can be copied to end user's machine and executed
Re: migrating to 2.9.x from 2.8.4 [message #1723393 is a reply to message #1723390] Mon, 15 February 2016 11:25 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
hi,

then id chosse

- build system maven, layout plain.
- add a feature and repository project the the parent manually and configure tycho to build the feature and the product.
e.g. in https://github.com/cdietrich/xtext-maven-example (which is still 2.8.4 - but there is no difference in the feature/product part)


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
Re: migrating to 2.9.x from 2.8.4 [message #1723394 is a reply to message #1723390] Mon, 15 February 2016 11:32 Go to previous messageGo to next message
Alex Gor is currently offline Alex GorFriend
Messages: 157
Registered: November 2014
Location: Russia
Senior Member
Using workaround from my other questions from my previous question. I did maven build and have to jar files.

-- org.xtext.example.mydsl.ide-1.0.0-SNAPSHOT.jar
-- org.xtext.example.mydsl-1.0.0-SNAPSHOT.jar

UPD: strongly recomended use : set MAVEN_OPTS=-Xmx512m -XX:MaxPermSize=128m
otherwise outofmemory in maven - exceptions can be caught
Both archive don't contain attribute MainClass in manifest.
I cannot understand How can I run the application?

I use native maven support from xtext, not tycho.
In previous answer you suggest to use tycho. Does it mean that native maven support in text cannot build dsl ide? Like I did it in 2.8.4

[Updated on: Mon, 15 February 2016 11:43]

Report message to a moderator

Re: migrating to 2.9.x from 2.8.4 [message #1723396 is a reply to message #1723394] Mon, 15 February 2016 11:43 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
no.

if you want to have eclipse plugins you need:
layout plain and choose facet eclipse plugin in the wizard

if you want to run a java main you have to pimp the invocation of the assembly plugin in the pom


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
Re: migrating to 2.9.x from 2.8.4 [message #1723407 is a reply to message #1723396] Mon, 15 February 2016 12:52 Go to previous messageGo to next message
Alex Gor is currently offline Alex GorFriend
Messages: 157
Registered: November 2014
Location: Russia
Senior Member
so summary of this discussion. Righ now I'm able to build via maven simple example "Hello World" project.
but I do not understand how to create executable jar file for this application.

For example
-- Which class should be main class
-- How to added dependecy from eclipse

I've found https://github.com/xtext/maven-xtext-example. download and try to build. Build complete with success. But I have the same questions How can i make executable jar for this application?
Which jar is main and how can I run this example application

Thanks
Alexander



Re: migrating to 2.9.x from 2.8.4 [message #1723411 is a reply to message #1723407] Mon, 15 February 2016 13:19 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
there is no main

have a look at

https://maven.apache.org/plugins/maven-assembly-plugin/usage.html


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

[Updated on: Mon, 15 February 2016 13:19]

Report message to a moderator

Re: migrating to 2.9.x from 2.8.4 [message #1723546 is a reply to message #1723411] Tue, 16 February 2016 14:12 Go to previous messageGo to next message
Uli Merkel is currently offline Uli MerkelFriend
Messages: 250
Registered: June 2013
Senior Member
according to Lorenzo Bettinis book page 94, you have to modify your mwe2 file to get a Main class:

// generator API
fragment = generator.GeneratorFragment auto-inject {
generateJavaMain = true
}
Re: migrating to 2.9.x from 2.8.4 [message #1724135 is a reply to message #1723546] Sun, 21 February 2016 15:53 Go to previous messageGo to next message
Eleanor Richie is currently offline Eleanor RichieFriend
Messages: 125
Registered: August 2014
Senior Member
I am having an issue too in migrating from xtext 2.8.1 to 2.9.1 in eclipse Indigo. It has a lot of download errors in the MWE2 plugins.
Is there a clear steps to resolve dependencies for the plugins in the upgrading? I have been trying a lot of stuff related to eclipse but it was in vain Sad
Re: migrating to 2.9.x from 2.8.4 [message #1724136 is a reply to message #1724135] Sun, 21 February 2016 16:01 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
The workflow should be fine. What are the errors you get. Are you sure the
mwe2s deps are ok?


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
Re: migrating to 2.9.x from 2.8.4 [message #1724139 is a reply to message #1724136] Sun, 21 February 2016 16:28 Go to previous messageGo to next message
Eleanor Richie is currently offline Eleanor RichieFriend
Messages: 125
Registered: August 2014
Senior Member
Here is what I did:
I made sure that I have "Contact all update sites during install to find required software" and choose "Xtext Complete SDK Version 2.9.1" ... do I have to select any thing else for the EMF and the MWE2?
Re: migrating to 2.9.x from 2.8.4 [message #1724140 is a reply to message #1724139] Sun, 21 February 2016 16:38 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
guess using an up to date mwe2 would be fine as well.
but it should work with the old workflows with the old version.
thus my question: what is the error you get?


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
Re: migrating to 2.9.x from 2.8.4 [message #1724141 is a reply to message #1724140] Sun, 21 February 2016 16:40 Go to previous messageGo to next message
Eleanor Richie is currently offline Eleanor RichieFriend
Messages: 125
Registered: August 2014
Senior Member
I always have these errors:
Multiple problems occurred while downloading.
Problems downloading artifact: osgi.bundle,org.eclipse.emf.mwe.core,1.3.13.v201512160556.
Error reading signed content:C:\DOCUME~1\eleanorr\LOCALS~1\Temp\signatureFile9103073807324475615.jar
An error occurred while processing the signatures for the file: C:\DOCUME~1\eleanorr\LOCALS~1\Temp\signatureFile9103073807324475615.jar

and the same error for multiple plugins :


  • org.eclipse.emf.mwe.utils
  • org.eclipse.emf.mwe2.language,2.8.3.
  • org.eclipse.emf.mwe2.language.ui,2.8.3.
  • org.eclipse.emf.mwe2.launch,2.8.3.
  • org.eclipse.emf.mwe2.lib,2.8.3.
  • org.eclipse.emf.mwe2.runtime,2.8.3
  • org.eclipse.emf.mwe2.language.sdk,2.8.3
  • eclipse.emf.mwe2.language.source,2.8.3.

and so many others... any help please?
Re: migrating to 2.9.x from 2.8.4 [message #1724145 is a reply to message #1724141] Sun, 21 February 2016 16:59 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
i have no idea on that. maybe it is better to start over with a clean installation

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:close crossreference for certain occurrences
Next Topic:Which Xtext JARs can be runtime dependencies for webapp?
Goto Forum:
  


Current Time: Sat Sep 18 05:37:36 GMT 2021

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

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

Back to the top