Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster » Target platform from a p2 local repository(Newbie hits again)
icon4.gif  Target platform from a p2 local repository [message #974038] Tue, 06 November 2012 15:27 Go to next message
Andrea Richiardi is currently offline Andrea Richiardi
Messages: 42
Registered: August 2012
Member
Hello Bucky group,

I have solved a lot of issue and understood, thanks to this forum group as well, how buckminster works a little bit more.

Now. I want to materialize a single plugin. This plugin has dependecies that correctly finds in one of the provided location of the RMAP.

In particular, the RMAP line is:
<rm:searchPath name="server.local.platform">
    <rm:provider readerType="p2" componentTypes="osgi.bundle,eclipse.feature" mutable="false" source="false">
       <rm:uri format="{0}">
          <bc:propertyRef key="p2.platform.dir"/>
       </rm:uri>
    </rm:provider>
</rm:searchPath>


It basically is a p2 repository, but saved locally. Is it possible to have this kind of configuration? Can I use a local p2 instead of an online one?

Because all the osgi.bundles and eclipse.features needed are correctly solved, but I then receive this error:

Contains: [0003] : An error occurred copying file \\temp\platform\plugins\com.mydependency.ui_3.3.0.jar.
java.io.FileNotFoundException: \\temp\platform\plugins\com.mydependency.ui_3.3.0.jar (The network path was not found)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(Unknown Source)
	at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.copyFileToStream(SimpleArtifactRepository.java:641)
	at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.downloadArtifact(SimpleArtifactRepository.java:666)
	at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.downloadArtifact(SimpleArtifactRepository.java:590)
	at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact(SimpleArtifactRepository.java:723)
	at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.getArtifact(MirrorRequest.java:287)
	at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.transferSingle(MirrorRequest.java:267)
	at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.transfer(MirrorRequest.java:208)
	at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.perform(MirrorRequest.java:138)
	at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact(SimpleArtifactRepository.java:707)
	at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifacts(SimpleArtifactRepository.java:778)
	at org.eclipse.equinox.internal.p2.engine.DownloadManager.fetch(DownloadManager.java:112)
	at org.eclipse.equinox.internal.p2.engine.DownloadManager.start(DownloadManager.java:100)
	at org.eclipse.equinox.internal.p2.engine.phases.Collect.completePhase(Collect.java:101)
	at org.eclipse.equinox.internal.p2.engine.Phase.postPerform(Phase.java:241)
	at org.eclipse.equinox.internal.p2.engine.Phase.perform(Phase.java:98)
	at org.eclipse.equinox.internal.p2.engine.PhaseSet.perform(PhaseSet.java:47)
	at org.eclipse.equinox.internal.p2.engine.Engine.perform(Engine.java:75)
	at org.eclipse.equinox.internal.p2.engine.Engine.perform(Engine.java:44)
	at org.eclipse.buckminster.core.materializer.P2Materializer.materialize(P2Materializer.java:319)
	at org.eclipse.buckminster.core.materializer.MaterializerJob.run(MaterializerJob.java:64)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)



Thank you very much!
Smile

[Updated on: Tue, 06 November 2012 15:28]

Report message to a moderator

Re: Target platform from a p2 local repository [message #974638 is a reply to message #974038] Wed, 07 November 2012 03:03 Go to previous messageGo to next message
Dennis Huebner is currently offline Dennis Huebner
Messages: 198
Registered: July 2009
Senior Member

Are you using file protocol in "p2.platform.dir"?
file:/temp/platform/ ?



+Dennis Hübner

--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
Re: Target platform from a p2 local repository [message #976451 is a reply to message #974638] Thu, 08 November 2012 10:41 Go to previous messageGo to next message
Andrea Richiardi is currently offline Andrea Richiardi
Messages: 42
Registered: August 2012
Member
Yes it's something like:

<rm:property key="p2.platform.dir" value="file:///temp/platform/"/>

EDIT: I am on a Windows machine.

[Updated on: Thu, 08 November 2012 10:42]

Report message to a moderator

Re: Target platform from a p2 local repository [message #976556 is a reply to message #976451] Thu, 08 November 2012 12:15 Go to previous messageGo to next message
Lorenzo Bettini is currently offline Lorenzo Bettini
Messages: 1304
Registered: July 2009
Senior Member
Andrea Richiardi wrote on Thu, 08 November 2012 10:41
Yes it's something like:

<rm:property key="p2.platform.dir" value="file:///temp/platform/"/>

EDIT: I am on a Windows machine.


I don't know whether this is the issue, but you used two slashes // and then it looks like it then interpret the path as a newtork path (which in windows start with two backslashes)...

have you tried with

<rm:property key="p2.platform.dir" value="file:/temp/platform/"/>

or

<rm:property key="p2.platform.dir" value="file://temp/platform/"/>

?
Re: Target platform from a p2 local repository [message #977871 is a reply to message #976556] Fri, 09 November 2012 11:50 Go to previous messageGo to next message
Andrea Richiardi is currently offline Andrea Richiardi
Messages: 42
Registered: August 2012
Member
It was that!

INFO: Import complete.

A side-question, how can I specify a drive (if I am on Win for example, I want to specify D:) using this syntax?

[Updated on: Fri, 09 November 2012 11:52]

Report message to a moderator

Re: Target platform from a p2 local repository [message #977904 is a reply to message #977871] Fri, 09 November 2012 12:22 Go to previous message
Lorenzo Bettini is currently offline Lorenzo Bettini
Messages: 1304
Registered: July 2009
Senior Member
On 11/09/2012 05:50 PM, Andrea Richiardi wrote:
> It was it!
>
> INFO: Import complete.
>
> A side-question, how can I specify a drive (if I am on Win for example,
> I want to specify D:) using this syntax?

have you tried with simply file:D:/ or file:/D:/ ?

sorry but I cannot test it right now...

cheers
Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net
Previous Topic:[Solved]Optional Dependencies
Next Topic:materialize projects-platform.cquery in eclipse
Goto Forum:
  


Current Time: Wed Jul 23 04:12:01 EDT 2014

Powered by FUDForum. Page generated in 0.05454 seconds