[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [tycho-user] Installing plugins/features with Tycho?
|
Install to build a product (which includes Eclipse), or run
install-testing to verify what you built installs OK into a given
version of Eclipse?
--
If the former, we use
<packaging>eclipse-repository</packaging>
with
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-publisher-plugin</artifactId>
<version>${tychoVersion}</version>
<configuration>
<publishArtifacts>true</publishArtifacts>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-repository-plugin</artifactId>
<version>${tychoVersion}</version>
<configuration>
<includeAllDependencies>true</includeAllDependencies>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-director-plugin</artifactId>
<version>${tychoVersion}</version>
<!-- executions>
<execution>
<id>materialize-products</id>
<goals>
<goal>materialize-products</goal>
</goals>
</execution>
<execution>
<id>archive-products</id>
<goals>
<goal>archive-products</goal>
</goals>
</execution>
</executions-->
<configuration>
<products>
<product>
<id>com.jboss.jbds.all</id>
</product>
</products>
</configuration>
</plugin>
To produce a product and accompanying update site.
Also needed is com.jboss.jbds.p2.inf:
# This part defines category that contains feature generated based on
product file
units.1.id=com.jboss.jbds.all.category
units.1.version=$version$
units.1.provides.1.namespace=org.eclipse.equinox.p2.iu
units.1.provides.1.name=com.jboss.jbds.all.category
units.1.provides.1.version=$version$
units.1.properties.1.name=org.eclipse.equinox.p2.type.category
units.1.properties.1.value=true
units.1.properties.2.name=org.eclipse.equinox.p2.name
units.1.properties.2.value=JBoss Developer Studio
units.1.requires.1.namespace=org.eclipse.equinox.p2.iu
units.1.requires.1.name=com.jboss.jbds.all
units.1.requires.1.range=[$version$,$version$]
units.1.requires.1.greedy=true
and a com.jboss.jbds.product file, which uses the same uid value of
com.jboss.jbds.all:
<product name="JBoss Developer Studio (Branded Product)"
uid="com.jboss.jbds.all" id="com.jboss.jbds.product.product"
application="org.eclipse.ui.ide.workbench" version="7.0.0.qualifier"
useFeatures="true" includeLaunchers="true">
---
If the latter, see
https://github.com/jbosstools/jbosstools-install-grinder/tree/master/scripts
HTH,
Nick
On 01/10/2013 11:03 AM, Thomas Johnsson wrote:
I'm in the process of Tycho-ize a plugin build project which has
previously used a local brew of maven2+pde.
As the last step I want to install some plugins/features, both external
and own-built, into an eclipse distribution.
I.e., The end result shall be an eclipse ide with plugins/features
installed.
Eclipse has the p2 director application which can be used for installing
plugins from the command line.
In there an equivalent Tycho way of doing this? tycho-p2-director-plugin
perhaps?
Thanks in advance,
-- Thomas
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user
--
Nick Boldt :: http://nick.divbyzero.com