Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » incomplete mirror of Eclipse RAP P2 repository
incomplete mirror of Eclipse RAP P2 repository [message #675706] Wed, 01 June 2011 08:44 Go to next message
Lars Fischer is currently offline Lars FischerFriend
Messages: 105
Registered: July 2009
Senior Member
X-post & follow up to eclipse.p2

Hello,

I would like to create a local intranet mirror of the public available
Eclipse RAP P2 runtime 1.4 repository.
(http://download.eclipse.org/rt/rap/1.4/runtime)

I used the eclipse mirror applications as described here:
http://wiki.eclipse.org/Equinox_p2_Repository_Mirroring

But the created P2 repository is not complete. There are plugins and
features missing, so I can not work against the local mirror. Using the
public RAP mirrors everything is fine.

Examples of missing content:
- feature org.eclipse.rap.runtime.sdk_1.4.0.20110524-0847
- plugin org.eclipse.rap.ui.forms_1.4.0.20110524-0847

The process of running the mirror applications shows no error or
warning. (http://pastebin.com/QQdcpFdA)

Where is my mistake? How can I create a complete working mirror?

Best regards,
Lars
Re: incomplete mirror of Eclipse RAP P2 repository [message #675758 is a reply to message #675706] Wed, 01 June 2011 12:34 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

You might have better luck using the p2.mirror task instead.

<p2.mirror destination="file:${repoBaseLocation}/eclipseSDK" ignoreerrors="true">
	<source location="${eclipseRepoURLt}" />
	<slicingOptions includeOptional="false" includeNonGreedy="false" latestVersionOnly="true"/>
	<iu id="org.eclipse.sdk.ide" />
</p2.mirror>


You have more control over the slicing options compared to the command line applications. Without the slicing options, it should mirror everything. If not, you can play with both the slicing options, and the iu element to include items it seems to want to skip.

eclipse/eclipse \
-noSplash \
-application org.eclipse.ant.core.antRunner \
-Declipse.p2.mirrors=false \
-buildfile mirror_file.xml


See http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/p2_repositorytasks.htm for a full list of options.


PW


Re: incomplete mirror of Eclipse RAP P2 repository [message #675825 is a reply to message #675758] Wed, 01 June 2011 15:46 Go to previous messageGo to next message
Lars Fischer is currently offline Lars FischerFriend
Messages: 105
Registered: July 2009
Senior Member
Hello Paul,

thank you for your answer.

I tried multiple runs and found, that the missing jars are changing for
a unknown reason.

We have a very restrictive access to the outer internet. So I tried the
same thing on a different computer with a direct connection: everything
is fine. All artifacts are mirrored correct. So I think the reason
belongs to our connection.

But why is there no log output that some artifacts were skipped? This is
very dangerous, I think.

Regards,
Lars
Re: incomplete mirror of Eclipse RAP P2 repository [message #675880 is a reply to message #675706] Wed, 01 June 2011 18:44 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Lars,

not being a p2 expert myself, I cannot comment on what could go wrong
during the mirroring. But maybe it helps to know that the RAP repos are
p2 composite repositories lately which aggregate the contents of their
subdirectories.
So if you're interested in 1.4 RC2 for example, it should be sufficient
to mirror only http://download.eclipse.org/rt/rap/1.4/runtime/RC2/.

Does that help?

Regards, Ralf

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: incomplete mirror of Eclipse RAP P2 repository [message #676719 is a reply to message #675880] Mon, 06 June 2011 09:40 Go to previous message
Lars Fischer is currently offline Lars FischerFriend
Messages: 105
Registered: July 2009
Senior Member
Hello Ralf,

On 01.06.2011 20:44, Ralf Sternberg wrote:
>
> not being a p2 expert myself, I cannot comment on what could go wrong
> during the mirroring. But maybe it helps to know that the RAP repos are
> p2 composite repositories lately which aggregate the contents of their
> subdirectories.
> So if you're interested in 1.4 RC2 for example, it should be sufficient
> to mirror only http://download.eclipse.org/rt/rap/1.4/runtime/RC2/.
>
> Does that help?

It looks like I have a local network problem. One of our
proxy/scanner/securitywhatever is blocking different artifacts.

I tried it at home and everything works fine.

But I don't like the fact, that there is no error/warning in the log,
when something is missing.

Regards,
Lars
Previous Topic:Install new Software vs Update
Next Topic:Generate a flat but optimized repository
Goto Forum:
  


Current Time: Mon Nov 20 23:19:42 GMT 2017

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

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