blob: e73261aff7b2ce33d155b8eab9eef194e3dac27e [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<document xmlns="http://maven.apache.org/XDOC/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/XDOC/2.0 http://maven.apache.org/xsd/xdoc-2.0.xsd">
<properties>
<title>tycho-p2-extras:mirror</title>
</properties>
<body>
<section name="tycho-p2-extras:mirror">
<p><strong>Full name</strong>:</p>
<p>org.eclipse.tycho.extras:tycho-p2-extras-plugin:1.5.1-SNAPSHOT:mirror</p>
<p><strong>Description</strong>:</p>
<div>Maven plugin front-end for
org.eclipse.equinox.p2.internal.repository.tools.MirrorApplication.
Intended as a replacement for the <a
href="http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fp2_repositorytasks.htm">p2.mirror
ant task</a>.</div>
<p><strong>Attributes</strong>:</p>
<ul>
<li>Requires a Maven project to be executed.</li>
</ul>
<subsection name="Optional Parameters">
<table border="0">
<tr>
<th>Name</th>
<th>Type</th>
<th>Since</th>
<th>Description</th>
</tr>
<tr>
<td><code><a href="#append">&lt;append&gt;</a></code></td>
<td><code>boolean</code></td>
<td><code>-</code></td>
<td>Whether to append to an existing destination repository. Note that
appending an IU which already exists in the destination repository
will cause the mirror operation to fail.<br/><strong>Default value is</strong>: <code>true</code>.<br/></td>
</tr>
<tr>
<td><code><a href="#compress">&lt;compress&gt;</a></code></td>
<td><code>boolean</code></td>
<td><code>-</code></td>
<td>Whether to compress the destination repository metadata files
(artifacts.xml, content.xml).<br/><strong>Default value is</strong>: <code>true</code>.<br/></td>
</tr>
<tr>
<td><code><a href="#currentModuleAsSource">&lt;currentModuleAsSource&gt;</a></code></td>
<td><code>boolean</code></td>
<td><code>1.1.0</code></td>
<td><p>Whether the current build p2 output should be added as source.
Ignored for non-Tycho packaging types. Ignored if
<code>targetPlatformAsSource</code> == false;</p><br/><strong>Default value is</strong>: <code>true</code>.<br/></td>
</tr>
<tr>
<td><code><a href="#destination">&lt;destination&gt;</a></code></td>
<td><code>File</code></td>
<td><code>-</code></td>
<td>The destination directory to mirror to.<br/><strong>Default value is</strong>: <code>${project.build.directory}/repository</code>.<br/></td>
</tr>
<tr>
<td><code><a href="#filter">&lt;filter&gt;</a></code></td>
<td><code>Map</code></td>
<td><code>-</code></td>
<td>Filter properties. In particular, a platform filter can be
specified by using keys <code>osgi.os, osgi.ws, osgi.arch</code>.<br/></td>
</tr>
<tr>
<td><code><a href="#followOnlyFilteredRequirements">&lt;followOnlyFilteredRequirements&gt;</a></code></td>
<td><code>boolean</code></td>
<td><code>-</code></td>
<td>Follow only requirements which match the filter specified.<br/><strong>Default value is</strong>: <code>false</code>.<br/></td>
</tr>
<tr>
<td><code><a href="#followStrictOnly">&lt;followStrictOnly&gt;</a></code></td>
<td><code>boolean</code></td>
<td><code>-</code></td>
<td>Set to true if only strict dependencies should be followed. A
strict dependency is defined by a version range only including
exactly one version (e.g. [1.0.0.v2009, 1.0.0.v2009]). In
particular, plugins/features included in a feature are normally
required via a strict dependency from the feature to the included
plugin/feature.<br/><strong>Default value is</strong>: <code>false</code>.<br/></td>
</tr>
<tr>
<td><code><a href="#ignoreErrors">&lt;ignoreErrors&gt;</a></code></td>
<td><code>boolean</code></td>
<td><code>1.1.0</code></td>
<td><p>If set to true, mirroring continues to run in the event of an
error during the mirroring process and will just log an info
message.</p><br/><strong>Default value is</strong>: <code>false</code>.<br/></td>
</tr>
<tr>
<td><code><a href="#includeFeatures">&lt;includeFeatures&gt;</a></code></td>
<td><code>boolean</code></td>
<td><code>-</code></td>
<td>Whether or not to include features.<br/><strong>Default value is</strong>: <code>true</code>.<br/></td>
</tr>
<tr>
<td><code><a href="#includeNonGreedy">&lt;includeNonGreedy&gt;</a></code></td>
<td><code>boolean</code></td>
<td><code>-</code></td>
<td>Whether or not to follow non-greedy requirements.<br/><strong>Default value is</strong>: <code>true</code>.<br/></td>
</tr>
<tr>
<td><code><a href="#includeOptional">&lt;includeOptional&gt;</a></code></td>
<td><code>boolean</code></td>
<td><code>-</code></td>
<td>Whether or not to follow optional requirements.<br/><strong>Default value is</strong>: <code>true</code>.<br/></td>
</tr>
<tr>
<td><code><a href="#includePacked">&lt;includePacked&gt;</a></code></td>
<td><code>boolean</code></td>
<td><code>-</code></td>
<td>Whether or not to include pack200 artifacts.<br/><strong>Default value is</strong>: <code>true</code>.<br/></td>
</tr>
<tr>
<td><code><a href="#ius">&lt;ius&gt;</a></code></td>
<td><code>List</code></td>
<td><code>-</code></td>
<td>(Optional) Which IUs to mirror. If omitted, all IUs available in
the source repositories will be mirrored. An IU must specify an id
and may specify a version. If version is omitted, the latest
available version will be queried. By default, IUs required by the
specified IUs will also be mirrored. See also
<code>followStrictOnly</code>,
<code>followOnlyFilteredRequirements</code> ,
<code>includeOptional</code>, <code>includeNonGreedy</code>,
<code>includeFeatures</code>.<br/></td>
</tr>
<tr>
<td><code><a href="#keepNonXzIndexFiles">&lt;keepNonXzIndexFiles&gt;</a></code></td>
<td><code>boolean</code></td>
<td><code>0.25.0</code></td>
<td><p>If <code>xzCompress</code> is <code>true</code>, whether jar or
xml index files should be kept in addition to XZ-compressed index
files. This fallback provides backwards compatibility for pre-Mars
p2 clients which cannot read XZ-compressed index files.</p><br/><strong>Default value is</strong>: <code>true</code>.<br/></td>
</tr>
<tr>
<td><code><a href="#latestVersionOnly">&lt;latestVersionOnly&gt;</a></code></td>
<td><code>boolean</code></td>
<td><code>-</code></td>
<td>Set to <code>true</code> to filter the resulting set of IUs to only
include the latest version of each Installable Unit only. By
default, all versions satisfying dependencies are included.<br/><strong>Default value is</strong>: <code>false</code>.<br/></td>
</tr>
<tr>
<td><code><a href="#mirrorMetadataOnly">&lt;mirrorMetadataOnly&gt;</a></code></td>
<td><code>boolean</code></td>
<td><code>-</code></td>
<td>Whether to mirror metadata only (no artifacts).<br/><strong>Default value is</strong>: <code>false</code>.<br/></td>
</tr>
<tr>
<td><code><a href="#name">&lt;name&gt;</a></code></td>
<td><code>String</code></td>
<td><code>-</code></td>
<td>The target repository name.<br/></td>
</tr>
<tr>
<td><code><a href="#source">&lt;source&gt;</a></code></td>
<td><code>List</code></td>
<td><code>-</code></td>
<td>Source repositori(es) to mirror from.<br/></td>
</tr>
<tr>
<td><code><a href="#targetPlatformAsSource">&lt;targetPlatformAsSource&gt;</a></code></td>
<td><code>boolean</code></td>
<td><code>1.1.0</code></td>
<td><p>Whether to add the target-platform content as a source. Ignored
for non-Tycho packaging types.</p><br/><strong>Default value is</strong>: <code>false</code>.<br/></td>
</tr>
<tr>
<td><code><a href="#xzCompress">&lt;xzCompress&gt;</a></code></td>
<td><code>boolean</code></td>
<td><code>0.25.0</code></td>
<td><p>Add XZ-compressed repository index files. XZ offers better
compression ratios esp. for highly redundant file content.</p><br/><strong>Default value is</strong>: <code>true</code>.<br/></td>
</tr>
</table>
</subsection>
<subsection name="Parameter Details">
<h4><strong><a name="append">&lt;append&gt;</a></strong></h4>
<div>Whether to append to an existing destination repository. Note that
appending an IU which already exists in the destination repository
will cause the mirror operation to fail.</div>
<ul>
<li><strong>Type</strong>: <code>boolean</code></li>
<li><strong>Required</strong>: <code>No</code></li>
<li><strong>Default</strong>: <code>true</code></li>
</ul><hr/><h4><strong><a name="compress">&lt;compress&gt;</a></strong></h4>
<div>Whether to compress the destination repository metadata files
(artifacts.xml, content.xml).</div>
<ul>
<li><strong>Type</strong>: <code>boolean</code></li>
<li><strong>Required</strong>: <code>No</code></li>
<li><strong>Default</strong>: <code>true</code></li>
</ul><hr/><h4><strong><a name="currentModuleAsSource">&lt;currentModuleAsSource&gt;</a></strong></h4>
<div><p>Whether the current build p2 output should be added as source.
Ignored for non-Tycho packaging types. Ignored if
<code>targetPlatformAsSource</code> == false;</p></div>
<ul>
<li><strong>Type</strong>: <code>boolean</code></li>
<li><strong>Since</strong>: <code>1.1.0</code></li>
<li><strong>Required</strong>: <code>No</code></li>
<li><strong>Default</strong>: <code>true</code></li>
</ul><hr/><h4><strong><a name="destination">&lt;destination&gt;</a></strong></h4>
<div>The destination directory to mirror to.</div>
<ul>
<li><strong>Type</strong>: <code>java.io.File</code></li>
<li><strong>Required</strong>: <code>No</code></li>
<li><strong>Default</strong>: <code>${project.build.directory}/repository</code></li>
</ul><hr/><h4><strong><a name="filter">&lt;filter&gt;</a></strong></h4>
<div>Filter properties. In particular, a platform filter can be
specified by using keys <code>osgi.os, osgi.ws, osgi.arch</code>.</div>
<ul>
<li><strong>Type</strong>: <code>java.util.Map</code></li>
<li><strong>Required</strong>: <code>No</code></li>
</ul><hr/><h4><strong><a name="followOnlyFilteredRequirements">&lt;followOnlyFilteredRequirements&gt;</a></strong></h4>
<div>Follow only requirements which match the filter specified.</div>
<ul>
<li><strong>Type</strong>: <code>boolean</code></li>
<li><strong>Required</strong>: <code>No</code></li>
<li><strong>Default</strong>: <code>false</code></li>
</ul><hr/><h4><strong><a name="followStrictOnly">&lt;followStrictOnly&gt;</a></strong></h4>
<div>Set to true if only strict dependencies should be followed. A
strict dependency is defined by a version range only including
exactly one version (e.g. [1.0.0.v2009, 1.0.0.v2009]). In
particular, plugins/features included in a feature are normally
required via a strict dependency from the feature to the included
plugin/feature.</div>
<ul>
<li><strong>Type</strong>: <code>boolean</code></li>
<li><strong>Required</strong>: <code>No</code></li>
<li><strong>Default</strong>: <code>false</code></li>
</ul><hr/><h4><strong><a name="ignoreErrors">&lt;ignoreErrors&gt;</a></strong></h4>
<div><p>If set to true, mirroring continues to run in the event of an
error during the mirroring process and will just log an info
message.</p></div>
<ul>
<li><strong>Type</strong>: <code>boolean</code></li>
<li><strong>Since</strong>: <code>1.1.0</code></li>
<li><strong>Required</strong>: <code>No</code></li>
<li><strong>Default</strong>: <code>false</code></li>
</ul><hr/><h4><strong><a name="includeFeatures">&lt;includeFeatures&gt;</a></strong></h4>
<div>Whether or not to include features.</div>
<ul>
<li><strong>Type</strong>: <code>boolean</code></li>
<li><strong>Required</strong>: <code>No</code></li>
<li><strong>Default</strong>: <code>true</code></li>
</ul><hr/><h4><strong><a name="includeNonGreedy">&lt;includeNonGreedy&gt;</a></strong></h4>
<div>Whether or not to follow non-greedy requirements.</div>
<ul>
<li><strong>Type</strong>: <code>boolean</code></li>
<li><strong>Required</strong>: <code>No</code></li>
<li><strong>Default</strong>: <code>true</code></li>
</ul><hr/><h4><strong><a name="includeOptional">&lt;includeOptional&gt;</a></strong></h4>
<div>Whether or not to follow optional requirements.</div>
<ul>
<li><strong>Type</strong>: <code>boolean</code></li>
<li><strong>Required</strong>: <code>No</code></li>
<li><strong>Default</strong>: <code>true</code></li>
</ul><hr/><h4><strong><a name="includePacked">&lt;includePacked&gt;</a></strong></h4>
<div>Whether or not to include pack200 artifacts.</div>
<ul>
<li><strong>Type</strong>: <code>boolean</code></li>
<li><strong>Required</strong>: <code>No</code></li>
<li><strong>Default</strong>: <code>true</code></li>
</ul><hr/><h4><strong><a name="ius">&lt;ius&gt;</a></strong></h4>
<div>(Optional) Which IUs to mirror. If omitted, all IUs available in
the source repositories will be mirrored. An IU must specify an id
and may specify a version. If version is omitted, the latest
available version will be queried. By default, IUs required by the
specified IUs will also be mirrored. See also
<code>followStrictOnly</code>,
<code>followOnlyFilteredRequirements</code> ,
<code>includeOptional</code>, <code>includeNonGreedy</code>,
<code>includeFeatures</code>.</div>
<ul>
<li><strong>Type</strong>: <code>java.util.List</code></li>
<li><strong>Required</strong>: <code>No</code></li>
</ul><hr/><h4><strong><a name="keepNonXzIndexFiles">&lt;keepNonXzIndexFiles&gt;</a></strong></h4>
<div><p>If <code>xzCompress</code> is <code>true</code>, whether jar or
xml index files should be kept in addition to XZ-compressed index
files. This fallback provides backwards compatibility for pre-Mars
p2 clients which cannot read XZ-compressed index files.</p></div>
<ul>
<li><strong>Type</strong>: <code>boolean</code></li>
<li><strong>Since</strong>: <code>0.25.0</code></li>
<li><strong>Required</strong>: <code>No</code></li>
<li><strong>Default</strong>: <code>true</code></li>
</ul><hr/><h4><strong><a name="latestVersionOnly">&lt;latestVersionOnly&gt;</a></strong></h4>
<div>Set to <code>true</code> to filter the resulting set of IUs to only
include the latest version of each Installable Unit only. By
default, all versions satisfying dependencies are included.</div>
<ul>
<li><strong>Type</strong>: <code>boolean</code></li>
<li><strong>Required</strong>: <code>No</code></li>
<li><strong>Default</strong>: <code>false</code></li>
</ul><hr/><h4><strong><a name="mirrorMetadataOnly">&lt;mirrorMetadataOnly&gt;</a></strong></h4>
<div>Whether to mirror metadata only (no artifacts).</div>
<ul>
<li><strong>Type</strong>: <code>boolean</code></li>
<li><strong>Required</strong>: <code>No</code></li>
<li><strong>Default</strong>: <code>false</code></li>
</ul><hr/><h4><strong><a name="name">&lt;name&gt;</a></strong></h4>
<div>The target repository name.</div>
<ul>
<li><strong>Type</strong>: <code>java.lang.String</code></li>
<li><strong>Required</strong>: <code>No</code></li>
</ul><hr/><h4><strong><a name="source">&lt;source&gt;</a></strong></h4>
<div>Source repositori(es) to mirror from.</div>
<ul>
<li><strong>Type</strong>: <code>java.util.List</code></li>
<li><strong>Required</strong>: <code>No</code></li>
</ul><hr/><h4><strong><a name="targetPlatformAsSource">&lt;targetPlatformAsSource&gt;</a></strong></h4>
<div><p>Whether to add the target-platform content as a source. Ignored
for non-Tycho packaging types.</p></div>
<ul>
<li><strong>Type</strong>: <code>boolean</code></li>
<li><strong>Since</strong>: <code>1.1.0</code></li>
<li><strong>Required</strong>: <code>No</code></li>
<li><strong>Default</strong>: <code>false</code></li>
</ul><hr/><h4><strong><a name="xzCompress">&lt;xzCompress&gt;</a></strong></h4>
<div><p>Add XZ-compressed repository index files. XZ offers better
compression ratios esp. for highly redundant file content.</p></div>
<ul>
<li><strong>Type</strong>: <code>boolean</code></li>
<li><strong>Since</strong>: <code>0.25.0</code></li>
<li><strong>Required</strong>: <code>No</code></li>
<li><strong>Default</strong>: <code>true</code></li>
</ul>
</subsection>
</section>
</body>
</document>