Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Export Papyrus as standalone product
Export Papyrus as standalone product [message #1734706] Fri, 10 June 2016 12:59 Go to next message
Laurent Le Moux is currently offline Laurent Le MouxFriend
Messages: 44
Registered: June 2015
Member
Hi all,

I have difficulties to export Papyrus as a standalone product.
I downloaded Eclipse Neon, installed Papyrus and cloned the git master branch in order to the import the plug-in corresponding to the Papyrus RCP application.

In "releng/rcp" directory, I found and imported org.eclipse.papyrus.rcp.product.
But in papyrus.product contents tab, org.eclipse.rcp.configuration and org.eclipse.papyrus.rcp.feature can apparently not be resolved.

Can somebody tell me what's wrong with org.eclipse.rcp.configuration ? Am I missing something in my Eclipse installation ?

For the second one, I imported org.eclipse.papyrus.rcp.feature but its feature.xml dependencies tab fails to resolve the whole list of 30 features.
index.php/fa/26143/0/
I completed my installation. All the required features appear in my Eclipse installation. Still, they are not found in features.xml.

Any idea why ?

Regards,

Laurent
Re: Export Papyrus as standalone product [message #1734708 is a reply to message #1734706] Fri, 10 June 2016 13:18 Go to previous messageGo to next message
Benoit Maggi is currently offline Benoit MaggiFriend
Messages: 129
Registered: March 2013
Location: Bordeaux, France
Senior Member
Hi Laurent,

Can you explain what you are trying to achieve?
If it's to create a product on top of Papyrus with your custom plugins
you should probably have a look here
https://git.eclipse.org/c/papyrus/org.eclipse.papyrus-informationmodeling.git
or
https://git.eclipse.org/c/papyrus/org.eclipse.papyrus-sysml.git/

you will have example of custom product just run mvn clean install -Pproduct at the root of the repo

For your specific problem, some information
- what is the text in your problem view?
- what target platform are you using?
- the product is also incorporating elements that are not technically required by papyrus sdk but that are handy to have in papyrus product
=> did you installed UML2 SDK, Mylyn, JDT

- the integration command to build the product is
mvn clean verify -f releng/rcp/pom.xml
with specific values for
eclipse.download=...
target.suffix=eclipse
papyrus.repo.main=...

- you can download the official rcp (nightly for neon) and use it to open your workspace https://eclipse.org/papyrus/download.html

Re: Export Papyrus as standalone product [message #1734713 is a reply to message #1734708] Fri, 10 June 2016 13:49 Go to previous messageGo to next message
Laurent Le Moux is currently offline Laurent Le MouxFriend
Messages: 44
Registered: June 2015
Member
Hi benoit,

I am currently experimenting with Papyrus. I may have to work on a product on top of it. But right now, I just want to see whether I can modify the code and export the result as a product.

I have nothing displayed in my problem view. Target platform is Neon. And yes, I did install the 'handy' elements (actually all the 30 features that can not be resolved...).

Do I have to use Maven (I will if necessary !) or is possible to 'just' use papyrus.product in org.eclipse.papyrus.rcp.product to export the application with my modifications ?

Thank you for the links,

Laurent
Re: Export Papyrus as standalone product [message #1735480 is a reply to message #1734713] Mon, 20 June 2016 09:51 Go to previous messageGo to next message
Laurent Le Moux is currently offline Laurent Le MouxFriend
Messages: 44
Registered: June 2015
Member
Hi Benoit,

I read a couple of thinks about Maven & Tycho and then I tried to launch the command you specified : mvn clean verify -f releng/rcp/pom.xml.
But I get the following error message:
d:\Mes documents\workspace Neon\git\org.eclipse.papyrus>"D:\Program Files\apache-maven-3.3.9\bin\mvn" clean verify -f releng/rcp/pom.xml
[INFO] Scanning for projects...
Downloading: https://repo.eclipse.org/content/repositories/cbi-releases/org/eclipse/tycho/tycho-maven-plugin/0.23.1/tycho-maven-plugin-0.23.1.pom
Downloading: https://repo.eclipse.org/content/repositories/mylyn/org/eclipse/tycho/tycho-maven-plugin/0.23.1/tycho-maven-plugin-0.23.1.pom
Downloading: https://repo.maven.apache.org/maven2/org/eclipse/tycho/tycho-maven-plugin/0.23.1/tycho-maven-plugin-0.23.1.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Unresolveable build extension: Plugin org.eclipse.tycho:tycho-maven-plugin:0.23.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.eclipse.tycho:tycho-maven-plugin:jar:0.23.1 @ @
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project org.eclipse.papyrus:org.eclipse.papyrus.rcp.releng:1.2.0-SNAPSHOT (d:\Mes documents\workspace Neon\git\org.eclipse.papyrus\releng\rcp\pom.xml) has 1 error
[ERROR]     Unresolveable build extension: Plugin org.eclipse.tycho:tycho-maven-plugin:0.23.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.eclipse.tycho:tycho-maven-plugin:jar:0.23.1: Could not transfer artifact org.eclipse.tycho:tycho-maven-plugin:pom:0.23.1 from/to org.eclipse.cbi.maven.plugins (https://repo.eclipse.org/content/repositories/cbi-releases/): Connect to repo.eclipse.org:443 [repo.eclipse.org/198.41.30.233] failed: Connection timed out: connect -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginManagerException

Launching the command from my Maven installation or using Eclipse internal one with M2Eclipse makes no difference.
Same kind of problem with org.eclipse.papyrus-informationmodeling when issuing:
mvn clean install -Pproduct -Dtycho.localArtifacts=ignore

Any idea what's wrong ?
Regards,
Laurent

[Updated on: Mon, 20 June 2016 11:39]

Report message to a moderator

Re: Export Papyrus as standalone product [message #1735744 is a reply to message #1735480] Wed, 22 June 2016 11:50 Go to previous messageGo to next message
Benoit Maggi is currently offline Benoit MaggiFriend
Messages: 129
Registered: March 2013
Location: Bordeaux, France
Senior Member
Your log is stating org.eclipse.cbi.maven.plugins (https://repo.eclipse.org/content/repositories/cbi-releases/): Connect to repo.eclipse.org:443 [repo.eclipse.org/198.41.30.233] failed: Connection timed out:

So either you tried when eclipse.org was down (it happens, last Thursday if I remember ccorreclty) or you are behind a firewall blocking it
Re: Export Papyrus as standalone product [message #1735762 is a reply to message #1735744] Wed, 22 June 2016 14:12 Go to previous messageGo to next message
Laurent Le Moux is currently offline Laurent Le MouxFriend
Messages: 44
Registered: June 2015
Member
Hi Benoit,

It could indeed be a firewall problem... Sad

In the meantime, I had a look at org.eclipse.papyrus-informationmodeling as you suggested.
As far as I could see from the code and your slides in the wiki, it introduces a layer above Papyrus to neutralize palette & tool bar items and perform other adaptations to produce a simplified version of class diagrams.

What if I implement a custom RCP application and want to reuse - for instance - the Papyrus UML state diagram editor ?
In other words, start from a custom application and enrich it with chosen Papyrus parts instead of taking Papyrus as basis and adapt / neutralize parts.

The available Papyrus documentation, especially in the 'cookbook' directory, seems to be more about how to implement a new diagram type in Papyrus based on GMF.

In 'org.eclipse.papyrus.editor' plug-in, I see that 'org.eclipse.papyrus.editor.PapyrusMultiDiagramEditor' is declared in the 'org.eclipse.ui.editors' extension. But I did not get much further so far...
And the question also applies to properties views...

I actually lack knowledge about the 'nuts and bolts' of Papyrus architecture.
Could you give some clues ? Is there maybe an example or some documentation available for this use case ?

Kind regards,

Laurent
Re: Export Papyrus as standalone product [message #1744399 is a reply to message #1735762] Mon, 26 September 2016 14:12 Go to previous messageGo to next message
Vetle Volden-Freberg is currently offline Vetle Volden-FrebergFriend
Messages: 39
Registered: February 2016
Member
Hello Laurent. I am looking to build an RCP app myself, much in the same manner as you've mentioned. Have you had any progress on that project since this post?

Regards, Vetle VF
Re: Export Papyrus as standalone product [message #1744457 is a reply to message #1744399] Tue, 27 September 2016 08:11 Go to previous message
Laurent Le Moux is currently offline Laurent Le MouxFriend
Messages: 44
Registered: June 2015
Member
Hi Vetle,

Sorry but I can't help. I could not find my way in Papyrus internals.
Good luck,

Laurent
Previous Topic:Marte profile( Papyrus problem)
Next Topic:Missing Hyperlinks in Diagrams
Goto Forum:
  


Current Time: Wed Oct 16 02:25:52 GMT 2024

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

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

Back to the top