Questions tagged [tycho]

Tycho is a Maven extension for building Eclipse artifacts: Eclipse plug-ins/OSGI bundles, features, p2 repositories, and RCP applications/Eclipse distributions

Eclipse plugins and OSGI bundles have their own metadata for expressing dependencies, source folder locations, etc. that are normally found in a Maven POM. Tycho uses native metadata for Eclipse plugins and OSGi bundles and uses the POM to configure and drive the build. Tycho supports bundles, fragments, features, update site projects and RCP applications. Tycho also knows how to run JUnit test plugins using OSGi runtime and there is also support for sharing build results using Maven artifact repositories.

Useful links

797 questions
8
votes
3 answers

How do I make Jenkins, Sonar and the JaCoCo plugin work together for Eclipse Tycho Plugin Projects (or maybe Cobertura)?

my setup is: Jenkins 1.448 Sonar 2.13 Jenkins Sonar Plugin 1.72 a MySql database for Sonar I have the following project: Eclipse Plugin Project using Maven multiple modules (parent maven project, source plugin project, test fragment project) a…
danowar
  • 675
  • 1
  • 11
  • 21
8
votes
2 answers

tycho & jar signing

I'm using maven & tyhco to compile & build my eclipse plugins and create a p2 repository. However, when I install my plugins, eclipse shows a warning for the untrusted content. I know that to solve this issue, I must sign the plugins I…
Matteo
  • 1,367
  • 7
  • 25
8
votes
2 answers

Use maven tycho to build with a manifest entry Bundle-ClassPath that gets downloaded by the maven-dependency-plugin

I have an eclipse plugin with this manifest: ... Bundle-ClassPath: ., lib/drools-api.jar, lib/drools-core.jar, ... Now we don't want to put drools-api.jar and drools-core.jar in source control, so we use a plugin to fetch them from the maven…
Geoffrey De Smet
  • 26,223
  • 11
  • 73
  • 120
8
votes
0 answers

Getting Intellij to link sources between OSGI/Tycho modules

I have a large osgi project with many bundles/modules that I'm trying to get working with Intellij. Currently users edit MANIFEST.MF files in each bundle to manage dependencies and tycho is used to populate the pom.xml files that actually build the…
John Sullivan
  • 1,301
  • 1
  • 10
  • 20
8
votes
2 answers

Tycho build error: "... requires bundle ... but it could not be found"

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…
Andrew Machen
  • 97
  • 1
  • 4
8
votes
1 answer

How to get a Fragment-Bundle into Tycho test runtime?

I have an implementation bundle and fragment bundle dependent on it (Fragment-Host in MANIFEST). Moreover, there is a bundle with some tests. Now I want to test my implementation and use the tycho-surefire-plugin. The bundle with tests refers to the…
Anna
  • 233
  • 2
  • 8
8
votes
2 answers

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

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…
jsievers
  • 1,853
  • 10
  • 13
8
votes
2 answers

Tycho: 'Unable to satisfy dependency ...' when building via multi-module parent

I have to build an Eclipse-plugin with a Maven/Tycho which has dependencies to other 3rd parties. As embedding dependencies is not yet supported by Tycho, I split up projects into two as following: A-thirdparty: project with a packaging 'bundle',…
Art Licis
  • 3,619
  • 1
  • 29
  • 49
7
votes
1 answer

How to reference mockito within tycho?

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…
Marc-Christian Schulze
  • 3,154
  • 3
  • 35
  • 45
7
votes
1 answer

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

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…
titou10
  • 2,814
  • 1
  • 19
  • 42
7
votes
2 answers

How to make JUnit4 + Hamcrest 1.3 + Mockito work from Eclipse AND Tycho

I've managed to get JUnit 4.12 + Hamcrest 1.3 + Mockito 2.8.47 to work in Eclipse so that when I add them as dependencies, my tests will run. (The way I've done this is using the p2-maven-plugin to bundle the following artifacts from Maven Central…
s.d
  • 4,017
  • 5
  • 35
  • 65
7
votes
1 answer

Specify name of OSX application file for Eclipse RCP app

I have an Eclipse RCP application that I have been managing for a few years. I am updating it from Luna to Neon as the base and have updated to Tycho 0.26 in the process. One of the new features in Eclipse since Luna is that on OSX the application…
Mark Phippard
  • 10,329
  • 2
  • 32
  • 42
7
votes
3 answers

Usage of Maven tycho-p2-plugin with SWT

How do I build an SWT application using the Eclipse P2 repository and the Maven tycho-p2-plugin?
msshapira
  • 257
  • 1
  • 4
  • 12
7
votes
1 answer

Is it possible to configure tycho-surefire to run in the test phase?

I haven't done a lot with Maven, but I understand the basics. We're using Tycho to build RCP plugins and I'm wondering why Tycho uses the integration-test phase to execute the tests in a bundle. Is it possible to bind some types of tests to the…
Byebye
  • 934
  • 7
  • 24
7
votes
1 answer

What is an OSGI version qualifier

I need to confirm what I suspect as I cannot find any documentation on it, so this would appear a silly question, and since I am a learner at eclipse PDE. Initially, I had a parent project pom of an eclipse plugin project…
Blessed Geek
  • 21,058
  • 23
  • 106
  • 176
1 2
3
53 54