Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » pluginPath and dependencies from remote p2 repositories(How to optimal define dependencies from p2 repositories)
pluginPath and dependencies from remote p2 repositories [message #756288] Fri, 11 November 2011 14:26 Go to next message
Kamil Demecki is currently offline Kamil Demecki
Messages: 2
Registered: July 2009
Junior Member
Hi

In my pde build I'm using pluginPath property to resolve dependencies from local p2 repositories for example -DpluginPath=${basedir}/../../../plugins:/cache/3pp/site/mockito/1.8.2:/cache/3pp/site/spring/3.0.1

I'm trying to find how to effectively materialize caches from http p2 to local files.

I know that I could use ant-contrib for looping and invoke p2.mirror task for each dependency. Specially important is for me is minimalizing network overhead - to keep builds fast.

But, is better way declare dependency and materialize p2 repositories on local filesystem?

For example tycho use something really simple:

<repositories>
    <repository>
        <id>eclipse-swtbot</id>
        <layout>p2</layout>
        <url>${p2.swtbot.url}</url>
    </repository>
</repositories> 



Re: pluginPath and dependencies from remote p2 repositories [message #756299 is a reply to message #756288] Fri, 11 November 2011 15:19 Go to previous message
Kamil Demecki is currently offline Kamil Demecki
Messages: 2
Registered: July 2009
Junior Member
One ide is to generate compositeRepository and refer it pde build

<p2.composite.repository failOnExists="true">
	<repository location="file:${user.home}/.ant/caches/composite" name="build repository" />
	<add>
		<repository location="file:${user.home}/.ant/caches/spring" />
		<repository location="file:${user.home}/.ant/caches/mockito" />
		<repository location="file:${user.home}/.ant/caches/logging" />
	</add>
</p2.composite.repository>


But pde build is failing when I declare -DpluginPath=${basedir}/../../../plugins:${user.home}/.ant/caches/composite
Previous Topic:Logging and tracing from your RCP application
Next Topic:creating a plugin project programmatically
Goto Forum:
  


Current Time: Thu Aug 21 22:05:44 EDT 2014

Powered by FUDForum. Page generated in 0.01531 seconds