[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [tycho-user] How to involve category.xml within publish-features-and-bundles goal
|
You'd need to convert the features and plugin to a p2 repository first and then add the categories with an eclipse-repository module which references that p2 repository.
This is all not convenient at all. Instead, there should be a goal to do all this in one go (see bug 347303 [1])
Regards
Tobias
[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=347303
> -----Original Message-----
> From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx]
> On Behalf Of Jan Reimann
> Sent: Dienstag, 22. April 2014 18:14
> To: tycho-user@xxxxxxxxxxx
> Subject: Re: [tycho-user] How to involve category.xml within publish-
> features-and-bundles goal
>
> Hi Jeff,
> Ok, now I separated the generation of a p2 update site from generation
> of Eclipse repository with categories. Thus, I have 2 pom.xml now. The
> second only contains this:
>
> <project xmlns="http://maven.apache.org/POM/4.0.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/xsd/maven-4.0.0.xsd">
> <modelVersion>4.0.0</modelVersion>
> <groupId>my.group</groupId>
> <artifactId>myArtefactID</artifactId>
> <version>0.0.1-SNAPSHOT</version>
> <packaging>eclipse-repository</packaging>
> <name>Eclipse p2 Update-Site Generation (with categories)</name>
>
> <properties>
> <tycho-version>0.20.0</tycho-version>
> </properties>
>
> <repositories>
> <repository>
> <id>eclipse-kepler</id>
> <url>http://download.eclipse.org/releases/kepler</url>
> <layout>p2</layout>
> </repository>
> </repositories>
>
> <build>
> <plugins>
> <plugin>
> <groupId>org.eclipse.tycho</groupId>
> <artifactId>tycho-maven-plugin</artifactId>
> <version>${tycho-version}</version>
> <extensions>true</extensions>
> </plugin>
> </plugins>
> </build>
>
> </project>
>
> The problem is that I get the errors that no plugins and features can be
> found. My pom.xml and the category.xml are in the same folder. The
> plugins are in the sub-folder 'plugins' and the features are in the
> sub-folder 'features'. Do they have to be in the same folder as the pom
> and the category.xml?
>
> cheers,
> Jan
>
> Jeff MAURY wrote:
> > Your packaging is pom, should be eclipse-repository
> >
> > Jeff
> >
> >
> > On Tue, Apr 22, 2014 at 12:20 PM, Jan Reimann <janreimone@xxxxxxxxx
> > <mailto:janreimone@xxxxxxxxx>> wrote:
> >
> > Hi,
> > after your pointer I tried it. Unfortunately my build fails and I
> > get the following error:
> >
> > Execution generate-categories of goal
> > org.eclipse.tycho:tycho-p2-__publisher-plugin:0.20.0:__publish-
> categories
> > failed: Tycho build extension not configured for MavenProject
> >
> > So I added the following to the pom:
> >
> > <plugin>
> > <!-- enable tycho build extension -->
> > <groupId>org.eclipse.tycho</__groupId>
> > <artifactId>tycho-maven-__plugin</artifactId>
> > <version>${tycho-version}</__version>
> > <extensions>true</extensions>
> > </plugin>
> >
> > But the error remains. I attached my pom.xml, maybe some one could
> > have a look at it.
> >
> > best regards,
> > Jan
> >
> > Mickael Istria wrote:
> >
> > Hi,
> >
> > I've never faced this use-case, so it's not much more than a
> > guess, but
> > did you try to invoke this plugin after the creation of your p2
> > site?
> > https://eclipse.org/tycho/__sitedocs/tycho-p2/tycho-p2-__publisher-
> plugin/publish-__categories-mojo.html
> > <https://eclipse.org/tycho/sitedocs/tycho-p2/tycho-p2-publisher-
> plugin/publish-categories-mojo.html>
> > --
> > Mickael Istria
> > Eclipse developer at JBoss, by Red Hat <http://www.jboss.org/tools>
> > My blog <http://mickaelistria.__wordpress.com
> > <http://mickaelistria.wordpress.com>> - My Tweets
> > <http://twitter.com/__mickaelistria
> > <http://twitter.com/mickaelistria>>
> >
> >
> >
> > _________________________________________________
> > tycho-user mailing list
> > tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>
> > https://dev.eclipse.org/__mailman/listinfo/tycho-user
> > <https://dev.eclipse.org/mailman/listinfo/tycho-user>
> >
> >
> > _______________________________________________
> > tycho-user mailing list
> > tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>
> > https://dev.eclipse.org/mailman/listinfo/tycho-user
> >
> >
> >
> >
> > --
> > Jeff MAURY
> >
> >
> > "Legacy code" often differs from its suggested alternative by actually
> > working and scaling.
> > - Bjarne Stroustrup
> >
> > http://www.jeffmaury.com
> > http://riadiscuss.jeffmaury.com
> > http://www.twitter.com/jeffmaury
> >
> >
> > _______________________________________________
> > 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