tycho

Mac distribution of Eclipse RCP application built with Tycho on Windows doesn't start

廉价感情. 提交于 2019-12-01 17:12:40
问题 I have built an Eclipse RCP application (Indigo) with Tycho. The build is run on a Win 7, 64-bit machine. The parent POM includes: <plugin> <groupId>org.eclipse.tycho</groupId> <artifactId>target-platform-configuration</artifactId> <version>${tycho-version}</version> <configuration> <resolver>p2</resolver> <environment> <os>linux</os> <ws>gtk</ws> <arch>x86_64</arch> </environment> <environment> <os>win32</os> <ws>win32</ws> <arch>x86_64</arch> </environment> <environment> <os>macosx</os> <ws

Tycho without p2

不想你离开。 提交于 2019-12-01 10:52:38
Is it possible to use Tycho without using p2 to download dependencies or publish the resulting artifacts in? I already have a Maven repository with all the dependencies and I don't want to have a p2 repository with duplicate artifacts just to compile these osgi projects. I also want to publish the resulting artifacts in that same maven repository so that i can have a real centralized repository instead of a maven repository and a p2 repository So basically, i want to remove the need for p2 from my build. I know one option would be to use POM-first tools instead of tycho, but the problem is the

Tycho without p2

蓝咒 提交于 2019-12-01 09:27:20
问题 Is it possible to use Tycho without using p2 to download dependencies or publish the resulting artifacts in? I already have a Maven repository with all the dependencies and I don't want to have a p2 repository with duplicate artifacts just to compile these osgi projects. I also want to publish the resulting artifacts in that same maven repository so that i can have a real centralized repository instead of a maven repository and a p2 repository So basically, i want to remove the need for p2

Tycho fails to resolve reference from product to eclipse-feature from a different reactor build

ぐ巨炮叔叔 提交于 2019-12-01 01:18:36
I've got two reactor builds: The first one builds some bundles and an according feature. After a successful clean install the feature is in my local Maven repo. Tycho has also generated p2 meta information ... -p2artifacts.xml and ... -p2metadata.xml The second build contains a feature-based product which is referencing the feature built in the first reactor. When trying a clean install Tycho complains about an unresolved feature - the one of the other reactor build. Failed to execute goal org.eclipse.tycho:tycho-p2-repository-plugin:0.12.0:assemble-repository [...] ["Unable to satisfy

When automating Eclipse's “Export as Feature”, Maven/Tycho doesn't see my plugin

对着背影说爱祢 提交于 2019-11-30 23:14:29
I have a plugin and a feature project in my workspace. When I export the feature manually via File > Export As > Feature everything works well. I'm trying to write an automatic plugin building and exporting script to get rid of this chore. I converted feature project to Maven project and filled pom.xml with: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>MyProject</groupId> <artifactId

Tycho fails to resolve reference from product to eclipse-feature from a different reactor build

♀尐吖头ヾ 提交于 2019-11-30 19:31:26
问题 I've got two reactor builds: The first one builds some bundles and an according feature. After a successful clean install the feature is in my local Maven repo. Tycho has also generated p2 meta information ... -p2artifacts.xml and ... -p2metadata.xml The second build contains a feature-based product which is referencing the feature built in the first reactor. When trying a clean install Tycho complains about an unresolved feature - the one of the other reactor build. Failed to execute goal

Tycho and Eclipse: How to resolve OSGI dependencies to my own bundles at development time within Eclipse, without opening all of them in the IDE

白昼怎懂夜的黑 提交于 2019-11-30 00:47:35
Background My Eclipse RCP application is built using Tycho. It consists of multiple components (in the form of OSGi bundles/Eclipse plug-ins). One of these component contains the product file and materializes the product. There is a reactor POM at the application root, which builds all components in order, but I also want to build other components independently (using mvn deploy ) . Building such a single component works as follows: Retrieve the latest versions of all the component's dependencies from our company (p2) repository. Build the component. Deploy the component to our company

Custom pom.xml filename in Maven multimodule for Tycho

谁都会走 提交于 2019-11-29 14:21:51
I have a project with a couple of dozen Eclipse plugins, all inter-related and living in different subfolders. The build was converted to a multi-module manifest-first Tycho build a couple of years ago and it works quite well. One of the plugins is rather key, and can also be built as a standalone Java app, which doesn't use an Eclipse runtime. Currently it has its own POM file ( pom-standalone.xml ) so that Jenkins can build the standalone app separately and the Tycho build knows nothing about it - the pom-standalone just lists the previously-built plugin jars (thanks Tycho!) and Eclipse

How to reference mockito within tycho?

狂风中的少年 提交于 2019-11-29 07:07:41
I'm currently trying to get my build (~30 bundles) done by tycho. I faced some confusing problems when using Mockito in my unit tests. I created an eclipse-test-plugin as fragment project to the tested bundle. Since tycho should resolve the required bundles using the manifest, I removed the dependency to mockito from the pom.xml . When I then try to add mockito to the required bundles in the manifest mockito isn't listed. I found this post and created a target platform pointing to eclipse indigo. I included the platform specifics so I don't need the eclipse delta pack. Then the first strange

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

人走茶凉 提交于 2019-11-29 03:44:10
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? You need either of the following files in the root of the eclipse-repository project: A category.xml files with at least one feature referenced in it A *.product file