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

Hmm...

I found this message that I think suggests that the EMF build process is
broken:

http://www.eclipse.org/forums/index.php?t=msg&th=154020

Can anyone confirm this?  I had a look at the artifacts.jar file and
can't really tell one way or another if this was ever fixed on EMF's
end.

M. 

-----Original Message-----
From: p2-dev-bounces@xxxxxxxxxxx [mailto:p2-dev-bounces@xxxxxxxxxxx] On
Behalf Of Mark Melvin
Sent: Wednesday, November 11, 2009 10:30 AM
To: p2-dev@xxxxxxxxxxx
Subject: [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.
_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/p2-dev