Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Building Plugin with Eclipse Installation | Surefire dependency on p2 repo



On Wed, Oct 28, 2020 at 7:23 PM Muhammad Umair Sair <umair_sair@xxxxxxxxxxx> wrote:
  1. Generic Question: Is there a way to build a plugin without using repositories, instead use the locally available eclipse installation to resolve build time dependencies?

Yes. since a few months ago, you can reference filesystem based installation in the .target files that you use with Tycho: https://wiki.eclipse.org/Tycho/Release_Notes/2.0#Support_other_.28file-based.29_Locations_in_.target_files
 
  1. Surefire specific Question: The build system creates a product and lot of other p2 repositories that are not part of product. I am running tests using testRuntime=p2Installed and default work location. If I mention product p2-installable-unit as extra requirement in target-platform-configuration, it pulls all the plugins related to product in work location.
    I want to pull all the plugins from other p2 repositories (created during the same build or already existing) to work location, there are a lot ungrouped p2-installable-units and I don't want to mention everyone as extra requirement in target-platform-configuration.
    I tried using target platform and mentioned the repositories in it but surefire doesn't pull them in work. How can I pull all plugins from a p2 repository for running tests with surefire?
There is no solution for this, you'll need to explicitly list the dependencies you need; or the minimal set of dependencies that expands transitively to everything you need (ie you can create a "everything" feature which references everything in the p2 repos and include it).

HTH
--
Mickael Istria
Eclipse IDE developer, for Red Hat Developers

Back to the top