Skip to main content



      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 04:09 Go to next message
Eclipse UserFriend
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 04:23 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: migrating to 2.9.x from 2.8.4 [message #1723379 is a reply to message #1723374] Mon, 15 February 2016 04:47 Go to previous messageGo to next message
Eclipse UserFriend
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 04:48] by Moderator

Re: migrating to 2.9.x from 2.8.4 [message #1723380 is a reply to message #1723379] Mon, 15 February 2016 04:50 Go to previous messageGo to next message
Eclipse UserFriend
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"?
Re: migrating to 2.9.x from 2.8.4 [message #1723390 is a reply to message #1723380] Mon, 15 February 2016 06:15 Go to previous messageGo to next message
Eclipse UserFriend
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 06:25 Go to previous messageGo to next message
Eclipse UserFriend
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)
Re: migrating to 2.9.x from 2.8.4 [message #1723394 is a reply to message #1723390] Mon, 15 February 2016 06:32 Go to previous messageGo to next message
Eclipse UserFriend
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 06:43] by Moderator

Re: migrating to 2.9.x from 2.8.4 [message #1723396 is a reply to message #1723394] Mon, 15 February 2016 06:43 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: migrating to 2.9.x from 2.8.4 [message #1723407 is a reply to message #1723396] Mon, 15 February 2016 07:52 Go to previous messageGo to next message
Eclipse UserFriend
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 08:19 Go to previous messageGo to next message
Eclipse UserFriend
there is no main

have a look at

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

[Updated on: Mon, 15 February 2016 08:19] by Moderator

Re: migrating to 2.9.x from 2.8.4 [message #1723546 is a reply to message #1723411] Tue, 16 February 2016 09:12 Go to previous messageGo to next message
Eclipse UserFriend
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 10:53 Go to previous messageGo to next message
Eclipse UserFriend
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 11:01 Go to previous messageGo to next message
Eclipse UserFriend
The workflow should be fine. What are the errors you get. Are you sure the
mwe2s deps are ok?
Re: migrating to 2.9.x from 2.8.4 [message #1724139 is a reply to message #1724136] Sun, 21 February 2016 11:28 Go to previous messageGo to next message
Eclipse UserFriend
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 11:38 Go to previous messageGo to next message
Eclipse UserFriend
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?
Re: migrating to 2.9.x from 2.8.4 [message #1724141 is a reply to message #1724140] Sun, 21 February 2016 11:40 Go to previous messageGo to next message
Eclipse UserFriend
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 11:59 Go to previous message
Eclipse UserFriend
i have no idea on that. maybe it is better to start over with a clean installation
Previous Topic:close crossreference for certain occurrences
Next Topic:Which Xtext JARs can be runtime dependencies for webapp?
Goto Forum:
  


Current Time: Wed Jul 23 15:15:17 EDT 2025

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

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

Back to the top