tycho

Adding test-only dependencies for non-OSGi JUnit test in a Tycho project

霸气de小男生 提交于 2019-12-04 14:03:41
I have several OSGi-bundles that I build with Eclipse Tycho. All code dependencies are managed manifest-first. Now I want to develop some pure JUnit-Tests in order to test bundle-internal functionality. These tests do not need an OSGi-container in order to be executed, but they do need Mockito. As Mockito obviously is only needed when this non-OSGi-tests are being run and not during the execution of the bundle itself, it feels wrong to add the dependency to the MANIFEST.MF file. My current approach is that I added a project/lib-folder that holds the mockito.jar and that I added this jar to his

Maven Tycho: How to Exclude eclipsec.exe in a product build?

雨燕双飞 提交于 2019-12-04 09:43:06
I switched the build of our Eclipse RCP product from PDE-build to Maven Tycho. In addition to the main (branded) launcher executable, the product now includes the "eclipsec.exe" file. We would like to omit this console-based launcher from our product as it might confuse our customers. Is there a way to do that with Tycho? I got this answer on the tycho-users list : In your eclipse-repository project, assuming that you have a .product file, you can place another file in the same directory called .p2.inf For the contents of your p2.inf file you can put a p2 touchpoint to remove the file:

Build Eclipse cross-platform with Maven Tycho

梦想与她 提交于 2019-12-04 07:58:50
I try to compile an Eclipse Indigo RCP application with Maven and Tycho . It works fine if I just build it for one platform but if I try to build it for more the build stops working. The Problem is that I have platform specific plugins in my product file I want to build. Dependencies like org.eclipse.swt.win32.win32.x86 which are fragment plugins for org.eclipse.swt . When I add no platform specific fragments to my product the application wouldn't start because there are no platform libraries like org.eclipse.swt.win32.win32.x86. As Tycho repository we use a clone of the eclipse indigo update

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

好久不见. 提交于 2019-12-04 05:32:53
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 the equivalent of the JRE for java 11. With tycho itself? by building a specific JRE by using some JDK

Which dependencies do I need to use Mockito and JUnit in an Eclipse RCP Tycho project

☆樱花仙子☆ 提交于 2019-12-04 02:29:43
This is my current test fragment: <packaging>eclipse-test-plugin</packaging> <dependencies> <dependency> <groupId>org.junit</groupId> <artifactId>com.springsource.org.junit</artifactId> <version>4.7.0</version> </dependency> </dependencies> with the following plugins configuration: <plugin> <groupId>org.eclipse.tycho</groupId> <artifactId>tycho-surefire-plugin</artifactId> <version>${tycho.version}</version> <configuration> <dependencies> <dependency> <type>p2-installable-unit</type> <artifactId>org.eclipse.equinox.ds</artifactId> </dependency> <dependency> <type>p2-installable-unit</type>

unable to satisfy dependency from com.lmax.disruptor 3.2.0 to package sun.misc 0.0.0

感情迁移 提交于 2019-12-04 01:54:24
问题 I am developing an eclipse plugin which needs an com.lmax.disruptor.It imports sun.misc. I have this in my p2 repository but when I maven build my plugin I am getting this error "unable to satisfy dependency from com.lmax.disruptor 3.2.0 to package sun.misc 0.0.0." I have gone through the sites Resolve a dependency on package sun.misc with Tycho they are saying to create a plugin fragment but when I tried to create it and added export page as sun.misc, It is throwing an error like "package

How to use directory containing third party bundles in a Tycho build

青春壹個敷衍的年華 提交于 2019-12-04 00:38:01
In the past, we had our bundles and features on the file system and made them available in Eclipse through a target definition file with a 'Directory' location. In this way, it was easy to use them with the Export wizards in Eclipse. Now I'm trying to build an eclipse-plugin with Tycho which has third party dependencies, e.g. javax.vecmath and org.apache.commons.math . From what I know, the best way to obtain the dependencies in a Tycho build is through a p2 repository. So I'm using one for the Eclipse bundles. But for my third-party bundles, it seems that there is no p2 repository available.

How to add jar Non-osgi jar files as dependency to eclipse plugin?

倾然丶 夕夏残阳落幕 提交于 2019-12-03 21:25:36
问题 I am developing an eclipse plugin using tycho build ,It needs some non-osgi jar files as dependency.when I add the dependency in my pom file ,It does not take the dependency during maven build. So, I have tried to make a osgi bundle which contains all the required dependencies by using the following Plugin. <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <version>1.4.0</version> <extensions>true</extensions> <configuration> <manifestLocation>META-INF<

Uploading a directory using sftp with Maven

ぐ巨炮叔叔 提交于 2019-12-03 17:34:05
How can I upload a directory - Eclipse update site - using sftp with public key authentication in Maven? For background information: I'm using tycho to build an Eclipse plugin and want to get the update site ( <packaging>eclipse-update-site</packaging> ) uploaded. Asked on the Tycho users list as well . Pascal Thivent I don't get why you couldn't use mvn deploy to deploy your eclipse-update-site artifact. So, this is my suggestion. First, update your distributionManagement section: <!-- Enabling the use of FTP --> <distributionManagement> <repository> <id>update-site</id> <url>sftp://your/url<

Eclipse RCP - all possibilities to define dependencies?

我只是一个虾纸丫 提交于 2019-12-03 14:48:58
Is there somewhere a list of all possibilities, to define dependencies in an Eclipse RCP project? maybe filtered by resources? Possible dependencies: from other Eclipse RCP Plugins by package, without explicitely defining the plugin jar libs ... as you said, you can use the following directives in the MANIFEST.MF to define dependencies Require-Bundle (for depending on specified bundles) Import-Package (for depending on packages available by export from other bundles) Bundle-Classpath (for embedded paths(!) and JARs) also, when you create a Fragment , it must define its Fragment-Host , of