Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Packaging xtext project(Packaging xtext project)
Packaging xtext project [message #1731054] Mon, 02 May 2016 15:00 Go to next message
RamaRao Nandamuri is currently offline RamaRao NandamuriFriend
Messages: 120
Registered: April 2016
Senior Member
Hi,

I have done with my xtext project. Now I want to package my xtext project as plugin and make it available to my customers that they can download and install the plugin from server.

Can anyone explain what are the steps I need to perform?
Re: Packaging xtext project [message #1731056 is a reply to message #1731054] Mon, 02 May 2016 15:02 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
do you use a build system like maven? if not

- create a new feature project
- add your plugins to the feature
- use the export -> deployable features wizard


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Packaging xtext project [message #1731059 is a reply to message #1731054] Mon, 02 May 2016 15:06 Go to previous messageGo to next message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1812
Registered: July 2009
Location: Firenze, Italy
Senior Member
On 02/05/2016 17:00, RamaRao Nandamuri wrote:
> Hi,
>
> I have done with my xtext project. Now I want to package my xtext
> project as plugin and make it available to my customers that they can
> download and install the plugin from server.
> Can anyone explain what are the steps I need to perform?

you may also want to have a look at this thread

https://www.eclipse.org/forums/index.php/t/1076761/

--
Prof. Lorenzo Bettini, Computer Science, DISIA, Univ. Firenze
HOME: http://www.lorenzobettini.it
Xtext Book:
http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book


Re: Packaging xtext project [message #1731072 is a reply to message #1731056] Mon, 02 May 2016 17:04 Go to previous messageGo to next message
RamaRao Nandamuri is currently offline RamaRao NandamuriFriend
Messages: 120
Registered: April 2016
Senior Member
Hi Christian,

I have created feature project it generated feature.xml and build.properties files.

Now I right click on that generated plugin and exported that project.

But when I am trying to install that using eclipse new software install options in help menu but it is showing an error like no project exists to install.

After export it created a folder with all jars.

What I have to do now?
Re: Packaging xtext project [message #1731077 is a reply to message #1731072] Mon, 02 May 2016 17:12 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Did you deselect the categorize item when installing. What is the error you
get


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Packaging xtext project [message #1731079 is a reply to message #1731077] Mon, 02 May 2016 17:29 Go to previous messageGo to next message
RamaRao Nandamuri is currently offline RamaRao NandamuriFriend
Messages: 120
Registered: April 2016
Senior Member
Hi Christian,

I didn't see any option like categorize item.

I am getting error : No repository found
Re: Packaging xtext project [message #1731080 is a reply to message #1731079] Mon, 02 May 2016 17:31 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
are you shure you added the correct reprository and correctly do the export
please describe step by step what you do


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Packaging xtext project [message #1731081 is a reply to message #1731080] Mon, 02 May 2016 17:36 Go to previous messageGo to next message
RamaRao Nandamuri is currently offline RamaRao NandamuriFriend
Messages: 120
Registered: April 2016
Senior Member
Steps I followed:

New -> Project -> Plugin -in Development -> Feature Project and selected all xtext related projects.

Then it generate project with only two files : build.properties and feature.xml

Next: right click on feature.xml -> Export -> Deployable Features -> Select available features and Archive file option. Thats all I did. It generated zip file.

Next: Went to eclipse help menu-> install new software. Then I got no repository error
Re: Packaging xtext project [message #1731084 is a reply to message #1731081] Mon, 02 May 2016 17:45 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
did you add your plugin to feature.xml?

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Packaging xtext project [message #1731086 is a reply to message #1731084] Mon, 02 May 2016 17:46 Go to previous messageGo to next message
RamaRao Nandamuri is currently offline RamaRao NandamuriFriend
Messages: 120
Registered: April 2016
Senior Member
yes I did.
Re: Packaging xtext project [message #1731089 is a reply to message #1731086] Mon, 02 May 2016 17:56 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
and it does not work?
can you share the folder / zip created?


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Packaging xtext project [message #1731090 is a reply to message #1731086] Mon, 02 May 2016 17:57 Go to previous messageGo to next message
RamaRao Nandamuri is currently offline RamaRao NandamuriFriend
Messages: 120
Registered: April 2016
Senior Member
Can I use apache maven for build
Re: Packaging xtext project [message #1731091 is a reply to message #1731089] Mon, 02 May 2016 17:58 Go to previous messageGo to next message
RamaRao Nandamuri is currently offline RamaRao NandamuriFriend
Messages: 120
Registered: April 2016
Senior Member
No Message Body

[Updated on: Mon, 02 May 2016 18:04]

Report message to a moderator

Re: Packaging xtext project [message #1731092 is a reply to message #1731091] Mon, 02 May 2016 18:01 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
if i delesect "group items by catorgory" then i get your stuff.
you can add a category.xml as well and select it during export


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Packaging xtext project [message #1731093 is a reply to message #1731092] Mon, 02 May 2016 18:03 Go to previous messageGo to next message
RamaRao Nandamuri is currently offline RamaRao NandamuriFriend
Messages: 120
Registered: April 2016
Senior Member
Can you tell the steps I need to do?
Re: Packaging xtext project [message #1731094 is a reply to message #1731093] Mon, 02 May 2016 18:05 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
take this category.xml

https://gitlab.com/cdietrich/xtext-maven-example/blob/master/org.xtext.example.demodsl.p2repo/category.xml

replace the feature name with yours.

in the export dialog on the options page there is a box to select the category.xml


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Packaging xtext project [message #1731095 is a reply to message #1731094] Mon, 02 May 2016 18:12 Go to previous messageGo to next message
RamaRao Nandamuri is currently offline RamaRao NandamuriFriend
Messages: 120
Registered: April 2016
Senior Member
<?xml version="1.0" encoding="UTF-8"?>
<site>
<feature url="features/org.xtext.example.demodsl.sdk_1.0.0.qualifier.jar" id="com.prolifics.JPLEditor" version="1.0.0.qualifier">
<category name="com.prolifics.jpl.JPLEditor"/>
</feature>
<category-def name="com.prolifics.jpl.JPLEditor" label="JPL Editor"/>
</site>


I have added category name with my What about feature url ?
Re: Packaging xtext project [message #1731096 is a reply to message #1731095] Mon, 02 May 2016 18:13 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Simply open it with the category editor and hit the add button there

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Packaging xtext project [message #1731097 is a reply to message #1731096] Mon, 02 May 2016 18:16 Go to previous messageGo to next message
RamaRao Nandamuri is currently offline RamaRao NandamuriFriend
Messages: 120
Registered: April 2016
Senior Member
Yeah its working. Why it is asking for git username and password? Can I skip that?
Re: Packaging xtext project [message #1731098 is a reply to message #1731097] Mon, 02 May 2016 18:16 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
It should not be asking. Are you sure that is related?

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Packaging xtext project [message #1731099 is a reply to message #1731098] Mon, 02 May 2016 18:25 Go to previous message
RamaRao Nandamuri is currently offline RamaRao NandamuriFriend
Messages: 120
Registered: April 2016
Senior Member
No it is not related
Previous Topic:Showing error on run time application
Next Topic:eliminating left recursion
Goto Forum:
  


Current Time: Thu Mar 28 17:23:45 GMT 2024

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

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

Back to the top