Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » Omit artifact.reference on mirroring p2 repositories
Omit artifact.reference on mirroring p2 repositories [message #1402674] Thu, 17 July 2014 10:22 Go to next message
techteam is currently offline techteamFriend
Messages: 55
Registered: September 2010
Member
Hi,
for our safeguarded intra / development network I have to mirror several
p2 repositories to use it as base for installing features and also as
target platform.

For this I use an xml file based on the wiki article:
http://wiki.eclipse.org/Equinox/p2/Ant_Tasks

If I use than the mirrored repositories in our development network to
install features or as target platform
I've got often the message:
"No repository found at http://download.eclipse.org/releases/luna."
and
"No repository found at http://download.eclipse.org/eclipse/updates/4.4."

and so on.

As a result, the target platform is not buildable or, the features can
not be installed.

If I do remove all artifact.reference entries from the artifact.xml, it
works fine.

Example entry:
<repositoryProperties size='1'>
<property name='artifact.reference'
value='http://findbugs.cs.umd.edu/eclipse/plugins/edu.umd.cs.findbugs.plugin.eclipse_2.0.2.20121210.jar'/>
</repositoryProperties>

Is there any option to omit the artifact.reference on mirroring?

Greetings
Heiko
Re: Omit artifact.reference on mirroring p2 repositories [message #1403979 is a reply to message #1402674] Mon, 28 July 2014 21:41 Go to previous messageGo to next message
Pascal Rapicault is currently offline Pascal RapicaultFriend
Messages: 299
Registered: July 2009
Location: Ottawa
Senior Member
The mirror ant task supports a flag called "references" that can be set to false. You can see the code underlying this taks in the class MirrorApplication.
Re: Omit artifact.reference on mirroring p2 repositories [message #1592925 is a reply to message #1403979] Fri, 30 January 2015 10:01 Go to previous message
techteam is currently offline techteamFriend
Messages: 55
Registered: September 2010
Member
Hi Pascal,
now I had have time to test the mirroring with the new reference flag.

But it doesn't works for me.

What do I use:

- Eclipse Luna SR1
- Mirror.xml

<?xml version="1.0" encoding="UTF-8"?>
<project name="Mirror" default="mirrorRepos">
<target name="mirrorRepos">
<p2.mirror ignoreerrors="true" references="false">
<repository compressed="true" name="Eclipse Addons"
location="file:/${baseDir}/repositories/eclipse.org/tools/addons/"
append="true"/>
<source location="http://jautodoc.sourceforge.net/update/" />
<slicingoptions latestVersionOnly="true" />
</p2.mirror>
</target>
</project>

-Run Command:
"D:\Programme\eclipse\eclipse.exe" -noSplash -application
org.eclipse.ant.core.antRunner -DbaseDir=D:\P2-Repo -buildfile
D:\P2-RepoConfig\Mirror.xml

Inside the artifacsja/xml I gotas Result:
<artifact classifier='osgi.bundle' id='net.sf.jautodoc' version='1.12.0'>
<properties size='1'>
<property name='download.size' value='1106421'/>
</properties>
<repositoryProperties size='1'>
<property name='artifact.reference'
value='http://sourceforge.net/projects/jautodoc/files/updatesite/1.12.0/net.sf.jautodoc_1.12.0.jar/download'/>
</repositoryProperties>
</artifact>


My problem with this is that inside our development environment
(complete separated from the internet) eclipse dosnet found these side
and can't install the feature/plugin.

Am 28.07.2014 um 23:41 schrieb Pascal Rapicault:
> The mirror ant task supports a flag called "references" that can be set
> to false. You can see the code underlying this taks in the class
> MirrorApplication.
Previous Topic:P2 seeing new software, yet not counting it as an upgrade
Next Topic:Is it possible to disable &quot;uninstall&quot; button when selecte the product feature itse
Goto Forum:
  


Current Time: Thu May 28 06:21:23 GMT 2015

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

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