blob: 5f44a9e6a28116243222fb4f275c7a38914d99b0 [file] [log] [blame]
<!DOCTYPE html>
<!--
| Generated by Apache Maven Doxia Site Renderer 1.11.1 from target/generated-site/xdoc/source-feature-mojo.xml at 2022-02-28
| Rendered using Apache Maven Fluido Skin 1.10.0
-->
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="generator" content="Apache Maven Doxia Site Renderer 1.11.1" />
<title>Tycho Source Feature Generation Plugin &#x2013; tycho-source-feature:source-feature</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.10.0.min.css" />
<link rel="stylesheet" href="./css/site.css" />
<link rel="stylesheet" href="./css/print.css" media="print" />
<script src="./js/apache-maven-fluido-1.10.0.min.js"></script>
</head>
<body class="topBarDisabled">
<div class="container-fluid">
<header>
<div id="banner">
<div class="pull-left"><div id="bannerLeft"><h2>Tycho Source Feature Generation Plugin</h2>
</div>
</div>
<div class="pull-right"></div>
<div class="clear"><hr/></div>
</div>
<div id="breadcrumbs">
<ul class="breadcrumb">
<li id="publishDate">Last Published: 2022-02-28<span class="divider">|</span>
</li>
<li id="projectVersion">Version: 2.7.0</li>
</ul>
</div>
</header>
<div class="row-fluid">
<header id="leftColumn" class="span2">
<nav class="well sidebar-nav">
<ul class="nav nav-list">
<li class="nav-header">Tycho</li>
<li><a href="../../index.html" title="Introduction"><span class="none"></span>Introduction</a></li>
<li><a href="../../target-platform-configuration/plugin-info.html" title="Target Platform Configuration"><span class="none"></span>Target Platform Configuration</a></li>
<li><a href="../../tycho-compiler-plugin/plugin-info.html" title="Compiler Plugin"><span class="none"></span>Compiler Plugin</a></li>
<li><a href="../../tycho-packaging-plugin/plugin-info.html" title="Packaging Plugin"><span class="none"></span>Packaging Plugin</a></li>
<li><a href="../../tycho-surefire-plugin/plugin-info.html" title="Surefire Plugin"><span class="none"></span>Surefire Plugin</a></li>
<li><a href="../../tycho-p2/tycho-p2-publisher-plugin/plugin-info.html" title="p2 Publisher Plugin"><span class="none"></span>p2 Publisher Plugin</a></li>
<li><a href="../../tycho-p2/tycho-p2-repository-plugin/plugin-info.html" title="p2 Repository Plugin"><span class="none"></span>p2 Repository Plugin</a></li>
<li><a href="../../tycho-p2/tycho-p2-director-plugin/plugin-info.html" title="p2 Director Plugin"><span class="none"></span>p2 Director Plugin</a></li>
<li><a href="../../tycho-source-plugin/plugin-info.html" title="Source Plugin"><span class="none"></span>Source Plugin</a></li>
<li><a href="../../tycho-release/tycho-versions-plugin/plugin-info.html" title="Versions Plugin"><span class="none"></span>Versions Plugin</a></li>
<li><a href="../../tycho-pomgenerator-plugin/plugin-info.html" title="POM Generator Plugin"><span class="none"></span>POM Generator Plugin</a></li>
<li><a href="" title="Properties"><span class="icon-chevron-down"></span>Properties</a>
<ul class="nav nav-list">
<li><a href="../../BuildProperties.html" title="Build Properties"><span class="none"></span>Build Properties</a></li>
<li><a href="../../TychoProperties.html" title="Tycho Properties"><span class="none"></span>Tycho Properties</a></li>
</ul></li>
<li class="nav-header">Tycho Extras</li>
<li><a href="../../tycho-extras/index.html" title="Introduction"><span class="none"></span>Introduction</a></li>
<li><a href="../../tycho-extras/tycho-p2-extras-plugin/plugin-info.html" title="P2 Extras Plugin"><span class="none"></span>P2 Extras Plugin</a></li>
<li><a href="../../tycho-extras/target-platform-validation-plugin/plugin-info.html" title="Target Platform Validation Plugin"><span class="none"></span>Target Platform Validation Plugin</a></li>
<li><a href="../../tycho-extras/tycho-eclipserun-plugin/plugin-info.html" title="Eclipserun Plugin"><span class="none"></span>Eclipserun Plugin</a></li>
<li><a href="../../tycho-extras/tycho-document-bundle-plugin/plugin-info.html" title="Document Bundle Plugin"><span class="none"></span>Document Bundle Plugin</a></li>
<li><a href="../../tycho-extras/tycho-source-feature-plugin/plugin-info.html" title="Source Feature Generation Plugin"><span class="none"></span>Source Feature Generation Plugin</a></li>
<li><a href="../../tycho-extras/tycho-pack200/index.html" title="Pack200 Plugins"><span class="icon-chevron-down"></span>Pack200 Plugins</a>
<ul class="nav nav-list">
<li><a href="../../tycho-extras/tycho-pack200/tycho-pack200a-plugin/plugin-info.html" title="Normalization Plugin"><span class="none"></span>Normalization Plugin</a></li>
<li><a href="../../tycho-extras/tycho-pack200/tycho-pack200b-plugin/plugin-info.html" title="Pack Plugin"><span class="none"></span>Pack Plugin</a></li>
</ul></li>
</ul>
</nav>
<div class="well sidebar-nav">
<hr />
<div id="poweredBy">
<div class="clear"></div>
<div class="clear"></div>
<div class="clear"></div>
<a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
</div>
</div>
</header>
<main id="bodyColumn" class="span10" >
<section>
<h2><a name="tycho-source-feature:source-feature"></a>tycho-source-feature:source-feature</h2>
<p><b>Full name</b>:</p>
<p>org.eclipse.tycho.extras:tycho-source-feature-plugin:2.7.0:source-feature</p>
<p><b>This plugin goal has been deprecated</b>:</p>
<div>this mojo is replaced by the tycho-source-plugin with execution
feature-source which offers equivalent and even enhanced
functionality</div>
<p><b>Description</b>:</p>
<div>Generates a source feature for projects of packaging type
<code>eclipse-feature</code>. By default, the generated source
feature
<ul>
<li>Declares feature id
<code>&lt;originalFeatureId&gt;.source</code></li>
<li>Declares feature label <code>&quot;&lt;originalFeatureLabel&gt;
Developer Resources&quot;</code></li>
<li>If present, reuses feature provider, description, copyright and
license as well as respective URLs from
&lt;originalFeature&gt;</li>
<li>Includes all plugins included by &lt;originalFeature&gt;, but
each with <code>.source</code> appended to each plugin id</li>
<li>Includes all features included by &lt;originalFeature&gt;, but
each with <code>.source</code> appended to each feature id</li>
<li>Includes the original feature. This ensures that binaries and
corresponding sources match.</li>
</ul>
Source feature generation can be customized by adding files under
path <code>sourceTemplateFeature/</code>. Files added here will be
added to the root of the source feature jar. Especially, if file
<code>sourceTemplateFeature/feature.properties</code> is found,
values in this file override values of respective keys in
<code>&lt;originalFeature&gt;/feature.properties</code>.</div>
<p><b>Attributes</b>:</p>
<ul>
<li>Requires a Maven project to be executed.</li>
<li>The goal is thread-safe and supports parallel builds.</li>
<li>Binds by default to the <a class="externalLink" href="http://maven.apache.org/ref/current/maven-core/lifecycles.html">lifecycle phase</a>: <code>package</code>.</li>
</ul>
<section>
<h3><a name="Optional_Parameters"></a>Optional Parameters</h3>
<table class="table table-striped" border="0">
<tr class="a">
<th>Name</th>
<th>Type</th>
<th>Since</th>
<th>Description</th>
</tr>
<tr class="b">
<td align="left"><code><a href="#archive">&lt;archive&gt;</a></code></td>
<td><code>MavenArchiveConfiguration</code></td>
<td><code>-</code></td>
<td>(no description)<br /></td>
</tr>
<tr class="a">
<td align="left"><code><a href="#brandingPlugin">&lt;brandingPlugin&gt;</a></code></td>
<td><code>String</code></td>
<td><code>-</code></td>
<td>Use this to explicitly set the <a class="externalLink" href="https://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.pde.doc.user%2Fguide%2Ftools%2Feditors%2Ffeature_editor%2Ffeature_editor.htm">branding
plugin attribute</a> of the generated source feature (overrides
<code>reuseBrandingPlugin</code>).<br /></td>
</tr>
<tr class="b">
<td align="left"><code><a href="#excludes">&lt;excludes&gt;</a></code></td>
<td><code>PlexusConfiguration</code></td>
<td><code>-</code></td>
<td>Bundles and features that do not have corresponding sources.
Example:
<div>
<pre>
&lt;excludes&gt;
&lt;plugin id=&quot;plugin.nosource&quot;/&gt;
&lt;feature id=&quot;feature.nosource&quot;/&gt;
&lt;/excludes&gt;
</pre></div><br /></td>
</tr>
<tr class="a">
<td align="left"><code><a href="#finalName">&lt;finalName&gt;</a></code></td>
<td><code>String</code></td>
<td><code>-</code></td>
<td>The filename to be used for the generated archive file. For the
source-feature goal, &quot;-sources-feature&quot; is appended to this
filename.<br /><b>User property is</b>: <code>project.build.finalName</code>.<br /></td>
</tr>
<tr class="b">
<td align="left"><code><a href="#includeBinaryFeature">&lt;includeBinaryFeature&gt;</a></code></td>
<td><code>boolean</code></td>
<td><code>-</code></td>
<td>Whether to add an include dependency from the source feature to the
corresponding binary feature. If <code>true</code>, this ensures
the version of the installed sources matches the binaries.<br /><b>Default value is</b>: <code>true</code>.<br /></td>
</tr>
<tr class="a">
<td align="left"><code><a href="#labelSuffix">&lt;labelSuffix&gt;</a></code></td>
<td><code>String</code></td>
<td><code>-</code></td>
<td>Source feature label suffix. Unless explicitly provided in
<code>sourceTemplateFeature/feature.properties</code>, this suffix
will be appended to the original feature label to construct the
source feature label.<br /><b>Default value is</b>: <code> Developer Resources</code>.<br /></td>
</tr>
<tr class="b">
<td align="left"><code><a href="#plugins">&lt;plugins&gt;</a></code></td>
<td><code>PlexusConfiguration</code></td>
<td><code>-</code></td>
<td>Additional plugins to include in the generated source feature.
Beware that these additional plugins are not considered during
build target platform calculation and ordering of reactor projects.
Use &lt;extraRequirements&gt; dependency resolver configuration to
guarantee proper reactor build order.
<p><b>WARNING</b> This experimental parameter may be
removed from future source-feature mojo versions without prior
notice.</p><br /></td>
</tr>
<tr class="a">
<td align="left"><code><a href="#reuseBrandingPlugin">&lt;reuseBrandingPlugin&gt;</a></code></td>
<td><code>boolean</code></td>
<td><code>-</code></td>
<td>Whether to reuse an explicit branding plugin from the binary
feature for the generated source feature.<br /><b>Default value is</b>: <code>true</code>.<br /></td>
</tr>
<tr class="b">
<td align="left"><code><a href="#skip">&lt;skip&gt;</a></code></td>
<td><code>boolean</code></td>
<td><code>-</code></td>
<td>Whether to skip source feature generation.<br /><b>Default value is</b>: <code>false</code>.<br /></td>
</tr>
<tr class="a">
<td align="left"><code><a href="#useDefaultExcludes">&lt;useDefaultExcludes&gt;</a></code></td>
<td><code>boolean</code></td>
<td><code>-</code></td>
<td>(no description)<br /><b>Default value is</b>: <code>true</code>.<br /></td>
</tr>
</table>
</section>
<section>
<h3><a name="Parameter_Details"></a>Parameter Details</h3>
<section>
<h4><a name="a.3Carchive.3E"></a><b><a name="archive">&lt;archive&gt;</a></b></h4>
<div>(no description)</div>
<ul>
<li><b>Type</b>: <code>org.apache.maven.archiver.MavenArchiveConfiguration</code></li>
<li><b>Required</b>: <code>No</code></li>
</ul><hr /></section><section>
<h4><a name="a.3CbrandingPlugin.3E"></a><b><a name="brandingPlugin">&lt;brandingPlugin&gt;</a></b></h4>
<div>Use this to explicitly set the <a class="externalLink" href="https://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.pde.doc.user%2Fguide%2Ftools%2Feditors%2Ffeature_editor%2Ffeature_editor.htm">branding
plugin attribute</a> of the generated source feature (overrides
<code>reuseBrandingPlugin</code>).</div>
<ul>
<li><b>Type</b>: <code>java.lang.String</code></li>
<li><b>Required</b>: <code>No</code></li>
</ul><hr /></section><section>
<h4><a name="a.3Cexcludes.3E"></a><b><a name="excludes">&lt;excludes&gt;</a></b></h4>
<div>Bundles and features that do not have corresponding sources.
Example:
<div>
<pre>
&lt;excludes&gt;
&lt;plugin id=&quot;plugin.nosource&quot;/&gt;
&lt;feature id=&quot;feature.nosource&quot;/&gt;
&lt;/excludes&gt;
</pre></div></div>
<ul>
<li><b>Type</b>: <code>org.codehaus.plexus.configuration.PlexusConfiguration</code></li>
<li><b>Required</b>: <code>No</code></li>
</ul><hr /></section><section>
<h4><a name="a.3CfinalName.3E"></a><b><a name="finalName">&lt;finalName&gt;</a></b></h4>
<div>The filename to be used for the generated archive file. For the
source-feature goal, &quot;-sources-feature&quot; is appended to this
filename.</div>
<ul>
<li><b>Type</b>: <code>java.lang.String</code></li>
<li><b>Required</b>: <code>No</code></li>
<li><b>User Property</b>: <code>project.build.finalName</code></li>
</ul><hr /></section><section>
<h4><a name="a.3CincludeBinaryFeature.3E"></a><b><a name="includeBinaryFeature">&lt;includeBinaryFeature&gt;</a></b></h4>
<div>Whether to add an include dependency from the source feature to the
corresponding binary feature. If <code>true</code>, this ensures
the version of the installed sources matches the binaries.</div>
<ul>
<li><b>Type</b>: <code>boolean</code></li>
<li><b>Required</b>: <code>No</code></li>
<li><b>Default</b>: <code>true</code></li>
</ul><hr /></section><section>
<h4><a name="a.3ClabelSuffix.3E"></a><b><a name="labelSuffix">&lt;labelSuffix&gt;</a></b></h4>
<div>Source feature label suffix. Unless explicitly provided in
<code>sourceTemplateFeature/feature.properties</code>, this suffix
will be appended to the original feature label to construct the
source feature label.</div>
<ul>
<li><b>Type</b>: <code>java.lang.String</code></li>
<li><b>Required</b>: <code>No</code></li>
<li><b>Default</b>: <code> Developer Resources</code></li>
</ul><hr /></section><section>
<h4><a name="a.3Cplugins.3E"></a><b><a name="plugins">&lt;plugins&gt;</a></b></h4>
<div>Additional plugins to include in the generated source feature.
Beware that these additional plugins are not considered during
build target platform calculation and ordering of reactor projects.
Use &lt;extraRequirements&gt; dependency resolver configuration to
guarantee proper reactor build order.
<p><b>WARNING</b> This experimental parameter may be
removed from future source-feature mojo versions without prior
notice.</p></div>
<ul>
<li><b>Type</b>: <code>org.codehaus.plexus.configuration.PlexusConfiguration</code></li>
<li><b>Required</b>: <code>No</code></li>
</ul><hr /></section><section>
<h4><a name="a.3CreuseBrandingPlugin.3E"></a><b><a name="reuseBrandingPlugin">&lt;reuseBrandingPlugin&gt;</a></b></h4>
<div>Whether to reuse an explicit branding plugin from the binary
feature for the generated source feature.</div>
<ul>
<li><b>Type</b>: <code>boolean</code></li>
<li><b>Required</b>: <code>No</code></li>
<li><b>Default</b>: <code>true</code></li>
</ul><hr /></section><section>
<h4><a name="a.3Cskip.3E"></a><b><a name="skip">&lt;skip&gt;</a></b></h4>
<div>Whether to skip source feature generation.</div>
<ul>
<li><b>Type</b>: <code>boolean</code></li>
<li><b>Required</b>: <code>No</code></li>
<li><b>Default</b>: <code>false</code></li>
</ul><hr /></section><section>
<h4><a name="a.3CuseDefaultExcludes.3E"></a><b><a name="useDefaultExcludes">&lt;useDefaultExcludes&gt;</a></b></h4>
<div>(no description)</div>
<ul>
<li><b>Type</b>: <code>boolean</code></li>
<li><b>Required</b>: <code>No</code></li>
<li><b>Default</b>: <code>true</code></li>
</ul>
</section></section>
</section>
</main>
</div>
</div>
<hr/>
<footer>
<div class="container-fluid">
<div class="row-fluid">
<p>&#169; 2008&#x2013;2022
<a href="http://www.eclipse.org/">Eclipse Foundation</a>
</p>
</div>
</div>
</footer>
<script>
if(anchors) {
anchors.add();
}
</script>
</body>
</html>