Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[p2-dev] Error when partially mirroring the EMF P2 repository

Hi,

I am trying to use the p2.mirror Ant task to partially mirror the EMF P2
repository and I am getting an error.  Here is what I did:

1) Downloaded version 2.5.0 of the EMF P2 all-in-one update repository
2) Wrote a small Ant script containing the following p2.mirror call:

    <p2.mirror verbose="true" ignoreErrors="true">
      <repository location="file:${final.p2.repo.dir}" compressed="true"
                   name="EMF repository" />
      <source dir="${repoBaseLocation}/"
              includes="emf-xsd-Update-2.5*.zip"
              excludes="${default.p2.mirror.exclude.pattern}"/>
      <iu id="org.eclipse.xsd.feature.group" />
      <iu id="org.eclipse.emf.ecore.feature.group" />
      <iu id="org.eclipse.emf.common.feature.group"/>
    </p2.mirror>

Here is the error I get:

 [p2.mirror] Problems resolving provisioning plan.
 [p2.mirror] Unable to satisfy dependency from
org.eclipse.emf.common.feature.group 2.5.0.v200906151043 to
org.eclipse.core.runtime 0.0.0.
 [p2.mirror] Unable to satisfy dependency from
org.eclipse.xsd.feature.group 2.5.0.v200906151043 to
org.eclipse.core.runtime 0.0.0.
 [p2.mirror] Unable to satisfy dependency from
org.eclipse.emf.ecore.feature.group 2.5.0.v200906151043 to
org.eclipse.core.runtime 0.0.0.
 [p2.mirror] Unable to satisfy dependency from org.eclipse.emf.common
2.5.0.v200906151043 to bundle org.eclipse.core.runtime [3.5.0,4.0.0].
 [p2.mirror] Unable to satisfy dependency from org.eclipse.emf.ecore
2.5.0.v200906151043 to bundle org.eclipse.core.runtime [3.5.0,4.0.0].
 [p2.mirror] Unable to satisfy dependency from org.eclipse.xsd
2.5.0.v200906151043 to bundle org.eclipse.core.runtime [3.5.0,4.0.0].
 [p2.mirror] Unable to satisfy dependency from
org.eclipse.emf.ecore.change 2.5.0.v200906151043 to bundle
org.eclipse.core.runtime [3.5.0,4.0.0].
 [p2.mirror] Unable to satisfy dependency from org.eclipse.emf.ecore.xmi
2.5.0.v200906151043 to bundle org.eclipse.core.runtime [3.5.0,4.0.0].
 [p2.mirror] Mirroring:
osgi.bundle,org.eclipse.emf.ecore,2.5.0.v200906151043 (Descriptor:
canonical: osgi.bundle,org.eclipse.emf.ecore,2.5.0.v200906151043)
 [p2.mirror] Messages while mirroring artifact descriptors.
 [p2.mirror] Artifact not found:
osgi.bundle,org.eclipse.emf.ecore,2.5.0.v200906151043.
 [p2.mirror]
jar:file:/c:/Temp/emf-xsd-Update-2.5.0.zip!/plugins/org.eclipse.emf.ecor
e_2.5.0.v200906151043.jar
 [p2.mirror] Artifact not found:
osgi.bundle,org.eclipse.emf.ecore,2.5.0.v200906151043.

 BUILD FAILED
 C:\Temp\emf_only.xml:39: Messages while mirroring artifact descriptors.

Ignoring the unimportant errors about org.eclipse.core.runtime, the real
cause of failure is due to:

 [p2.mirror] Artifact not found:
osgi.bundle,org.eclipse.emf.ecore,2.5.0.v200906151043.
 [p2.mirror]
jar:file:/c:/Temp/emf-xsd-Update-2.5.0.zip!/plugins/org.eclipse.emf.ecor
e_2.5.0.v200906151043.jar
 [p2.mirror] Artifact not found:
osgi.bundle,org.eclipse.emf.ecore,2.5.0.v200906151043.

The weird part is, this is in the repository!  I can see the plugin
within the zipfile, but it is actually found at the URI
jar:file:/c:/Temp/emf-xsd-Update-2.5.0.zip!/plugins/org.eclipse.emf.ecor
e_2.5.0.v200906151043.jar.pack.gz.  Shouldn't p2.mirror handle this
case?  I tried simplifying my mirror to do select a single plugin and it
fails with the same message.

How can I get around this, or what am I doing wrong?

Thanks,
Mark.


Back to the top