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
12
votes
3 answers

Dependencies from pom.xml not considered by Eclipse in Tycho Project

I created a Tycho project with an eclipse-plugin packaging. The project includes some dependencies that are specified via pom.xml. The relevant pom sections are: UTF-8
SpaceTrucker
  • 13,377
  • 6
  • 60
  • 99
11
votes
1 answer

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

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…
Disha
  • 822
  • 1
  • 10
  • 39
11
votes
1 answer

How to avoid the specific feature versions in eclipse target definitions

I have an osgi project that is split into 3 repositories. Each repository has its own build into p2 repository with Tycho: Repo1 -> P2 repo 1 Repo2 -> P2 repo 2 Repo3 -> P2 repo 3 Also each repository has a target definition file that includes the…
Ivan
  • 111
  • 4
11
votes
1 answer

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

This is my current test fragment: eclipse-test-plugin org.junit com.springsource.org.junit 4.7.0
oers
  • 18,436
  • 13
  • 66
  • 75
10
votes
1 answer

Maven Build gets Failed saying Could not assemble p2 repository: Mirroring failed: No repository found at

I have a maven build for building an eclipse plugin which gets hung sporadically during the execution of --- tycho-p2-repository-plugin:1.1.0:assemble-repository (default-assemble-repository) @ com.sample.product --- Otherwise the build will get…
Obuli Sundar
  • 566
  • 7
  • 26
10
votes
2 answers

How to get unit tests to run in Maven Tycho build?

I've done a lot of work in the past writing unit tests that run in "conventional" Maven builds, using JUnit and Mockito (and PowerMock). I'm now working on an Eclipse plugin codebase, which builds with Maven Tycho. Overall, it's a multiproject…
David M. Karr
  • 14,317
  • 20
  • 94
  • 199
10
votes
3 answers

Building an Eclipse plugin using Maven

I am trying to configure Maven to build an Eclipse application (Eclipse plugin packaged with all of the Eclipse EXEs etc). I have already Mavenised dozens of dependencies of the project and deployed them to our internal Nexus (OSS) server. I have…
Nicholas Albion
  • 3,096
  • 7
  • 33
  • 56
10
votes
2 answers

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

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…
tbacker
  • 772
  • 7
  • 22
10
votes
2 answers

Maven NatTable clean+install failure

I'm trying to import and resolve the developer projects for the NatTable project as explained in their Getting Started tutorial. I'm getting the following error on mvn -f [path to pom] clean install: Exception in thread "main"…
Georgian
  • 8,795
  • 8
  • 46
  • 87
10
votes
2 answers

Tycho: Dependencies to other plugins of the project cannot be resolved when building plugins separately

I have a Eclipse RCP application that builds with Maven using the Tycho plugin. There is a master POM that contains all the plugins and features as modules. If I install the master POM with Maven, the resulting reactor build works fine. All modules…
tbacker
  • 772
  • 7
  • 22
10
votes
1 answer

Tycho downloads p2.indexes on every build

I'm building an RCP and several other plug-ins with Maven & Tycho. This works very fine, unless one issue: On every(!) build, Tycho loads all needed eclipse librarys, even when the where already downloaded 10 seconds ago. Aren't they saved…
Mirco
  • 2,940
  • 5
  • 34
  • 57
9
votes
2 answers

How can I debug test cases run by Tycho?

When using Tycho to build a project, the test cases are run in a new process using the equinox launcher to run -application org.eclipse.tycho.surefire.osgibooter.headlesstest. How can I debug the test cases?
Aaron Digulla
  • 321,842
  • 108
  • 597
  • 820
9
votes
3 answers

Maven + Tycho, adding Maven dependencies

We have an Eclipse Plugin which we build using Maven and Tycho. Currently however, we still provide all project dependencies through a bunch of manually added JAR files and not by Maven. This is due to the following reasons: (1) The dependencies are…
qqilihq
  • 10,794
  • 7
  • 48
  • 89
9
votes
1 answer

How can I make Tycho load platform specific fragment into the test runtime for any OS?

I'm using Tycho to build and test some eclipse plugins. I have one bundle that has many platform specific fragments. I also have one test bundle that is using tycho-surefire-plugin to test the original bundle that has the platform specific…
gamerson
  • 5,220
  • 1
  • 28
  • 45
9
votes
2 answers

How to deploy locally already installed artifact with Maven

Story I know, that maven deploy command runs through the whole lifecycle. My problem, that it takes to much time in my case. Let me explain: There is an application built up from a Server, and a single sourced Eclipse RAP&RCP client The…
Gábor Lipták
  • 9,646
  • 2
  • 59
  • 113
1
2
3
53 54