Community
Participate
Working Groups
From a recent discussion on cross-project-issues-dev, I noticed that the p2.mirrorsURL in the MoDisco update site metadata is wrong. It is currently: <property name='p2.mirrorsURL' value='http://www.eclipse.org/modeling/updates/'/> I think it should be: <property name='p2.mirrorsURL' value='http://www.eclipse.org/downloads/download.php?file=/modeling/mdt/modisco/updates/release/0.9.0/&format=xml&protocol=http'/>
To fix this, I think this bit of XML should be updated in each feature.xml: <url> <update label="%ModelingUpdateSiteName" url="http://www.eclipse.org/modeling/updates/"/> </url>
(In reply to comment #1) > To fix this, I think this bit of XML should be updated in each feature.xml: > <url> > <update label="%ModelingUpdateSiteName" > url="http://www.eclipse.org/modeling/updates/"/> > </url> -1 because http://www.eclipse.org/downloads/download.php?file=/modeling/mdt/modisco/updates/release/0.8.0/&format=xml&protocol=http is not an update site.
(In reply to comment #2) > -1 because > http://www.eclipse.org/downloads/download.php?file=/modeling/mdt/modisco/updates/release/0.8.0/&format=xml&protocol=http > is not an update site. It is indeed not an update site, but p2 must be able to understand it anyway, since Eclipse platform specifies it this way. See for example: http://download.eclipse.org/eclipse/updates/3.6/R-3.6.2-201102101200/artifacts.jar This is also documented here: http://wiki.eclipse.org/IT_Infrastructure_Doc#Enable_mirrors_.2F_use_mirrorsURL_for_my_p2_repo.3F
I added the generation of the "p2.mirrorsURL" properties in the XSLT transformation that is run during the promote. I also removed the discovery & update site definitions from all feature.xml to avoid generating wrong "p2.mirrorsURL"s (resulting in duplicated properties in the metadata).
Bug solved.