Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 374471 - generated p2 artifact.jar contains invalid p2.mirrorsURL
Summary: generated p2 artifact.jar contains invalid p2.mirrorsURL
Status: CLOSED INVALID
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Buckminster (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: buckminster.core-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-16 06:13 EDT by Bouchet Stéphane CLA
Modified: 2019-02-25 14:41 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bouchet Stéphane CLA 2012-03-16 06:13:57 EDT
Hi,

when using buckminster with a feature that contains a site to vist or discovery url, it seems buckminster is using one of these for "p2.mirrorsURL" in the generated p2 metadata.

   <url>
      <update label="%modelingUpdateSiteName" url="http://www.eclipse.org/modeling/updates/"/>
      <discovery label="%modelingUpdateSiteName" url="http://www.eclipse.org/modeling/updates/"/>
   </url>


this is wrong, since the mirrors URL is used to mirror artifacts, and sites to visit is just a way to add a new URL to the UI.
Comment 1 Henrik Lindberg CLA 2012-03-16 08:03:00 EDT
Are you referring to the buckminster functionality to publish a feature as a p2 site? 
The intent is that this is a special feature written for the purpose of using buckminster to publish it as a p2 update site.

Or is this from usage in some other context?
Comment 2 Thomas Hallgren CLA 2012-03-16 09:00:07 EDT
(In reply to comment #0)

> this is wrong, since the mirrors URL is used to mirror artifacts, and sites to
> visit is just a way to add a new URL to the UI.

..., and a feature is not normally used for describing a p2 update site.

This is, like it or not, per design. There is no proper artifact that can be used when describing the repository itself. So we took the closest thing and made it possible to use a feature for that. When a feature is used for that special purpose, the discovery URL servers as the mirrorsURL.
Comment 3 Bouchet Stéphane CLA 2012-03-16 09:16:53 EDT
Ok, 


thanks for your answers, i better see how buckminster works, now.

I will change my 'build feature' to not include any discovery url.