Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » How to get rid of Tycho's downloading of p2.indexes on every build(Maven build takes long time because of Tycho)
How to get rid of Tycho's downloading of p2.indexes on every build [message #1256305] Tue, 25 February 2014 09:40 Go to next message
Xi Lin is currently offline Xi LinFriend
Messages: 21
Registered: January 2014
Junior Member
I'm using Tycho to support maven in order to automatically build my xtext's projects.

However each time Tycho try to download the p2 indexes.

I know the mvn -o option. But it sometimes cannot build using that option.

Is there a way we can use Tycho without referencing the p2 indexes or create a project cache?

Thanks.
Re: How to get rid of Tycho's downloading of p2.indexes on every build [message #1256321 is a reply to message #1256305] Tue, 25 February 2014 10:04 Go to previous messageGo to next message
Joerg Reichert is currently offline Joerg ReichertFriend
Messages: 80
Registered: July 2009
Location: Leipzig
Member
Hi,

you can materialize a local p2 repository out of your target platform and use this. So you're independent of remote repositories.
We do this e.g. in the Spray project: http://code.google.com/a/eclipselabs.org/p/spray/source/browse/releng/org.eclipselabs.spray.repository/pom.xml

So with mvn clean install -Pmodules-targetplatform you materialize the aggregated P2 repository locally and with mvn clean install -Dlocal-build you use this local P2 repository during build.

You even can set this local P2 repository in your Eclipse as target platform instead using the target file.

Joerg


--
Need professional support for Xtext and EMF?
Go to: http://xtext.itemis.com
Re: How to get rid of Tycho's downloading of p2.indexes on every build [message #1256344 is a reply to message #1256321] Tue, 25 February 2014 10:27 Go to previous messageGo to next message
Joerg Reichert is currently offline Joerg ReichertFriend
Messages: 80
Registered: July 2009
Location: Leipzig
Member
Another way is to use a local Nexus instance (http://www.sonatype.org/nexus/) as proxy (by default it caches the access to the remote repositories one day) and then use the local Nexus URI as repository in the pom (resp. configured as mirror in the Maven settings.xml).

--
Need professional support for Xtext and EMF?
Go to: http://xtext.itemis.com
Re: How to get rid of Tycho's downloading of p2.indexes on every build [message #1257258 is a reply to message #1256321] Wed, 26 February 2014 08:15 Go to previous message
Xi Lin is currently offline Xi LinFriend
Messages: 21
Registered: January 2014
Junior Member
Hi Joerg,

Thanks for your help.

We currently use archiva to host our internal repository so I will try to learn from Spray project.

Thanks.
Previous Topic:Need help getting started on a grammar
Next Topic:DSLProposalProvider (access external data)
Goto Forum:
  


Current Time: Wed Oct 28 14:12:06 GMT 2020

Powered by FUDForum. Page generated in 0.01723 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top