[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [p2-dev] Proper Way To Install from P2 Zipped Repos

Sweet.  Thanks, Nick.  I think I have this sorted, actually and over
half of my old build script (the half that shuffled around and inflated
dependencies) is no longer needed (cha-ching!).

I just have one question left.  I am trying to create an amalgamated P2
repository containing the feature I just built, as well as its
dependencies (which are all in a dependencies folder).  This is
accomplished in one go using the following Ant snippet:

    <p2.mirror>
      <repository location="file:${final.p2.repo.dir}" compressed="true"
                   name="${pde.build.element} ${pde.build.element.type}
repository" />
      <source dir="${repoBaseLocation}/" includes="*.zip"/>
      <source>
        <repository location="file:${temp.p2.repo.dir}" />
      </source>
    </p2.mirror>

The problem is, I end up with all sorts of messages about not being able
to find the Eclipse bundles required by my features and bundles.  Here
is my build output:

    [p2.mirror] Problems resolving provisioning plan.
    [p2.mirror] Unable to satisfy dependency from
com.signaklara.platform 2.5.0.v00000008 to bundle
org.eclipse.core.runtime [3.4.0,4.0.0).
    [p2.mirror] Unable to satisfy dependency from
com.signaklara.platform 2.5.0.v00000008 to bundle org.eclipse.ui.intro
[3.2.200,4.0.0).
    [p2.mirror] Unable to satisfy dependency from
com.signaklara.platform 2.5.0.v00000008 to bundle org.eclipse.ui
[3.4.0,4.0.0).
    [p2.mirror] Unable to satisfy dependency from
com.signaklara.platform 2.5.0.v00000008 to bundle org.eclipse.ui.forms
[3.3.100,4.0.0).
    [p2.mirror] Unable to satisfy dependency from
com.signaklara.platform 2.5.0.v00000008 to bundle
org.eclipse.ui.cheatsheets [3.3.100,4.0.0)

    [p2.mirror] Unable to satisfy dependency from
com.signaklara.platform.feature.group 2.5.0.v00000100-34-7w11111119 to
org.eclipse.platform.
eature.group [3.5.0,4.0.0).
    [p2.mirror] Messages while mirroring artifact descriptors.


It appears that my repository was created successfully and these are
just warnings.  Is this true?  Can I hide these warnings?

Thanks,
Mark.
-------------------------------------------- 

> -----Original Message-----
> From: p2-dev-bounces@xxxxxxxxxxx 
> [mailto:p2-dev-bounces@xxxxxxxxxxx] On Behalf Of Nick Boldt
> Sent: May 21, 2009 2:11 PM
> To: P2 developer discussions
> Subject: Re: [p2-dev] Proper Way To Install from P2 Zipped Repos
> 
> With 3.5M7 you can use the new p2.director to install multiple IUs
> (.feature.groups) into a target in a single operation. I've 
> integrated this into the Athena builder so you can use 
> multiple repos (or just the Galileo one) and multiple IUs 
> (emf, cdt, gef, birt) to provision the target before builing 
> or running tests. Just released it to HEAD yesterday - and 
> it's all Ant driven by a couple simple properties to define 
> the repos and IUs.
> 
> I plan to test it with zipped repos next... Let me know if 
> you need a link to the script.
> 
> Nick
> 
> On 5/21/09, Mark Melvin <Mark.Melvin@xxxxxxxxxx> wrote:
> > Hey Paul,
> >
> > Yup - that is where I am going.  I'm not 100% sure this 
> will work for 
> > me as I am doing a "custom" PDE build but I can give it a 
> try.  That 
> > would make things a lot easier.
> > I also just found the updated wiki page describing the P2 
> repository 
> > Ant Tasks (http://wiki.eclipse.org/Equinox/p2/Ant_Tasks).  Pretty 
> > sweet.  I didn't realize you could specifiy multiple source repos!
> >
> > Thanks,
> > Mark.
> >
> >> -----Original Message-----
> >> From: p2-dev-bounces@xxxxxxxxxxx
> >> [mailto:p2-dev-bounces@xxxxxxxxxxx] On Behalf Of Paul Webster
> >> Sent: May 21, 2009 10:13 AM
> >> To: P2 developer discussions
> >> Subject: Re: [p2-dev] RE: Proper Way To Install from P2 
> Zipped Repos
> >>
> >> Mark, is it that you just want to use p2 repos as part of 
> you build?
> >> In the e4 build we download the zipped repos into a 
> directory (don't 
> >> unzip them) and then set a build property:
> >>
> >> # a list of archived p2 repos to compile against 
> >> repoBaseLocation=${untransformed.dir}
> >> transformedRepoLocation=${untransformed.dir}-trans
> >>
> >> PDE build creates a runnable repo from the sum of all of the
> >> p2 repos in the "untransformed.dir"
> >>
> >> You can then use it as part of your compile, and later are part of 
> >> our automated testing in e4 we use the runnable repo and p2 to 
> >> install into everything into the test SDK.
> >>
> >> Is that where you were going with this?
> >>
> >> Later,
> >> PW
> >>
> >> --
> >> Paul Webster
> >> Hi floor.  Make me a sammich! - GIR
> >> _______________________________________________
> >> p2-dev mailing list
> >> p2-dev@xxxxxxxxxxx
> >> https://dev.eclipse.org/mailman/listinfo/p2-dev
> >>
> > _______________________________________________
> > p2-dev mailing list
> > p2-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/p2-dev
> >
> 
> --
> Sent from my mobile device
> 
> Nick Boldt :: JBoss, a division of Red Hat Productization 
> Lead :: JBoss Tools & Dev Studio Release Engineer :: Eclipse 
> Modeling & Dash CBI http://wiki.eclipse.org/User:Nickb
> _______________________________________________
> p2-dev mailing list
> p2-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/p2-dev
>