Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] tycho-p2-extras-plugin FeaturesAndBundlesPublisher - still no visible installable units?

I am using this project:

https://docs.sonatype.org/display/TYCHO/Tycho-extras+-+FeaturesAndBundlesPublisher

At compile time specified artifacts are downloaded from eg. nexus to a
temp folder and the the FeaturesAndBundlePublisher is run to create a
p2 repo from these downloaded bundles. The resulting p2 site can be
found in the eclipse IDE (eg. specifying a new p2 site and point to
the locally created p2 repo). But its not possible to add any of the
created bundles - I have also tried to uncheck the "Group items by
Category".

As I remember the FeaturesAndBundlePublisher creates a "valid" p2 site
but this does not necessarily mean that the contained bundles are
visible inside the eclipse IDE. See:

http://wiki.eclipse.org/Equinox/p2/Publisher#Features_And_Bundles_Publisher_Application


So it would makes sense to specify a category.xml file eg. one that
simply shows all bundles:


<?xml version="1.0" encoding="UTF-8"?>
<site>
   <category-def name="all" label="All Bundles"/>
   <iu>
      <category name="all"/>
      <query><expression type="match">providedCapabilities.exists(p |
p.namespace == 'osgi.bundle')</expression></query>
   </iu>

</site>

But does a newer version than 0.12 of the tycho-p2-extras-plugin supports this?



On Wed, Nov 9, 2011 at 10:16 PM, Dahanne, Anthony
<Anthony.Dahanne@xxxxxxxxxxxxx> wrote:
> Did you uncheck group items by category ?[1]
> So that you can see them from eclipse
> Also did you define a category.xml, so that you'll be able to see them categorized in the ide ?[2]
> I am not sure I understand what you are trying to do (compared to the basic use of <packaging>eclipse-repository</packaging>)
>
> HTH
> Anthony
> [1] attached picture
> [2] https://github.com/eclipse/tycho/blob/master/tycho-demo/itp04-rcp/eclipse-repository/category.xml
>
>
>
>
>
>
>
>
>
>
>
> Le contenu de ce courriel s'adresse au destinataire seulement. Il contient de l'information pouvant être confidentielle. Vous ne devez ni le copier ni l'utiliser ni le divulguer à qui que ce soit à moins que vous soyez le destinataire ou une personne désignée autorisée. Si vous le receviez par erreur, veuillez nous aviser immédiatement et le détruire.
>
> The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it.
>
>
> De : tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] De la part de motes motes
> Envoyé : 9 novembre 2011 15:56
> À : Tycho user list
> Objet : [tycho-user] tycho-p2-extras-plugin FeaturesAndBundlesPublisher - still no visible installable units?
>
> I am using tycho 0.13 and the tycho-p2-extras-plugin to create a p2
> site from a bunch of bundles:
>
>                        <plugin>
>                                <groupId>org.eclipse.tycho.extras</groupId>
>                                <artifactId>tycho-p2-extras-plugin</artifactId>
>                                <version>0.12.0</version>
>                                <executions>
>                                        <execution>
>                                                <phase>prepare-package</phase>
>                                                <goals>
>                                                        <goal>publish-features-and-bundles</goal>
>                                                </goals>
>                                        </execution>
>                                </executions>
>                                <configuration>
>                                        <compress>false</compress>
>                                </configuration>
>                        </plugin>
>
>                        <plugin>
>                                <artifactId>maven-dependency-plugin</artifactId>
>                                <executions>
>                                        <execution>
>                                                <id>copy-bundles-for-publishing</id>
>                                                <phase>process-resources</phase>
>                                                <goals>
>                                                        <goal>copy</goal>
>                                                </goals>
>                                                <configuration>
>                                                        <artifactItems>
>                                                                <artifactItem>
>                                                                        <groupId>bla</groupId>
>                                                                        <artifactId>bla</artifactId>
>                                                                        <version>1.0</version>
>                                                                </artifactItem>
>                                                                       ...
>                                                        </artifactItems>
>                                                        <outputDirectory>${project.basedir}/target/source/plugins</outputDirectory>
>                                                </configuration>
>                                        </execution>
>                                </executions>
>                        </plugin>
>
> The generated p2 repository can be consumed by tycho just fine. But it
> cannot be used inside the eclipse IDE -  eg. added to a target
> definition - because it has no "visible" installable units. As I
> understand the category publisher needs to be executed to take of
> this. One solutions is to add it as a directory but it could be nice
> to refer to is as a p2 site.
>
> Are there any plans to make bundles in the p2 repo created by the
> tycho-p2-extras-plugin visible inside eclipse?
> _______________________________________________
> tycho-user mailing list
> tycho-user@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/tycho-user
>
>
> _______________________________________________
> tycho-user mailing list
> tycho-user@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/tycho-user
>
>


Back to the top