blob: 772bbeb95c33c0107c00463382bdbc69a3d564ef [file] [log] [blame]
<!DOCTYPE html>
<!--
| Generated by Apache Maven Doxia Site Renderer 1.9.1 from target/generated-site/xdoc/package-plugin-mojo.xml at 2020-04-06
| Rendered using Apache Maven Fluido Skin 1.8
-->
<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.9.1" />
<title>Tycho OSGi Packaging Plugin &#x2013; tycho-packaging:package-plugin</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.8.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.8.min.js"></script>
</head>
<body class="topBarDisabled">
<div class="container-fluid">
<header>
<div id="banner">
<div class="pull-left"><div id="bannerLeft"><h2>Tycho OSGi Packaging 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: 2020-04-06<span class="divider">|</span>
</li>
<li id="projectVersion">Version: 1.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="../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-packaging:package-plugin"></a>tycho-packaging:package-plugin</h2>
<p><b>Full name</b>:</p>
<p>org.eclipse.tycho:tycho-packaging-plugin:1.7.0:package-plugin</p>
<p><b>Description</b>:</p>
<div>Creates a jar-based plugin and attaches it as an artifact</div>
<p><b>Attributes</b>:</p>
<ul>
<li>Requires a Maven project to be executed.</li>
</ul>
<section>
<h3><a name="Required_Parameters"></a>Required 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><a href="#buildDirectory">&lt;buildDirectory&gt;</a></td>
<td>File</td>
<td>-</td>
<td>The output directory of the jar file By default this is the Maven
&quot;target/&quot; directory.<br /><b>User property is</b>: project.build.directory.<br /></td>
</tr>
<tr class="a">
<td><a href="#finalName">&lt;finalName&gt;</a></td>
<td>String</td>
<td>-</td>
<td>Name of the generated JAR.<br /><b>User property is</b>: project.build.finalName.<br /><b>Alias is</b>: jarName.</td>
</tr>
</table>
</section>
<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><a href="#additionalFileSets">&lt;additionalFileSets&gt;</a></td>
<td>DefaultFileSet[]</td>
<td>-</td>
<td>Additional files to be included in the bundle jar. This can be used
when bin.includes in build.properties is not flexible
enough , e.g. for generated files. If conflicting, additional files
win over bin.includes<br />
Example:<br />
<div>
<pre>
&lt;additionalFileSets&gt;
&lt;fileSet&gt;
&lt;directory&gt;${project.build.directory}/mytool-gen/&lt;/directory&gt;
&lt;includes&gt;
&lt;include&gt;**/*&lt;/include&gt;
&lt;/includes&gt;
&lt;/fileSet&gt;
&lt;/additionalFileSets&gt;
</pre></div><br /></td>
</tr>
<tr class="a">
<td><a href="#archive">&lt;archive&gt;</a></td>
<td>MavenArchiveConfiguration</td>
<td>-</td>
<td>The <a class="externalLink" href="http://maven.apache.org/shared/maven-archiver/">maven
archiver</a> to use. One of the archiver properties is the
addMavenDescriptor flag, which indicates whether the
generated archive will contain the pom.xml and pom.properties file.
If no archive configuration is specified, the default value is
true. If the maven descriptor should not be added to
the artifact, use the following configuration:
<div>
<pre>
&lt;plugin&gt;
&lt;groupId&gt;org.eclipse.tycho&lt;/groupId&gt;
&lt;artifactId&gt;tycho-packaging-plugin&lt;/artifactId&gt;
&lt;version&gt;${tycho-version}&lt;/version&gt;
&lt;configuration&gt;
&lt;archive&gt;
&lt;addMavenDescriptor&gt;false&lt;/addMavenDescriptor&gt;
&lt;/archive&gt;
&lt;/configuration&gt;
&lt;/plugin&gt;
</pre></div><br /></td>
</tr>
<tr class="b">
<td><a href="#qualifier">&lt;qualifier&gt;</a></td>
<td>String</td>
<td>-</td>
<td>Build qualifier. Recommended way to set this parameter is using
build-qualifier goal.<br /><b>User property is</b>: buildQualifier.<br /></td>
</tr>
<tr class="a">
<td><a href="#sourceReferences">&lt;sourceReferences&gt;</a></td>
<td>SourceReferences</td>
<td>-</td>
<td>Whether to generate an <a class="externalLink" href="http://wiki.eclipse.org/PDE/UI/SourceReferences">Eclipse-SourceReferences</a>
MANIFEST header. When using this parameter, property
${tycho.scmUrl} must be set and be a valid <a class="externalLink" href="http://maven.apache.org/scm/scm-url-format.html">maven SCM
URL</a>. Example configuration:
<div>
<pre>
&lt;sourceReferences&gt;
&lt;generate&gt;true&lt;/generate&gt;
&lt;/sourceReferences&gt;
</pre></div>
Note that a SourceReferencesProvider component must be
registered for the SCM type being used. You may also override the
generated value by configuring:
<div>
<pre>
&lt;sourceReferences&gt;
&lt;generate&gt;true&lt;/generate&gt;
&lt;customValue&gt;scm:myscm:customSourceReferenceValue&lt;/customValue&gt;
&lt;/sourceReferences&gt;
</pre></div><br /></td>
</tr>
<tr class="b">
<td><a href="#strictBinIncludes">&lt;strictBinIncludes&gt;</a></td>
<td>boolean</td>
<td>-</td>
<td>If set to true (the default), missing build.properties
bin.includes will cause build failure. If set to
false, missing build.properties bin.includes will be
reported as warnings but the build will not fail.<br /><b>Default value is</b>: true.<br /></td>
</tr>
<tr class="a">
<td><a href="#useDefaultExcludes">&lt;useDefaultExcludes&gt;</a></td>
<td>boolean</td>
<td>-</td>
<td>(no description)<br /><b>Default value is</b>: true.<br /></td>
</tr>
</table>
</section>
<section>
<h3><a name="Parameter_Details"></a>Parameter Details</h3>
<section>
<h4><a name="a.3CadditionalFileSets.3E"></a><b><a name="additionalFileSets">&lt;additionalFileSets&gt;</a></b></h4>
<div>Additional files to be included in the bundle jar. This can be used
when bin.includes in build.properties is not flexible
enough , e.g. for generated files. If conflicting, additional files
win over bin.includes<br />
Example:<br />
<div>
<pre>
&lt;additionalFileSets&gt;
&lt;fileSet&gt;
&lt;directory&gt;${project.build.directory}/mytool-gen/&lt;/directory&gt;
&lt;includes&gt;
&lt;include&gt;**/*&lt;/include&gt;
&lt;/includes&gt;
&lt;/fileSet&gt;
&lt;/additionalFileSets&gt;
</pre></div></div>
<ul>
<li><b>Type</b>: org.codehaus.plexus.archiver.util.DefaultFileSet[]</li>
<li><b>Required</b>: No</li>
</ul><hr /></section><section>
<h4><a name="a.3Carchive.3E"></a><b><a name="archive">&lt;archive&gt;</a></b></h4>
<div>The <a class="externalLink" href="http://maven.apache.org/shared/maven-archiver/">maven
archiver</a> to use. One of the archiver properties is the
addMavenDescriptor flag, which indicates whether the
generated archive will contain the pom.xml and pom.properties file.
If no archive configuration is specified, the default value is
true. If the maven descriptor should not be added to
the artifact, use the following configuration:
<div>
<pre>
&lt;plugin&gt;
&lt;groupId&gt;org.eclipse.tycho&lt;/groupId&gt;
&lt;artifactId&gt;tycho-packaging-plugin&lt;/artifactId&gt;
&lt;version&gt;${tycho-version}&lt;/version&gt;
&lt;configuration&gt;
&lt;archive&gt;
&lt;addMavenDescriptor&gt;false&lt;/addMavenDescriptor&gt;
&lt;/archive&gt;
&lt;/configuration&gt;
&lt;/plugin&gt;
</pre></div></div>
<ul>
<li><b>Type</b>: org.apache.maven.archiver.MavenArchiveConfiguration</li>
<li><b>Required</b>: No</li>
</ul><hr /></section><section>
<h4><a name="a.3CbuildDirectory.3E"></a><b><a name="buildDirectory">&lt;buildDirectory&gt;</a></b></h4>
<div>The output directory of the jar file By default this is the Maven
&quot;target/&quot; directory.</div>
<ul>
<li><b>Type</b>: java.io.File</li>
<li><b>Required</b>: Yes</li>
<li><b>User Property</b>: project.build.directory</li>
</ul><hr /></section><section>
<h4><a name="a.3CfinalName.3E"></a><b><a name="finalName">&lt;finalName&gt;</a></b></h4>
<div>Name of the generated JAR.</div>
<ul>
<li><b>Type</b>: java.lang.String</li>
<li><b>Required</b>: Yes</li>
<li><b>User Property</b>: project.build.finalName</li>
<li><b>Alias</b>: jarName</li>
</ul><hr /></section><section>
<h4><a name="a.3Cqualifier.3E"></a><b><a name="qualifier">&lt;qualifier&gt;</a></b></h4>
<div>Build qualifier. Recommended way to set this parameter is using
build-qualifier goal.</div>
<ul>
<li><b>Type</b>: java.lang.String</li>
<li><b>Required</b>: No</li>
<li><b>User Property</b>: buildQualifier</li>
</ul><hr /></section><section>
<h4><a name="a.3CsourceReferences.3E"></a><b><a name="sourceReferences">&lt;sourceReferences&gt;</a></b></h4>
<div>Whether to generate an <a class="externalLink" href="http://wiki.eclipse.org/PDE/UI/SourceReferences">Eclipse-SourceReferences</a>
MANIFEST header. When using this parameter, property
${tycho.scmUrl} must be set and be a valid <a class="externalLink" href="http://maven.apache.org/scm/scm-url-format.html">maven SCM
URL</a>. Example configuration:
<div>
<pre>
&lt;sourceReferences&gt;
&lt;generate&gt;true&lt;/generate&gt;
&lt;/sourceReferences&gt;
</pre></div>
Note that a SourceReferencesProvider component must be
registered for the SCM type being used. You may also override the
generated value by configuring:
<div>
<pre>
&lt;sourceReferences&gt;
&lt;generate&gt;true&lt;/generate&gt;
&lt;customValue&gt;scm:myscm:customSourceReferenceValue&lt;/customValue&gt;
&lt;/sourceReferences&gt;
</pre></div></div>
<ul>
<li><b>Type</b>: org.eclipse.tycho.packaging.SourceReferences</li>
<li><b>Required</b>: No</li>
</ul><hr /></section><section>
<h4><a name="a.3CstrictBinIncludes.3E"></a><b><a name="strictBinIncludes">&lt;strictBinIncludes&gt;</a></b></h4>
<div>If set to true (the default), missing build.properties
bin.includes will cause build failure. If set to
false, missing build.properties bin.includes will be
reported as warnings but the build will not fail.</div>
<ul>
<li><b>Type</b>: boolean</li>
<li><b>Required</b>: No</li>
<li><b>Default</b>: true</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>: boolean</li>
<li><b>Required</b>: No</li>
<li><b>Default</b>: true</li>
</ul>
</section></section>
</section>
</main>
</div>
</div>
<hr/>
<footer>
<div class="container-fluid">
<div class="row-fluid">
<p>Copyright &#169; 2008&#x2013;2020<a href="http://www.eclipse.org/">Eclipse Foundation</a>.
.</p>
</div>
</div>
</footer>
</body>
</html>