Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] problem with mirroring of composite P2 repository

I don't believe there is anything in P2 or Tycho that would let you map
URLs specified in composite*.xml files to local mirrors. Unless
Artifactory supports this directly (I don't know if it does), the
only other way is to manually craft composite*.xml files to point at
desired local mirrors of the children.

--
Regards,
Igor

On 1/23/2014, 3:57, Maxim Frolov wrote:
Maven Clients in our environment can only access remote repositories
throgh mirrors.

A P2 repository beeing mirrored contains the following
compositeArtifacts.xml:

<?xml version='1.0' encoding='UTF-8'?>
<?compositeArtifactRepository version='1.0.0'?>
<repository name='Xtext All In One (Releases)'

type='org.eclipse.equinox.internal.p2.artifact.repository.CompositeArtifactRepository'
version='1.0.0'>
     <properties size='1'>
         <property name='p2.timestamp' value='1311823210'/>
     </properties>
     <children size='3'>
         <child
location='http://download.eclipse.org/modeling/emft/mwe/updates/releases'/>
         <child
location='http://download.eclipse.org/modeling/m2t/xpand/updates/releases'/>
         <child
location='http://download.eclipse.org/modeling/tmf/xtext/updates/releases'/>
     </children>
</repository>


Maven Client using this mirror always fail with
[ERROR] Internal error: java.lang.RuntimeException: Failed to load p2
repository with ID 'artifactory.p2-eclipse' from location
http://artifactory:8080/p2-eclipse/modeling/tmf/xtext/updates/composite/releases/:
Unable to read repository at
http://artifactory-ac.soptim.net:8080/p2-eclipse/modeling/tmf/xtext/updates/composite/releases.
Unable to connect to repository
http://download.eclipse.org/modeling/emft/mwe/updates/releases/content.xml:
Connection to http://download.eclipse.org refused: Connection timed out:
connect -> [Help 1]
....
Caused by: org.eclipse.equinox.p2.core.ProvisionException: Unable to
connect to repository
http://download.eclipse.org/modeling/emft/mwe/updates/releases/content.xml
....


How is it possible to configure Maven Client and / or Artifactory Server
to connect to children of mirrored composite P2 repository not directly
but also using mirrors?


_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user



Back to the top