[jbosstools-issues] [JBoss JIRA] (JBIDE-14855) p2.mirrorsURL are kept in site metadata after mirroring with format attribute

Nick Boldt (JIRA) jira-events at lists.jboss.org
Thu Jul 4 15:42:21 EDT 2013


    [ https://issues.jboss.org/browse/JBIDE-14855?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12787780#comment-12787780 ] 

Nick Boldt edited comment on JBIDE-14855 at 7/4/13 3:41 PM:
------------------------------------------------------------

Just checked the metadata in http://download.jboss.org/jbosstools/targetplatforms/jbosstoolstarget/4.30.5.CR1-SNAPSHOT/REPO/ {content.jar, artifacts.jar} and there are no hits for "p2.mirror" in either file. Therefore even if we push through this change, it won't affect installation of JBT 4.1 or JBDS 7 BYOE.

Did manage to find ONE reference to p2.mirrorsURL in the Kepler R site's metadata:

{code:title=http://download.jboss.org/jbosstools/updates/requirements/kepler/201306260900-R/ in content.jar!/content.xml}
<unit id='org.eclipse.recommenders.completion.rcp.subwords' version='1.0.4.v20130612-1006-b77'>
      <update id='org.eclipse.recommenders.completion.rcp.subwords' range='[0.0.0,1.0.4.v20130612-1006-b77)' severity='0'/>
      <properties size='10'>
...
        <property name='p2.mirrorsURL' value='http://www.eclipse.org/downloads/download.php?file=/recommenders/updates/dev/e42/&amp;amp;format=xml'/>
{code}

And one in WTP 3.5:

{code:title=http://download.jboss.org/jbosstools/updates/requirements/webtools/R-3.5.0-20130610150119/ in artifacts.jar!/artifacts.xml}
<repository name='Web Tools R-3.5.0-20130610150119' type='org.eclipse.equinox.p2.artifact.repository.simpleRepository' version='1'>
  <properties size='5'>
    <property name='publishPackFilesAsSiblings' value='true'/>
    <property name='p2.timestamp' value='1372147151915'/>
    <property name='p2.compressed' value='true'/>
    <property name='p2.mirrorsURL' value='http://www.eclipse.org/downloads/download.php?format=xml&amp;file=/webtools/downloads/drops/R3.5.0/R-3.5.0-20130610150119/repository/'/>
    <property name='p2.statsURI' value='http://download.eclipse.org/stats/webtools/repository'/>
  </properties>
{code}

{code:title=http://download.jboss.org/jbosstools/updates/requirements/birt/4.3.0.v201306111054 in BOTH content.jar!/content.xml and artifacts.jar!/artifacts.xml}
<repository name="BIRT (Chart + WTP support only) 4.3.0.v201306111054" type="org.eclipse.equinox.internal.p2.metadata.repository.LocalMetadataRepository" version="1">
  <properties size="3">
    <property name="p2.timestamp" value="1372170750069"/>
    <property name="p2.compressed" value="true"/>
    <property name="p2.mirrorsURL" value="http://www.eclipse.org/downloads/download.php?file=/birt/update-site/4.3/&amp;format=xml"/>
  </properties>

<repository name='BIRT (Chart + WTP support only) 4.3.0.v201306111054' type='org.eclipse.equinox.p2.artifact.repository.simpleRepository' version='1'>
  <properties size='4'>
    <property name='p2.timestamp' value='1372170749880'/>
    <property name='publishPackFilesAsSiblings' value='true'/>
    <property name='p2.compressed' value='true'/>
    <property name='p2.mirrorsURL' value='http://www.eclipse.org/downloads/download.php?file=/birt/update-site/4.3/&amp;format=xml'/>
  </properties>
{code}
                
      was (Author: nickboldt):
    Just checked the metadata in http://download.jboss.org/jbosstools/targetplatforms/jbosstoolstarget/4.30.5.CR1-SNAPSHOT/REPO/ {content.jar, artifacts.jar} and there are no hits for "p2.mirror" in either file. Therefore even if we push through this change, it won't affect installation of JBT 4.1 or JBDS 7 BYOE.

Did manage to find ONE reference to p2.mirrorsURL in the Kepler R site's metadata:

{code:title=http://download.jboss.org/jbosstools/updates/requirements/kepler/201306260900-R/ (in content.jar!/content.xml)}
<unit id='org.eclipse.recommenders.completion.rcp.subwords' version='1.0.4.v20130612-1006-b77'>
      <update id='org.eclipse.recommenders.completion.rcp.subwords' range='[0.0.0,1.0.4.v20130612-1006-b77)' severity='0'/>
      <properties size='10'>
...
        <property name='p2.mirrorsURL' value='http://www.eclipse.org/downloads/download.php?file=/recommenders/updates/dev/e42/&amp;amp;format=xml'/>
{code}

And one in WTP 3.5:

{code:title=http://download.jboss.org/jbosstools/updates/requirements/webtools/R-3.5.0-20130610150119/ (in artifacts.jar!/artifacts.xml}
<repository name='Web Tools R-3.5.0-20130610150119' type='org.eclipse.equinox.p2.artifact.repository.simpleRepository' version='1'>
  <properties size='5'>
    <property name='publishPackFilesAsSiblings' value='true'/>
    <property name='p2.timestamp' value='1372147151915'/>
    <property name='p2.compressed' value='true'/>
    <property name='p2.mirrorsURL' value='http://www.eclipse.org/downloads/download.php?format=xml&amp;file=/webtools/downloads/drops/R3.5.0/R-3.5.0-20130610150119/repository/'/>
    <property name='p2.statsURI' value='http://download.eclipse.org/stats/webtools/repository'/>
  </properties>
{code}

{code:title=http://download.jboss.org/jbosstools/updates/requirements/birt/4.3.0.v201306111054 (in BOTH content.jar!/content.xml and artifacts.jar!/artifacts.xml}
<repository name="BIRT (Chart + WTP support only) 4.3.0.v201306111054" type="org.eclipse.equinox.internal.p2.metadata.repository.LocalMetadataRepository" version="1">
  <properties size="3">
    <property name="p2.timestamp" value="1372170750069"/>
    <property name="p2.compressed" value="true"/>
    <property name="p2.mirrorsURL" value="http://www.eclipse.org/downloads/download.php?file=/birt/update-site/4.3/&amp;format=xml"/>
  </properties>

<repository name='BIRT (Chart + WTP support only) 4.3.0.v201306111054' type='org.eclipse.equinox.p2.artifact.repository.simpleRepository' version='1'>
  <properties size='4'>
    <property name='p2.timestamp' value='1372170749880'/>
    <property name='publishPackFilesAsSiblings' value='true'/>
    <property name='p2.compressed' value='true'/>
    <property name='p2.mirrorsURL' value='http://www.eclipse.org/downloads/download.php?file=/birt/update-site/4.3/&amp;format=xml'/>
  </properties>
{code}
                  
> p2.mirrorsURL are kept in site metadata after mirroring with format attribute
> -----------------------------------------------------------------------------
>
>                 Key: JBIDE-14855
>                 URL: https://issues.jboss.org/browse/JBIDE-14855
>             Project: Tools (JBoss Tools)
>          Issue Type: Task
>          Components: target-platform
>            Reporter: Mickael Istria
>            Assignee: Nick Boldt
>             Fix For: 4.1.1.Final, 4.2.0.Alpha1
>
>
> When we mirror sites using the "format" argument (to keep the original repository layout with .pack.gz as siblings) it also keep the p2.mirrorsURL attribute. This is not bad per se, but since the mirrors are often not correctly sync'd with the Eclipse repositories/our mirrors, it leads to build failure.
> Current workaround is to remove them by end in content.jar and artifact.jar.
> We should think about removing this, for example as part of the remove-references script.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list