tycho

How to correctly specify eclipse-plugins in category.xml of tycho eclipse-repository?

杀马特。学长 韩版系。学妹 提交于 2020-01-04 04:42:13
问题 I want to create a p2 repository of some eclipse-plugins during a tycho build. My category.xml looks like this: <?xml version="1.0" encoding="UTF-8"?> <site> <feature url="plugins/<artifact-id>-1.0.0.jar" id="<artifact-id>" version="1.0.0.qualifier"> <category name="cat" /> </feature> <category-def name="cat" label="example category" /> </site> where <artifact-id> is the maven artifact id of the eclipse-plugin that shall be included in the p2 repo. When executing the maven build I get the

Dynamically adding a file to a product archive built by Tycho

送分小仙女□ 提交于 2020-01-04 02:20:11
问题 Adding a file to a product distribution archive built with Maven/Tycho is possible: see this link But how can I add a dynamically chosen file to my archive? For example this could be a data file. 回答1: The article you linked deals with removing files from a product distribution archive, which can be quite challenging. Adding files to a distribution archive is a lot simpler , and doesn't require any of the low-level p2 hacking described in the article. In order to add a file to a product

eclipse RCP 2018-09 + OpenJDK 11 + tycho: how to package an application with the JRE?

瘦欲@ 提交于 2020-01-01 09:50:50
问题 Currently I'm using tycho to build and package my eclipse RCP app with java 8 and eclipse 4.8, (JMSToolBox) For windows distributions, the tycho build process "copies" the JRE v8 (Oracle) into the distribution package in the "jre" directory via an ant task I'm in the process of upgrading to eclipse RCP 2018-09 and Java 11 (OpenJDK) 2 problems arise: OpenJDK 11 does not provide a JRE OOTB. As I do not want to bundle the 300MB of the full JDK in the distribution, is there a way to embed only

tycho-p2-repository-plugin fails with “No content specified for p2 repository”

ぃ、小莉子 提交于 2019-12-30 04:05:06
问题 I am trying to build a p2 repository using Tycho and the tycho-p2-repository-plugin in an eclipse-repository packaging type. When I run the build, it is giving me the following exception: Failed to execute goal org.eclipse.tycho:tycho-p2-repository-plugin:0.13.0:assemble-repository (default-assemble-repository) on project com.mycompany: No content specified for p2 repository Can someone point me to the cause of this problem? 回答1: You need either of the following files in the root of the

p2.inf Filtering in Tycho when building an RCP application

微笑、不失礼 提交于 2019-12-24 03:17:27
问题 I´m building an RCP application using tycho. The RCP application uses p2 and its self updateable capabilities configuring the respository in an p2.inf file. Works like a charm. Now I want to introduce a placeholder ${updatesiteurl} in the p2.inf file and replace it with the URL according to the environment for which it is built. But unforunately it get´s replaced with an empty string instead of the environment variable which I guess happens because tycho, or the p2 director, replaces some

“Unable to acquire application service” error when starting an Eclipse application built with Tycho

佐手、 提交于 2019-12-23 23:37:40
问题 This is a question which is frequently asked in the Tycho community: I want to build an Eclipse distribution/RCP application with Tycho. To do this, I have created an eclipse-repository project with a product file which specifies the features to be included. Then, I have configured the tycho-p2-director-plugin to create an installation of the product. The build runs fine, but the installation fails to start up. The log contains the following error: java.lang.IllegalStateException: Unable to

OSGi console after running tycho tests

这一生的挚爱 提交于 2019-12-23 13:05:08
问题 I wonder is there any way to tell the osgi console in eclipse not to exit after running tests with tycho-surefire-plugin? I have tried out <argLine>-Dosgi.noShutdown=true</argLine> and <appArgLine>-console -noExit</appArgLine> , but I do not get what I want. 回答1: I finally succeeded in getting to the OSGi console by starting the tycho test in the remote debug mode. However in contrast to the above mentioned solution I had to use the following configuration: <argLine>-ea -Dosgi.clean=true

How to follow test first approach with Equinox/OSGi - Tycho - Eclipse RCP environment

僤鯓⒐⒋嵵緔 提交于 2019-12-23 12:27:38
问题 I joined a project where the development is carried on Eclipse RCP platform with the use of Equinox/OSGi, Tycho. I am slowly getting familiar with classpath/classloading mechanism of OSGi, how tycho, equinox works etc. I am writing plain unit tests with the use of mocking by collecting them in test bundles (which are fragments of the target bundles) however I am encountering ClassNotFound errors, issues with attaching source code. I have seen recommendations such as running tests as rcp

Tycho build error: “… requires bundle … but it could not be found”

不想你离开。 提交于 2019-12-23 10:24:54
问题 We have an eclipse Luna plugin application which we're trying to build with Tycho. When we try to do a mvn clean verify , we're getting this type of message: [ERROR] Cannot resolve project dependencies: [ERROR] Software being installed: our.app 1.0.0.qualifier [ERROR] Missing requirement: our.app 1.0.0.qualifier requires 'bundle org.eclipse.core.runtime 3.7.0' but it could not be found When we look at the logs it appears that any Eclipse plugin that is required will give us this error, and

Is it possible to resolve dependencies in maven plugin from p2 repo

谁都会走 提交于 2019-12-23 07:05:56
问题 I am developing one maven plugin which will be used to override the default maven lifecycles and will use my code instead. I have multiple jar dependencies (eclipse and my another application plugins) for the same. I have p2 repo for those jars. How can I integrate this two to resolve all dependencies? Tycho can not be used as it can only be used for RCP application (my understanding / misunderstanding). Similar to this - question Any other workaround? 回答1: Have you had a look at this git ?