Difference between revisions of "Tycho/Migration Howto"

From Eclipsepedia

Jump to: navigation, search
Line 4: Line 4:
  
 
== Scaffolding: generate pom.xml files ==
 
== Scaffolding: generate pom.xml files ==
 +
 +
Maven needs pom.xml files to drive the build. See [[Tycho/Reference_Card#Generating_POM_files|Generating POM files]] on how to generate an initial skeleton for these files.
  
 
=== Manual adjustments ===
 
=== Manual adjustments ===
 +
 +
In the generated top-level (parent) pom.xml, it's a good idea to globally define the tycho version to use
 +
 +
<pre>
 +
<properties>
 +
  <tycho-version>0.18.0</tycho-version>
 +
</properties>
 +
</pre>
 +
 +
so you can reference it using <tt>${tycho-version}</tt> anywhere in the child pom.xml files e.g. when configuring tycho plugins.
  
 
== Adding p2 repositories to resolve external dependencies ==
 
== Adding p2 repositories to resolve external dependencies ==

Revision as of 05:58, 5 June 2013

This page is intended to give existing projects a jumpstart for setting up a Tycho build.

While each project is different, there are some common steps:

Contents

Scaffolding: generate pom.xml files

Maven needs pom.xml files to drive the build. See Generating POM files on how to generate an initial skeleton for these files.

Manual adjustments

In the generated top-level (parent) pom.xml, it's a good idea to globally define the tycho version to use

<properties>
  <tycho-version>0.18.0</tycho-version>
</properties>

so you can reference it using ${tycho-version} anywhere in the child pom.xml files e.g. when configuring tycho plugins.

Adding p2 repositories to resolve external dependencies

Getting tests to run

Generating source bundles and features

Building a p2 repository