tycho

Build local eclipse plugins using tycho pointing to local p2 repository

风格不统一 提交于 2019-12-05 11:45:19
I am creating some Eclipse plugin and features that require third-party plugins and features. In order to include these dependencies into my project, I created a p2 layout repository. Note: My p2 artifacts are not Maven project... However, I am using Maven style building. Here is the pom.xml for the p2 repository <properties> <tycho-version>0.18.0</tycho-version> </properties> <repositories> <repository> <id>eclipse-platform-m6</id> <layout>p2</layout> <url>http://download.eclipse.org/eclipse/updates/3.8</url> </repository> </repositories> <build> <plugins> <plugin> <groupId>org.eclipse.tycho

How to use the same target platform multiple sub-projects in Tycho

旧时模样 提交于 2019-12-05 08:55:54
Is it possible to use the same .target file for every maven subproject? Snippet from the parent .pom file <groupId>root.server</groupId> <artifactId>root.server</artifactId> Snippet from child .pom file <groupId>child.project</groupId> <artifactId>child.project.parent</artifactId> <target> <artifact> <groupId>root.server</groupId> <artifactId>root.server</artifactId> <version>${project.version}</version> <classifier>targetfile</classifier> </artifact> </target> When I try a "mvn clean install" in the child project I get an exception: Could not resolve target platform specification artifact .

Uploading a directory using sftp with Maven

我的梦境 提交于 2019-12-05 02:41:46
问题 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. 回答1: 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

Bundle JRE with RCP plugin based application by tycho maven

橙三吉。 提交于 2019-12-05 02:22:27
问题 I have the RCP application that based on plugin model. I would like to put JRE to final artifacts that created by Maven+Tycho. I tried to follow to these recomendation including-a-jre-in-a-tycho-build bundle-jre-along-with-your-product I created one more feature project where required JRE is put to folder in root of the feature project. In my case this jre/win64. The I add feature to product definition. But I don't understand How shall I notify maven process that responsible for product

Resolve a dependency on package sun.misc with Tycho

风流意气都作罢 提交于 2019-12-05 02:12:48
问题 I try to convert a Buckminster-based build to Tycho (0.19.0). In our (mirrored) target platform we have the bundle com.lmax.disruptor from http://lmax-exchange.github.io/disruptor/ which imports the package "sun.misc" When I try to build our own bundle (that depends on com.lmax.disruptor) I get: [ERROR] Missing requirement: com.lmax.disruptor 3.2.0 requires 'package sun.misc 0.0.0' but it could not be found I checked many Tycho tutorials but none of them contained such a dependency. Is there

Cannot resolve Mockito dependency in a Tycho project [duplicate]

余生长醉 提交于 2019-12-05 00:25:42
问题 This question already has an answer here : Closed 7 years ago . Possible Duplicate: How to reference mockito within tycho? I am trying to get a test feature project building with Tycho, but it fails to resolve dependencies listed in my pom from the Maven central repository that is listed in my parent pom. Here is the relevant part from my parent pom: <properties> <tycho-version>0.12.0</tycho-version> </properties> <repositories> <repository> <id>helios</id> <layout>p2</layout> <url>http:/

Eclipse RCP - all possibilities to define dependencies?

时光怂恿深爱的人放手 提交于 2019-12-04 23:36:20
问题 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 ... 回答1: 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

How to analyze low-level OSGi problems during tycho test execution?

纵然是瞬间 提交于 2019-12-04 21:07:59
问题 When executing JUnit test with tycho-surefire-plugin, tycho forks an equinox runtime. In rare cases it may happen that some bundles in the OSGi test runtime cannot be resolved/started (e.g. package uses conflicts). If you read the debug log (maven CLI option -X ), you will find something like !ENTRY org.eclipse.osgi 2 0 2012-10-08 16:41:31.635 !MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists: !SUBENTRY 1 org

How can I use Eclipse p2 repositories from Maven?

烈酒焚心 提交于 2019-12-04 17:07:38
I am trying to create an Eclipse based setup where Eclipse projects are Maven based. So it should all work with Maven whether or not Eclipse is used. I have a dependencies on various Eclipse project libraries, with more to be added. I want to use p2 repositories, and I've managed to pull an Eclipse EMF library and turn it into a jar following this example: Use dependencies from Eclipse p2 repository in a regular Maven build? The problem is, I could not find a way of streamlining the process. I'd need to manually install the re-packaged dependency from the question given above to local Maven

Eclipse cannot find dependencies of a plugin built with Maven Tycho

自古美人都是妖i 提交于 2019-12-04 17:01:33
I am using Maven Tycho to compile my projects which are structured like this : - plugin1 - plugin2 (depends on plugin1) - plugin3 (depends on plugin1 & 2) - plugin4 (depends on plugin1) - plugin5 (depends on plugin1 & 4) - plugin6 (depends on all previous plugins) - plugin7 (depends on all previous plugins) {all these plugins are compiled as eclipse-plugin} - feature1 (contains all previous plugins) {eclipse-feature} - updatesite1 {eclipse-repository} - generalproject (contains only the parent pom) I compile this via Eclipse (maven install), everything works and i can access my local