Modified: maven/website/components/plugins-archives/maven-shade-plugin-LATEST/shade-mojo.html ============================================================================== --- maven/website/components/plugins-archives/maven-shade-plugin-LATEST/shade-mojo.html (original) +++ maven/website/components/plugins-archives/maven-shade-plugin-LATEST/shade-mojo.html Thu Mar 24 18:14:26 2022 @@ -1,974 +1,1030 @@ -<!DOCTYPE html> -<!-- - | Generated by Apache Maven Doxia Site Renderer 1.8.1 at 2021-07-14 - | Rendered using Apache Maven Fluido Skin 1.6 ---> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> - <head> - <meta charset="UTF-8" /> - <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20210714" /> - <meta http-equiv="Content-Language" content="en" /> - <title>Apache Maven Shade Plugin – shade:shade</title> - <link rel="stylesheet" href="./css/apache-maven-fluido-1.6.min.css" /> - <link rel="stylesheet" href="./css/site.css" /> - <link rel="stylesheet" href="./css/print.css" media="print" /> - <script type="text/javascript" src="./js/apache-maven-fluido-1.6.min.js"></script> - <!-- Google Analytics --> - <script type="text/javascript"> - var _gaq = _gaq || []; - _gaq.push(['_setAccount', 'UA-140879-1']); - _gaq.push(['_trackPageview']); - (function() { - var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; - ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; - var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); - })(); - </script> - </head> - <body class="topBarDisabled"> - <div class="container-fluid"> - <div id="banner"> - <div class="pull-left"><a href="http://www.apache.org/" id="bannerLeft"><img src="http://maven.apache.org/images/apache-maven-project.png" /></a></div> - <div class="pull-right"><a href="http://maven.apache.org/" id="bannerRight"><img src="http://maven.apache.org/images/maven-logo-black-on-white.png" /></a></div> - <div class="clear"><hr/></div> - </div> - - <div id="breadcrumbs"> - <ul class="breadcrumb"> - <li class=""><a href="https://www.apache.org/" class="externalLink" title="Apache">Apache</a><span class="divider">/</span></li> - <li class=""><a href="../../index.html" title="Maven">Maven</a><span class="divider">/</span></li> - <li class=""><a href="../index.html" title="Plugins">Plugins</a><span class="divider">/</span></li> - <li class=""><a href="index.html" title="Apache Maven Shade Plugin">Apache Maven Shade Plugin</a><span class="divider">/</span></li> - <li class="active ">shade:shade</li> - <li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2021-07-14</li> - <li id="projectVersion" class="pull-right">Version: 3.3.1-SNAPSHOT</li> - </ul> - </div> - <div class="row-fluid"> - <div id="leftColumn" class="span2"> - <div class="well sidebar-nav"> -<ul class="nav nav-list"> - <li class="nav-header">Overview</li> - <li><a href="index.html" title="Introduction"><span class="none"></span>Introduction</a> </li> - <li><a href="plugin-info.html" title="Goals"><span class="none"></span>Goals</a> </li> - <li><a href="usage.html" title="Usage"><span class="none"></span>Usage</a> </li> - <li><a href="faq.html" title="FAQ"><span class="none"></span>FAQ</a> </li> - <li><a href="http://www.apache.org/licenses/" class="externalLink" title="License"><span class="none"></span>License</a> </li> - <li><a href="download.html" title="Download"><span class="none"></span>Download</a> </li> - <li class="nav-header">Examples</li> - <li><a href="examples/includes-excludes.html" title="Selecting Contents for Uber JAR"><span class="none"></span>Selecting Contents for Uber JAR</a> </li> - <li><a href="examples/class-relocation.html" title="Relocating Classes"><span class="none"></span>Relocating Classes</a> </li> - <li><a href="examples/attached-artifact.html" title="Attaching the Shaded Artifact"><span class="none"></span>Attaching the Shaded Artifact</a> </li> - <li><a href="examples/executable-jar.html" title="Executable JAR"><span class="none"></span>Executable JAR</a> </li> - <li><a href="examples/resource-transformers.html" title="Resource Transformers"><span class="none"></span>Resource Transformers</a> </li> - <li><a href="examples/use-shader-other-impl.html" title="Using another Shader implementation"><span class="none"></span>Using another Shader implementation</a> </li> - <li class="nav-header">Project Documentation</li> - <li><a href="project-info.html" title="Project Information"><span class="icon-chevron-right"></span>Project Information</a> </li> - <li><a href="project-reports.html" title="Project Reports"><span class="icon-chevron-right"></span>Project Reports</a> </li> - <li class="nav-header">Maven Projects</li> - <li><a href="../../archetype/index.html" title="Archetype"><span class="none"></span>Archetype</a> </li> - <li><a href="../../resolver/index.html" title="Artifact Resolver"><span class="none"></span>Artifact Resolver</a> </li> - <li><a href="../../doxia/index.html" title="Doxia"><span class="none"></span>Doxia</a> </li> - <li><a href="../../jxr/index.html" title="JXR"><span class="none"></span>JXR</a> </li> - <li><a href="../../ref/current" title="Maven"><span class="none"></span>Maven</a> </li> - <li><a href="../../pom/index.html" title="Parent POMs"><span class="none"></span>Parent POMs</a> </li> - <li><a href="../index.html" title="Plugins"><span class="none"></span>Plugins</a> </li> - <li><a href="../../plugin-testing/index.html" title="Plugin Testing"><span class="none"></span>Plugin Testing</a> </li> - <li><a href="../../plugin-tools/index.html" title="Plugin Tools"><span class="none"></span>Plugin Tools</a> </li> - <li><a href="../../apache-resource-bundles/index.html" title="Resource Bundles"><span class="none"></span>Resource Bundles</a> </li> - <li><a href="../../scm/index.html" title="SCM"><span class="none"></span>SCM</a> </li> - <li><a href="../../shared/index.html" title="Shared Components"><span class="none"></span>Shared Components</a> </li> - <li><a href="../../skins/index.html" title="Skins"><span class="none"></span>Skins</a> </li> - <li><a href="../../surefire/index.html" title="Surefire"><span class="none"></span>Surefire</a> </li> - <li><a href="../../wagon/index.html" title="Wagon"><span class="none"></span>Wagon</a> </li> - <li class="nav-header">ASF</li> - <li><a href="https://www.apache.org/foundation/how-it-works.html" class="externalLink" title="How Apache Works"><span class="none"></span>How Apache Works</a> </li> - <li><a href="https://www.apache.org/foundation/" class="externalLink" title="Foundation"><span class="none"></span>Foundation</a> </li> - <li><a href="https://www.apache.org/foundation/sponsorship.html" class="externalLink" title="Sponsoring Apache"><span class="none"></span>Sponsoring Apache</a> </li> - <li><a href="https://www.apache.org/foundation/thanks.html" class="externalLink" title="Thanks"><span class="none"></span>Thanks</a> </li> - </ul> -<form id="search-form" action="https://www.google.com/search" method="get" > - <input value="$sitesearchValue" name="sitesearch" type="hidden"/> - <input class="search-query" name="q" id="query" type="text" /> -</form> -<script type="text/javascript">asyncJs( 'https://cse.google.com/brand?form=search-form' )</script> - <hr /> - <div id="poweredBy"> - <script type="text/javascript">asyncJs( 'https://apis.google.com/js/plusone.js' )</script> - <div class="g-plusone" data-href="https://maven.apache.org/plugins/maven-shade-plugin/" data-size="tall" ></div> - <div class="clear"></div> - <div class="clear"></div> - <div id="twitter"> - <a href="https://twitter.com/ASFMavenProject" class="twitter-follow-button" data-show-count="false" data-align="left" data-size="medium" data-show-screen-name="true" data-lang="en">Follow ASFMavenProject</a> - <script type="text/javascript">!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> - </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> - </div> - <div id="bodyColumn" class="span10" > - - - <div class="section"> -<h2><a name="shade:shade"></a>shade:shade</h2> - -<p><b>Full name</b>:</p> - -<p>org.apache.maven.plugins:maven-shade-plugin:3.3.1-SNAPSHOT:shade</p> - -<p><b>Description</b>:</p> - -<div>Mojo that performs shading delegating to the Shader component.</div> - -<p><b>Attributes</b>:</p> - -<ul> - -<li>Requires a Maven project to be executed.</li> - -<li>Requires dependency resolution of artifacts in scope: <tt>runtime</tt>.</li> - -<li>Binds by default to the <a class="externalLink" href="http://maven.apache.org/ref/current/maven-core/lifecycles.html">lifecycle phase</a>: <tt>package</tt>.</li> - </ul> - -<div class="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><tt><a href="#artifactSet"><artifactSet></a></tt></td> - -<td><tt>ArtifactSet</tt></td> - -<td><tt>-</tt></td> - -<td>Artifacts to include/exclude from the final artifact. Artifacts are -denoted by composite identifiers of the general form -<tt>groupId:artifactId:type:classifier</tt>. Since version 1.3, -the wildcard characters '*' and '?' can be used within the sub -parts of those composite identifiers to do pattern matching. For -convenience, the syntax <tt>groupId</tt> is equivalent to -<tt>groupId:*:*:*</tt>, <tt>groupId:artifactId</tt> is -equivalent to <tt>groupId:artifactId:*:*</tt> and -<tt>groupId:artifactId:classifier</tt> is equivalent to -<tt>groupId:artifactId:*:classifier</tt>. For example: - -<div> -<pre> -<artifactSet> - <includes> - <include>org.apache.maven:*</include> - </includes> - <excludes> - <exclude>*:maven-core</exclude> - </excludes> -</artifactSet> -</pre></div><br /></td> - </tr> - -<tr class="a"> - -<td><tt><a href="#createDependencyReducedPom"><createDependencyReducedPom></a></tt></td> - -<td><tt>boolean</tt></td> - -<td><tt>-</tt></td> - -<td>Flag whether to generate a simplified POM for the shaded artifact. -If set to <tt>true</tt>, dependencies that have been included -into the uber JAR will be removed from the -<tt><dependencies></tt> section of the generated POM. The -reduced POM will be named <tt>dependency-reduced-pom.xml</tt> -and is stored into the same directory as the shaded artifact. -Unless you also specify dependencyReducedPomLocation, the plugin -will create a temporary file named -<tt>dependency-reduced-pom.xml</tt> in the project basedir.<br /><b>Default value is</b>: <tt>true</tt>.<br /></td> - </tr> - -<tr class="b"> - -<td><tt><a href="#createSourcesJar"><createSourcesJar></a></tt></td> - -<td><tt>boolean</tt></td> - -<td><tt>-</tt></td> - -<td>When true, it will attempt to create a sources jar as well<br /></td> - </tr> - -<tr class="a"> - -<td><tt><a href="#createTestSourcesJar"><createTestSourcesJar></a></tt></td> - -<td><tt>boolean</tt></td> - -<td><tt>-</tt></td> - -<td>When true, it will attempt to create a test sources jar.<br /></td> - </tr> - -<tr class="b"> - -<td><tt><a href="#dependencyReducedPomLocation"><dependencyReducedPomLocation></a></tt></td> - -<td><tt>File</tt></td> - -<td><tt>1.7</tt></td> - -<td>Where to put the dependency reduced pom. Note: setting a value for -this parameter with a directory other than ${basedir} will change -the value of ${basedir} for all executions that come after the -shade execution. This is often not what you want. This is -considered an open issue with this plugin.<br /><b>Default value is</b>: <tt>${basedir}/dependency-reduced-pom.xml</tt>.<br /></td> - </tr> - -<tr class="a"> - -<td><tt><a href="#filters"><filters></a></tt></td> - -<td><tt>ArchiveFilter[]</tt></td> - -<td><tt>-</tt></td> - -<td>Archive Filters to be used. Allows you to specify an artifact in -the form of a composite identifier as used by -<tt>artifactSet</tt> and a set of include/exclude file patterns -for filtering which contents of the archive are added to the shaded -jar. From a logical perspective, includes are processed before -excludes, thus it's possible to use an include to collect a set of -files from the archive then use excludes to further reduce the set. -By default, all files are included and no files are excluded. If -multiple filters apply to an artifact, the intersection of the -matched files will be included in the final JAR. For example: - -<div> -<pre> -<filters> - <filter> - <artifact>junit:junit</artifact> - <includes> - <include>org/junit/**</include> - </includes> - <excludes> - <exclude>org/junit/experimental/**</exclude> - </excludes> - </filter> -</filters> -</pre></div><br /></td> - </tr> - -<tr class="b"> - -<td><tt><a href="#finalName"><finalName></a></tt></td> - -<td><tt>String</tt></td> - -<td><tt>-</tt></td> - -<td>The name of the shaded artifactId. If you like to change the name -of the native artifact, you may use the -<build><finalName> setting. If this is set to something -different than <build><finalName>, no file replacement -will be performed, even if shadedArtifactAttached is being used.<br /></td> - </tr> - -<tr class="a"> - -<td><tt><a href="#generateUniqueDependencyReducedPom"><generateUniqueDependencyReducedPom></a></tt></td> - -<td><tt>boolean</tt></td> - -<td><tt>1.7.2</tt></td> - -<td>Create a dependency-reduced POM in ${basedir}/drp-UNIQUE.pom. This -avoids build collisions of parallel builds without moving the -dependency-reduced POM to a different directory. The property -maven.shade.dependency-reduced-pom is set to the generated -filename.<br /><b>Default value is</b>: <tt>false</tt>.<br /></td> - </tr> - -<tr class="b"> - -<td><tt><a href="#keepDependenciesWithProvidedScope"><keepDependenciesWithProvidedScope></a></tt></td> - -<td><tt>boolean</tt></td> - -<td><tt>-</tt></td> - -<td>When true, dependencies are kept in the pom but with scope -'provided'; when false, the dependency is removed.<br /></td> - </tr> - -<tr class="a"> - -<td><tt><a href="#minimizeJar"><minimizeJar></a></tt></td> - -<td><tt>boolean</tt></td> - -<td><tt>1.4</tt></td> - -<td>When true, dependencies will be stripped down on the class level to -only the transitive hull required for the artifact. <i>Note:</i> -Usage of this feature requires Java 1.5 or higher.<br /></td> - </tr> - -<tr class="b"> - -<td><tt><a href="#outputDirectory"><outputDirectory></a></tt></td> - -<td><tt>File</tt></td> - -<td><tt>-</tt></td> - -<td>The destination directory for the shaded artifact.<br /><b>Default value is</b>: <tt>${project.build.directory}</tt>.<br /></td> - </tr> - -<tr class="a"> - -<td><tt><a href="#outputFile"><outputFile></a></tt></td> - -<td><tt>File</tt></td> - -<td><tt>1.3</tt></td> - -<td>The path to the output file for the shaded artifact. When this -parameter is set, the created archive will neither replace the -project's main artifact nor will it be attached. Hence, this -parameter causes the parameters <tt>finalName</tt>, -<tt>shadedArtifactAttached</tt>, -<tt>shadedClassifierName</tt> and -<tt>createDependencyReducedPom</tt> to be ignored when used.<br /></td> - </tr> - -<tr class="b"> - -<td><tt><a href="#promoteTransitiveDependencies"><promoteTransitiveDependencies></a></tt></td> - -<td><tt>boolean</tt></td> - -<td><tt>-</tt></td> - -<td>When true, transitive deps of removed dependencies are promoted to -direct dependencies. This should allow the drop in replacement of -the removed deps with the new shaded jar and everything should -still work.<br /></td> - </tr> - -<tr class="a"> - -<td><tt><a href="#relocations"><relocations></a></tt></td> - -<td><tt>PackageRelocation[]</tt></td> - -<td><tt>-</tt></td> - -<td>Packages to be relocated. For example: - -<div> -<pre> -<relocations> - <relocation> - <pattern>org.apache</pattern> - <shadedPattern>hidden.org.apache</shadedPattern> - <includes> - <include>org.apache.maven.*</include> - </includes> - <excludes> - <exclude>org.apache.maven.Public*</exclude> - </excludes> - </relocation> -</relocations> -</pre></div> - -<i>Note:</i> Support for includes exists only since version 1.4.<br /></td> - </tr> - -<tr class="b"> - -<td><tt><a href="#shadeSourcesContent"><shadeSourcesContent></a></tt></td> - -<td><tt>boolean</tt></td> - -<td><tt>-</tt></td> - -<td>When true, it will attempt to shade the contents of the java source -files when creating the sources jar. When false, it will just -relocate the java source files to the shaded paths, but will not -modify the actual contents of the java source files.<br /><b>Default value is</b>: <tt>false</tt>.<br /><b>User property is</b>: <tt>shadeSourcesContent</tt>.<br /></td> - </tr> - -<tr class="a"> - -<td><tt><a href="#shadeTestJar"><shadeTestJar></a></tt></td> - -<td><tt>boolean</tt></td> - -<td><tt>-</tt></td> - -<td>When true, creates a shaded test-jar artifact as well.<br /><b>Default value is</b>: <tt>false</tt>.<br /></td> - </tr> - -<tr class="b"> - -<td><tt><a href="#shadedArtifactAttached"><shadedArtifactAttached></a></tt></td> - -<td><tt>boolean</tt></td> - -<td><tt>-</tt></td> - -<td>Defines whether the shaded artifact should be attached as -classifier to the original artifact. If false, the shaded jar will -be the main artifact of the project<br /></td> - </tr> - -<tr class="a"> - -<td><tt><a href="#shadedArtifactId"><shadedArtifactId></a></tt></td> - -<td><tt>String</tt></td> - -<td><tt>-</tt></td> - -<td>The name of the shaded artifactId. So you may want to use a -different artifactId and keep the standard version. If the original -artifactId was "foo" then the final artifact would be something -like foo-1.0.jar. So if you change the artifactId you might have -something like foo-special-1.0.jar.<br /><b>Default value is</b>: <tt>${project.artifactId}</tt>.<br /></td> - </tr> - -<tr class="b"> - -<td><tt><a href="#shadedClassifierName"><shadedClassifierName></a></tt></td> - -<td><tt>String</tt></td> - -<td><tt>-</tt></td> - -<td>The name of the classifier used in case the shaded artifact is -attached.<br /><b>Default value is</b>: <tt>shaded</tt>.<br /></td> - </tr> - -<tr class="a"> - -<td><tt><a href="#shadedGroupFilter"><shadedGroupFilter></a></tt></td> - -<td><tt>String</tt></td> - -<td><tt>-</tt></td> - -<td>If specified, this will include only artifacts which have groupIds -which start with this.<br /></td> - </tr> - -<tr class="b"> - -<td><tt><a href="#shaderHint"><shaderHint></a></tt></td> - -<td><tt>String</tt></td> - -<td><tt>1.6</tt></td> - -<td>You can pass here the roleHint about your own Shader implementation -plexus component.<br /></td> - </tr> - -<tr class="a"> - -<td><tt><a href="#transformers"><transformers></a></tt></td> - -<td><tt>ResourceTransformer[]</tt></td> - -<td><tt>-</tt></td> - -<td>Resource transformers to be used. Please see the "Examples" section -for more information on available transformers and their -configuration.<br /></td> - </tr> - -<tr class="b"> - -<td><tt><a href="#useBaseVersion"><useBaseVersion></a></tt></td> - -<td><tt>boolean</tt></td> - -<td><tt>3.0</tt></td> - -<td>When true, the version of each dependency of the reduced pom will -be based on the baseVersion of the original dependency instead of -its resolved version. For example, if the original pom -(transitively) depends on a:a:2.7-SNAPSHOT, if useBaseVersion is -set to false, the reduced pom will depend on -a:a:2.7-20130312.222222-12 whereas if useBaseVersion is set to -true, the reduced pom will depend on a:a:2.7-SNAPSHOT<br /><b>Default value is</b>: <tt>false</tt>.<br /></td> - </tr> - -<tr class="a"> - -<td><tt><a href="#useDependencyReducedPomInJar"><useDependencyReducedPomInJar></a></tt></td> - -<td><tt>boolean</tt></td> - -<td><tt>3.3.0</tt></td> - -<td>Add dependency reduced POM to the JAR instead of the original one -provided by the project. If <tt>createDependencyReducedPom</tt> -is <tt>false</tt> this parameter will be ignored.<br /><b>Default value is</b>: <tt>false</tt>.<br /></td> - </tr> - </table> - </div> - -<div class="section"> -<h3><a name="Parameter_Details"></a>Parameter Details</h3> - -<div class="section"> -<h4><a name="a.3CartifactSet.3E"></a><b><a name="artifactSet"><artifactSet></a></b></h4> - -<div>Artifacts to include/exclude from the final artifact. Artifacts are -denoted by composite identifiers of the general form -<tt>groupId:artifactId:type:classifier</tt>. Since version 1.3, -the wildcard characters '*' and '?' can be used within the sub -parts of those composite identifiers to do pattern matching. For -convenience, the syntax <tt>groupId</tt> is equivalent to -<tt>groupId:*:*:*</tt>, <tt>groupId:artifactId</tt> is -equivalent to <tt>groupId:artifactId:*:*</tt> and -<tt>groupId:artifactId:classifier</tt> is equivalent to -<tt>groupId:artifactId:*:classifier</tt>. For example: - -<div> -<pre> -<artifactSet> - <includes> - <include>org.apache.maven:*</include> - </includes> - <excludes> - <exclude>*:maven-core</exclude> - </excludes> -</artifactSet> -</pre></div></div> - -<ul> - -<li><b>Type</b>: <tt>org.apache.maven.plugins.shade.mojo.ArtifactSet</tt></li> - -<li><b>Required</b>: <tt>No</tt></li> - </ul><hr /></div> -<div class="section"> -<h4><a name="a.3CcreateDependencyReducedPom.3E"></a><b><a name="createDependencyReducedPom"><createDependencyReducedPom></a></b></h4> - -<div>Flag whether to generate a simplified POM for the shaded artifact. -If set to <tt>true</tt>, dependencies that have been included -into the uber JAR will be removed from the -<tt><dependencies></tt> section of the generated POM. The -reduced POM will be named <tt>dependency-reduced-pom.xml</tt> -and is stored into the same directory as the shaded artifact. -Unless you also specify dependencyReducedPomLocation, the plugin -will create a temporary file named -<tt>dependency-reduced-pom.xml</tt> in the project basedir.</div> - -<ul> - -<li><b>Type</b>: <tt>boolean</tt></li> - -<li><b>Required</b>: <tt>No</tt></li> - -<li><b>Default</b>: <tt>true</tt></li> - </ul><hr /></div> -<div class="section"> -<h4><a name="a.3CcreateSourcesJar.3E"></a><b><a name="createSourcesJar"><createSourcesJar></a></b></h4> - -<div>When true, it will attempt to create a sources jar as well</div> - -<ul> - -<li><b>Type</b>: <tt>boolean</tt></li> - -<li><b>Required</b>: <tt>No</tt></li> - </ul><hr /></div> -<div class="section"> -<h4><a name="a.3CcreateTestSourcesJar.3E"></a><b><a name="createTestSourcesJar"><createTestSourcesJar></a></b></h4> - -<div>When true, it will attempt to create a test sources jar.</div> - -<ul> - -<li><b>Type</b>: <tt>boolean</tt></li> - -<li><b>Required</b>: <tt>No</tt></li> - </ul><hr /></div> -<div class="section"> -<h4><a name="a.3CdependencyReducedPomLocation.3E"></a><b><a name="dependencyReducedPomLocation"><dependencyReducedPomLocation></a></b></h4> - -<div>Where to put the dependency reduced pom. Note: setting a value for -this parameter with a directory other than ${basedir} will change -the value of ${basedir} for all executions that come after the -shade execution. This is often not what you want. This is -considered an open issue with this plugin.</div> - -<ul> - -<li><b>Type</b>: <tt>java.io.File</tt></li> - -<li><b>Since</b>: <tt>1.7</tt></li> - -<li><b>Required</b>: <tt>No</tt></li> - -<li><b>Default</b>: <tt>${basedir}/dependency-reduced-pom.xml</tt></li> - </ul><hr /></div> -<div class="section"> -<h4><a name="a.3Cfilters.3E"></a><b><a name="filters"><filters></a></b></h4> - -<div>Archive Filters to be used. Allows you to specify an artifact in -the form of a composite identifier as used by -<tt>artifactSet</tt> and a set of include/exclude file patterns -for filtering which contents of the archive are added to the shaded -jar. From a logical perspective, includes are processed before -excludes, thus it's possible to use an include to collect a set of -files from the archive then use excludes to further reduce the set. -By default, all files are included and no files are excluded. If -multiple filters apply to an artifact, the intersection of the -matched files will be included in the final JAR. For example: - -<div> -<pre> -<filters> - <filter> - <artifact>junit:junit</artifact> - <includes> - <include>org/junit/**</include> - </includes> - <excludes> - <exclude>org/junit/experimental/**</exclude> - </excludes> - </filter> -</filters> -</pre></div></div> - -<ul> - -<li><b>Type</b>: <tt>org.apache.maven.plugins.shade.mojo.ArchiveFilter[]</tt></li> - -<li><b>Required</b>: <tt>No</tt></li> - </ul><hr /></div> -<div class="section"> -<h4><a name="a.3CfinalName.3E"></a><b><a name="finalName"><finalName></a></b></h4> - -<div>The name of the shaded artifactId. If you like to change the name -of the native artifact, you may use the -<build><finalName> setting. If this is set to something -different than <build><finalName>, no file replacement -will be performed, even if shadedArtifactAttached is being used.</div> - -<ul> - -<li><b>Type</b>: <tt>java.lang.String</tt></li> - -<li><b>Required</b>: <tt>No</tt></li> - </ul><hr /></div> -<div class="section"> -<h4><a name="a.3CgenerateUniqueDependencyReducedPom.3E"></a><b><a name="generateUniqueDependencyReducedPom"><generateUniqueDependencyReducedPom></a></b></h4> - -<div>Create a dependency-reduced POM in ${basedir}/drp-UNIQUE.pom. This -avoids build collisions of parallel builds without moving the -dependency-reduced POM to a different directory. The property -maven.shade.dependency-reduced-pom is set to the generated -filename.</div> - -<ul> - -<li><b>Type</b>: <tt>boolean</tt></li> - -<li><b>Since</b>: <tt>1.7.2</tt></li> - -<li><b>Required</b>: <tt>No</tt></li> - -<li><b>Default</b>: <tt>false</tt></li> - </ul><hr /></div> -<div class="section"> -<h4><a name="a.3CkeepDependenciesWithProvidedScope.3E"></a><b><a name="keepDependenciesWithProvidedScope"><keepDependenciesWithProvidedScope></a></b></h4> - -<div>When true, dependencies are kept in the pom but with scope -'provided'; when false, the dependency is removed.</div> - -<ul> - -<li><b>Type</b>: <tt>boolean</tt></li> - -<li><b>Required</b>: <tt>No</tt></li> - </ul><hr /></div> -<div class="section"> -<h4><a name="a.3CminimizeJar.3E"></a><b><a name="minimizeJar"><minimizeJar></a></b></h4> - -<div>When true, dependencies will be stripped down on the class level to -only the transitive hull required for the artifact. <i>Note:</i> -Usage of this feature requires Java 1.5 or higher.</div> - -<ul> - -<li><b>Type</b>: <tt>boolean</tt></li> - -<li><b>Since</b>: <tt>1.4</tt></li> - -<li><b>Required</b>: <tt>No</tt></li> - </ul><hr /></div> -<div class="section"> -<h4><a name="a.3CoutputDirectory.3E"></a><b><a name="outputDirectory"><outputDirectory></a></b></h4> - -<div>The destination directory for the shaded artifact.</div> - -<ul> - -<li><b>Type</b>: <tt>java.io.File</tt></li> - -<li><b>Required</b>: <tt>No</tt></li> - -<li><b>Default</b>: <tt>${project.build.directory}</tt></li> - </ul><hr /></div> -<div class="section"> -<h4><a name="a.3CoutputFile.3E"></a><b><a name="outputFile"><outputFile></a></b></h4> - -<div>The path to the output file for the shaded artifact. When this -parameter is set, the created archive will neither replace the -project's main artifact nor will it be attached. Hence, this -parameter causes the parameters <tt>finalName</tt>, -<tt>shadedArtifactAttached</tt>, -<tt>shadedClassifierName</tt> and -<tt>createDependencyReducedPom</tt> to be ignored when used.</div> - -<ul> - -<li><b>Type</b>: <tt>java.io.File</tt></li> - -<li><b>Since</b>: <tt>1.3</tt></li> - -<li><b>Required</b>: <tt>No</tt></li> - </ul><hr /></div> -<div class="section"> -<h4><a name="a.3CpromoteTransitiveDependencies.3E"></a><b><a name="promoteTransitiveDependencies"><promoteTransitiveDependencies></a></b></h4> - -<div>When true, transitive deps of removed dependencies are promoted to -direct dependencies. This should allow the drop in replacement of -the removed deps with the new shaded jar and everything should -still work.</div> - -<ul> - -<li><b>Type</b>: <tt>boolean</tt></li> - -<li><b>Required</b>: <tt>No</tt></li> - </ul><hr /></div> -<div class="section"> -<h4><a name="a.3Crelocations.3E"></a><b><a name="relocations"><relocations></a></b></h4> - -<div>Packages to be relocated. For example: - -<div> -<pre> -<relocations> - <relocation> - <pattern>org.apache</pattern> - <shadedPattern>hidden.org.apache</shadedPattern> - <includes> - <include>org.apache.maven.*</include> - </includes> - <excludes> - <exclude>org.apache.maven.Public*</exclude> - </excludes> - </relocation> -</relocations> -</pre></div> - -<i>Note:</i> Support for includes exists only since version 1.4.</div> - -<ul> - -<li><b>Type</b>: <tt>org.apache.maven.plugins.shade.mojo.PackageRelocation[]</tt></li> - -<li><b>Required</b>: <tt>No</tt></li> - </ul><hr /></div> -<div class="section"> -<h4><a name="a.3CshadeSourcesContent.3E"></a><b><a name="shadeSourcesContent"><shadeSourcesContent></a></b></h4> - -<div>When true, it will attempt to shade the contents of the java source -files when creating the sources jar. When false, it will just -relocate the java source files to the shaded paths, but will not -modify the actual contents of the java source files.</div> - -<ul> - -<li><b>Type</b>: <tt>boolean</tt></li> - -<li><b>Required</b>: <tt>No</tt></li> - -<li><b>User Property</b>: <tt>shadeSourcesContent</tt></li> - -<li><b>Default</b>: <tt>false</tt></li> - </ul><hr /></div> -<div class="section"> -<h4><a name="a.3CshadeTestJar.3E"></a><b><a name="shadeTestJar"><shadeTestJar></a></b></h4> - -<div>When true, creates a shaded test-jar artifact as well.</div> - -<ul> - -<li><b>Type</b>: <tt>boolean</tt></li> - -<li><b>Required</b>: <tt>No</tt></li> - -<li><b>Default</b>: <tt>false</tt></li> - </ul><hr /></div> -<div class="section"> -<h4><a name="a.3CshadedArtifactAttached.3E"></a><b><a name="shadedArtifactAttached"><shadedArtifactAttached></a></b></h4> - -<div>Defines whether the shaded artifact should be attached as -classifier to the original artifact. If false, the shaded jar will -be the main artifact of the project</div> - -<ul> - -<li><b>Type</b>: <tt>boolean</tt></li> - -<li><b>Required</b>: <tt>No</tt></li> - </ul><hr /></div> -<div class="section"> -<h4><a name="a.3CshadedArtifactId.3E"></a><b><a name="shadedArtifactId"><shadedArtifactId></a></b></h4> - -<div>The name of the shaded artifactId. So you may want to use a -different artifactId and keep the standard version. If the original -artifactId was "foo" then the final artifact would be something -like foo-1.0.jar. So if you change the artifactId you might have -something like foo-special-1.0.jar.</div> - -<ul> - -<li><b>Type</b>: <tt>java.lang.String</tt></li> - -<li><b>Required</b>: <tt>No</tt></li> - -<li><b>Default</b>: <tt>${project.artifactId}</tt></li> - </ul><hr /></div> -<div class="section"> -<h4><a name="a.3CshadedClassifierName.3E"></a><b><a name="shadedClassifierName"><shadedClassifierName></a></b></h4> - -<div>The name of the classifier used in case the shaded artifact is -attached.</div> - -<ul> - -<li><b>Type</b>: <tt>java.lang.String</tt></li> - -<li><b>Required</b>: <tt>No</tt></li> - -<li><b>Default</b>: <tt>shaded</tt></li> - </ul><hr /></div> -<div class="section"> -<h4><a name="a.3CshadedGroupFilter.3E"></a><b><a name="shadedGroupFilter"><shadedGroupFilter></a></b></h4> - -<div>If specified, this will include only artifacts which have groupIds -which start with this.</div> - -<ul> - -<li><b>Type</b>: <tt>java.lang.String</tt></li> - -<li><b>Required</b>: <tt>No</tt></li> - </ul><hr /></div> -<div class="section"> -<h4><a name="a.3CshaderHint.3E"></a><b><a name="shaderHint"><shaderHint></a></b></h4> - -<div>You can pass here the roleHint about your own Shader implementation -plexus component.</div> - -<ul> - -<li><b>Type</b>: <tt>java.lang.String</tt></li> - -<li><b>Since</b>: <tt>1.6</tt></li> - -<li><b>Required</b>: <tt>No</tt></li> - </ul><hr /></div> -<div class="section"> -<h4><a name="a.3Ctransformers.3E"></a><b><a name="transformers"><transformers></a></b></h4> - -<div>Resource transformers to be used. Please see the "Examples" section -for more information on available transformers and their -configuration.</div> - -<ul> - -<li><b>Type</b>: <tt>org.apache.maven.plugins.shade.resource.ResourceTransformer[]</tt></li> - -<li><b>Required</b>: <tt>No</tt></li> - </ul><hr /></div> -<div class="section"> -<h4><a name="a.3CuseBaseVersion.3E"></a><b><a name="useBaseVersion"><useBaseVersion></a></b></h4> - -<div>When true, the version of each dependency of the reduced pom will -be based on the baseVersion of the original dependency instead of -its resolved version. For example, if the original pom -(transitively) depends on a:a:2.7-SNAPSHOT, if useBaseVersion is -set to false, the reduced pom will depend on -a:a:2.7-20130312.222222-12 whereas if useBaseVersion is set to -true, the reduced pom will depend on a:a:2.7-SNAPSHOT</div> - -<ul> - -<li><b>Type</b>: <tt>boolean</tt></li> - -<li><b>Since</b>: <tt>3.0</tt></li> - -<li><b>Required</b>: <tt>No</tt></li> - -<li><b>Default</b>: <tt>false</tt></li> - </ul><hr /></div> -<div class="section"> -<h4><a name="a.3CuseDependencyReducedPomInJar.3E"></a><b><a name="useDependencyReducedPomInJar"><useDependencyReducedPomInJar></a></b></h4> - -<div>Add dependency reduced POM to the JAR instead of the original one -provided by the project. If <tt>createDependencyReducedPom</tt> -is <tt>false</tt> this parameter will be ignored.</div> - -<ul> - -<li><b>Type</b>: <tt>boolean</tt></li> - -<li><b>Since</b>: <tt>3.3.0</tt></li> - -<li><b>Required</b>: <tt>No</tt></li> - -<li><b>Default</b>: <tt>false</tt></li> - </ul> - </div></div> - </div> - - - </div> - </div> - </div> - <hr/> - <footer> - <div class="container-fluid"> - <div class="row-fluid"> - <p>Copyright ©2002–2021 -<a href="https://www.apache.org/">The Apache Software Foundation</a>. -All rights reserved.</p> - </div> - </div> - </footer> - </body> +<!DOCTYPE html> +<!-- + | Generated by Apache Maven Doxia Site Renderer 1.8.1 at 2022-03-24 + | Rendered using Apache Maven Fluido Skin 1.6 +--> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> + <head> + <meta charset="UTF-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> + <meta name="Date-Revision-yyyymmdd" content="20220324" /> + <meta http-equiv="Content-Language" content="en" /> + <title>Apache Maven Shade Plugin – shade:shade</title> + <link rel="stylesheet" href="./css/apache-maven-fluido-1.6.min.css" /> + <link rel="stylesheet" href="./css/site.css" /> + <link rel="stylesheet" href="./css/print.css" media="print" /> + <script type="text/javascript" src="./js/apache-maven-fluido-1.6.min.js"></script> + <!-- Google Analytics --> + <script type="text/javascript"> + var _gaq = _gaq || []; + _gaq.push(['_setAccount', 'UA-140879-1']); + _gaq.push(['_trackPageview']); + (function() { + var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; + ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); + })(); + </script> + </head> + <body class="topBarDisabled"> + <div class="container-fluid"> + <div id="banner"> + <div class="pull-left"><a href="http://www.apache.org/" id="bannerLeft"><img src="http://maven.apache.org/images/apache-maven-project.png" /></a></div> + <div class="pull-right"><a href="http://maven.apache.org/" id="bannerRight"><img src="http://maven.apache.org/images/maven-logo-black-on-white.png" /></a></div> + <div class="clear"><hr/></div> + </div> + + <div id="breadcrumbs"> + <ul class="breadcrumb"> + <li class=""><a href="https://www.apache.org/" class="externalLink" title="Apache">Apache</a><span class="divider">/</span></li> + <li class=""><a href="../../index.html" title="Maven">Maven</a><span class="divider">/</span></li> + <li class=""><a href="../index.html" title="Plugins">Plugins</a><span class="divider">/</span></li> + <li class=""><a href="index.html" title="Apache Maven Shade Plugin">Apache Maven Shade Plugin</a><span class="divider">/</span></li> + <li class="active ">shade:shade</li> + <li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2022-03-24</li> + <li id="projectVersion" class="pull-right">Version: 3.3.0</li> + </ul> + </div> + <div class="row-fluid"> + <div id="leftColumn" class="span2"> + <div class="well sidebar-nav"> +<ul class="nav nav-list"> + <li class="nav-header">Overview</li> + <li><a href="index.html" title="Introduction"><span class="none"></span>Introduction</a> </li> + <li><a href="plugin-info.html" title="Goals"><span class="none"></span>Goals</a> </li> + <li><a href="usage.html" title="Usage"><span class="none"></span>Usage</a> </li> + <li><a href="faq.html" title="FAQ"><span class="none"></span>FAQ</a> </li> + <li><a href="http://www.apache.org/licenses/" class="externalLink" title="License"><span class="none"></span>License</a> </li> + <li><a href="download.html" title="Download"><span class="none"></span>Download</a> </li> + <li class="nav-header">Examples</li> + <li><a href="examples/includes-excludes.html" title="Selecting Contents for Uber JAR"><span class="none"></span>Selecting Contents for Uber JAR</a> </li> + <li><a href="examples/class-relocation.html" title="Relocating Classes"><span class="none"></span>Relocating Classes</a> </li> + <li><a href="examples/attached-artifact.html" title="Attaching the Shaded Artifact"><span class="none"></span>Attaching the Shaded Artifact</a> </li> + <li><a href="examples/executable-jar.html" title="Executable JAR"><span class="none"></span>Executable JAR</a> </li> + <li><a href="examples/resource-transformers.html" title="Resource Transformers"><span class="none"></span>Resource Transformers</a> </li> + <li><a href="examples/use-shader-other-impl.html" title="Using another Shader implementation"><span class="none"></span>Using another Shader implementation</a> </li> + <li class="nav-header">Project Documentation</li> + <li><a href="project-info.html" title="Project Information"><span class="icon-chevron-right"></span>Project Information</a> </li> + <li><a href="project-reports.html" title="Project Reports"><span class="icon-chevron-right"></span>Project Reports</a> </li> + <li class="nav-header">Maven Projects</li> + <li><a href="../../archetype/index.html" title="Archetype"><span class="none"></span>Archetype</a> </li> + <li><a href="../../resolver/index.html" title="Artifact Resolver"><span class="none"></span>Artifact Resolver</a> </li> + <li><a href="../../doxia/index.html" title="Doxia"><span class="none"></span>Doxia</a> </li> + <li><a href="../../jxr/index.html" title="JXR"><span class="none"></span>JXR</a> </li> + <li><a href="../../ref/current" title="Maven"><span class="none"></span>Maven</a> </li> + <li><a href="../../pom/index.html" title="Parent POMs"><span class="none"></span>Parent POMs</a> </li> + <li><a href="../index.html" title="Plugins"><span class="none"></span>Plugins</a> </li> + <li><a href="../../plugin-testing/index.html" title="Plugin Testing"><span class="none"></span>Plugin Testing</a> </li> + <li><a href="../../plugin-tools/index.html" title="Plugin Tools"><span class="none"></span>Plugin Tools</a> </li> + <li><a href="../../apache-resource-bundles/index.html" title="Resource Bundles"><span class="none"></span>Resource Bundles</a> </li> + <li><a href="../../scm/index.html" title="SCM"><span class="none"></span>SCM</a> </li> + <li><a href="../../shared/index.html" title="Shared Components"><span class="none"></span>Shared Components</a> </li> + <li><a href="../../skins/index.html" title="Skins"><span class="none"></span>Skins</a> </li> + <li><a href="../../surefire/index.html" title="Surefire"><span class="none"></span>Surefire</a> </li> + <li><a href="../../wagon/index.html" title="Wagon"><span class="none"></span>Wagon</a> </li> + <li class="nav-header">ASF</li> + <li><a href="https://www.apache.org/foundation/how-it-works.html" class="externalLink" title="How Apache Works"><span class="none"></span>How Apache Works</a> </li> + <li><a href="https://www.apache.org/foundation/" class="externalLink" title="Foundation"><span class="none"></span>Foundation</a> </li> + <li><a href="https://www.apache.org/foundation/sponsorship.html" class="externalLink" title="Sponsoring Apache"><span class="none"></span>Sponsoring Apache</a> </li> + <li><a href="https://www.apache.org/foundation/thanks.html" class="externalLink" title="Thanks"><span class="none"></span>Thanks</a> </li> + </ul> +<form id="search-form" action="https://www.google.com/search" method="get" > + <input value="$sitesearchValue" name="sitesearch" type="hidden"/> + <input class="search-query" name="q" id="query" type="text" /> +</form> +<script type="text/javascript">asyncJs( 'https://cse.google.com/brand?form=search-form' )</script> + <hr /> + <div id="poweredBy"> + <script type="text/javascript">asyncJs( 'https://apis.google.com/js/plusone.js' )</script> + <div class="g-plusone" data-href="https://maven.apache.org/plugins/maven-shade-plugin/" data-size="tall" ></div> + <div class="clear"></div> + <div class="clear"></div> + <div id="twitter"> + <a href="https://twitter.com/ASFMavenProject" class="twitter-follow-button" data-show-count="false" data-align="left" data-size="medium" data-show-screen-name="true" data-lang="en">Follow ASFMavenProject</a> + <script type="text/javascript">!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> + </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> + </div> + <div id="bodyColumn" class="span10" > + + + <div class="section"> +<h2><a name="shade:shade"></a>shade:shade</h2> + +<p><b>Full name</b>:</p> + +<p>org.apache.maven.plugins:maven-shade-plugin:3.3.0:shade</p> + +<p><b>Description</b>:</p> + +<div>Mojo that performs shading delegating to the Shader component.</div> + +<p><b>Attributes</b>:</p> + +<ul> + +<li>Requires a Maven project to be executed.</li> + +<li>Requires dependency resolution of artifacts in scope: <tt>runtime</tt>.</li> + +<li>Binds by default to the <a class="externalLink" href="http://maven.apache.org/ref/current/maven-core/lifecycles.html">lifecycle phase</a>: <tt>package</tt>.</li> + </ul> + +<div class="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><tt><a href="#artifactSet"><artifactSet></a></tt></td> + +<td><tt>ArtifactSet</tt></td> + +<td><tt>-</tt></td> + +<td>Artifacts to include/exclude from the final artifact. Artifacts are +denoted by composite identifiers of the general form +<tt>groupId:artifactId:type:classifier</tt>. Since version 1.3, +the wildcard characters '*' and '?' can be used within the sub +parts of those composite identifiers to do pattern matching. For +convenience, the syntax <tt>groupId</tt> is equivalent to +<tt>groupId:*:*:*</tt>, <tt>groupId:artifactId</tt> is +equivalent to <tt>groupId:artifactId:*:*</tt> and +<tt>groupId:artifactId:classifier</tt> is equivalent to +<tt>groupId:artifactId:*:classifier</tt>. For example: + +<div> +<pre> +<artifactSet> + <includes> + <include>org.apache.maven:*</include> + </includes> + <excludes> + <exclude>*:maven-core</exclude> + </excludes> +</artifactSet> +</pre></div><br /></td> + </tr> + +<tr class="a"> + +<td><tt><a href="#createDependencyReducedPom"><createDependencyReducedPom></a></tt></td> + +<td><tt>boolean</tt></td> + +<td><tt>-</tt></td> + +<td>Flag whether to generate a simplified POM for the shaded artifact. +If set to <tt>true</tt>, dependencies that have been included +into the uber JAR will be removed from the +<tt><dependencies></tt> section of the generated POM. The +reduced POM will be named <tt>dependency-reduced-pom.xml</tt> +and is stored into the same directory as the shaded artifact. +Unless you also specify dependencyReducedPomLocation, the plugin +will create a temporary file named +<tt>dependency-reduced-pom.xml</tt> in the project basedir.<br /><b>Default value is</b>: <tt>true</tt>.<br /></td> + </tr> + +<tr class="b"> + +<td><tt><a href="#createSourcesJar"><createSourcesJar></a></tt></td> + +<td><tt>boolean</tt></td> + +<td><tt>-</tt></td> + +<td>When true, it will attempt to create a sources jar as well<br /></td> + </tr> + +<tr class="a"> + +<td><tt><a href="#createTestSourcesJar"><createTestSourcesJar></a></tt></td> + +<td><tt>boolean</tt></td> + +<td><tt>-</tt></td> + +<td>When true, it will attempt to create a test sources jar.<br /></td> + </tr> + +<tr class="b"> + +<td><tt><a href="#dependencyReducedPomLocation"><dependencyReducedPomLocation></a></tt></td> + +<td><tt>File</tt></td> + +<td><tt>1.7</tt></td> + +<td>Where to put the dependency reduced pom. Note: setting a value for +this parameter with a directory other than ${basedir} will change +the value of ${basedir} for all executions that come after the +shade execution. This is often not what you want. This is +considered an open issue with this plugin.<br /><b>Default value is</b>: <tt>${basedir}/dependency-reduced-pom.xml</tt>.<br /></td> + </tr> + +<tr class="a"> + +<td><tt><a href="#filters"><filters></a></tt></td> + +<td><tt>ArchiveFilter[]</tt></td> + +<td><tt>-</tt></td> + +<td>Archive Filters to be used. Allows you to specify an artifact in +the form of a composite identifier as used by +<tt>artifactSet</tt> and a set of include/exclude file patterns +for filtering which contents of the archive are added to the shaded +jar. From a logical perspective, includes are processed before +excludes, thus it's possible to use an include to collect a set of +files from the archive then use excludes to further reduce the set. +By default, all files are included and no files are excluded. If +multiple filters apply to an artifact, the intersection of the +matched files will be included in the final JAR. For example: + +<div> +<pre> +<filters> + <filter> + <artifact>junit:junit</artifact> + <includes> + <include>org/junit/**</include> + </includes> + <excludes> + <exclude>org/junit/experimental/**</exclude> + </excludes> + </filter> +</filters> +</pre></div><br /></td> + </tr> + +<tr class="b"> + +<td><tt><a href="#finalName"><finalName></a></tt></td> + +<td><tt>String</tt></td> + +<td><tt>-</tt></td> + +<td>The name of the shaded artifactId. If you like to change the name +of the native artifact, you may use the +<build><finalName> setting. If this is set to something +different than <build><finalName>, no file replacement +will be performed, even if shadedArtifactAttached is being used.<br /></td> + </tr> + +<tr class="a"> + +<td><tt><a href="#generateUniqueDependencyReducedPom"><generateUniqueDependencyReducedPom></a></tt></td> + +<td><tt>boolean</tt></td> + +<td><tt>1.7.2</tt></td> + +<td>Create a dependency-reduced POM in ${basedir}/drp-UNIQUE.pom. This +avoids build collisions of parallel builds without moving the +dependency-reduced POM to a different directory. The property +maven.shade.dependency-reduced-pom is set to the generated +filename.<br /><b>Default value is</b>: <tt>false</tt>.<br /></td> + </tr> + +<tr class="b"> + +<td><tt><a href="#keepDependenciesWithProvidedScope"><keepDependenciesWithProvidedScope></a></tt></td> + +<td><tt>boolean</tt></td> + +<td><tt>-</tt></td> + +<td>When true, dependencies are kept in the pom but with scope +'provided'; when false, the dependency is removed.<br /></td> + </tr> + +<tr class="a"> + +<td><tt><a href="#minimizeJar"><minimizeJar></a></tt></td> + +<td><tt>boolean</tt></td> + +<td><tt>1.4</tt></td> + +<td>When true, dependencies will be stripped down on the class level to +only the transitive hull required for the artifact. <i>Note:</i> +Usage of this feature requires Java 1.5 or higher.<br /></td> + </tr> + +<tr class="b"> + +<td><tt><a href="#outputDirectory"><outputDirectory></a></tt></td> + +<td><tt>File</tt></td> + +<td><tt>-</tt></td> + +<td>The destination directory for the shaded artifact.<br /><b>Default value is</b>: <tt>${project.build.directory}</tt>.<br /></td> + </tr> + +<tr class="a"> + +<td><tt><a href="#outputFile"><outputFile></a></tt></td> + +<td><tt>File</tt></td> + +<td><tt>1.3</tt></td> + +<td>The path to the output file for the shaded artifact. When this +parameter is set, the created archive will neither replace the +project's main artifact nor will it be attached. Hence, this +parameter causes the parameters <tt>finalName</tt>, +<tt>shadedArtifactAttached</tt>, +<tt>shadedClassifierName</tt> and +<tt>createDependencyReducedPom</tt> to be ignored when used.<br /></td> + </tr> + +<tr class="b"> + +<td><tt><a href="#promoteTransitiveDependencies"><promoteTransitiveDependencies></a></tt></td> + +<td><tt>boolean</tt></td> + +<td><tt>-</tt></td> + +<td>When true, transitive deps of removed dependencies are promoted to +direct dependencies. This should allow the drop in replacement of +the removed deps with the new shaded jar and everything should +still work.<br /></td> + </tr> + +<tr class="a"> + +<td><tt><a href="#relocations"><relocations></a></tt></td> + +<td><tt>PackageRelocation[]</tt></td> + +<td><tt>-</tt></td> + +<td>Packages to be relocated. For example: + +<div> +<pre> +<relocations> + <relocation> + <pattern>org.apache</pattern> + <shadedPattern>hidden.org.apache</shadedPattern> + <includes> + <include>org.apache.maven.*</include> + </includes> + <excludes> + <exclude>org.apache.maven.Public*</exclude> + </excludes> + </relocation> +</relocations> +</pre></div> + +<i>Note:</i> Support for includes exists only since version 1.4.<br /></td> + </tr> + +<tr class="b"> + +<td><tt><a href="#shadeSourcesContent"><shadeSourcesContent></a></tt></td> + +<td><tt>boolean</tt></td> + +<td><tt>-</tt></td> + +<td>When true, it will attempt to shade the contents of Java source +files when creating the sources JAR. When false, it will just +relocate the Java source files to the shaded paths, but will not +modify the actual source file contents. + +<p><b>Please note:</b> This feature uses a heuristic search & +replace approach which covers many, but definitely not all possible +cases of source code shading and its excludes. There is no full +Java parser behind this functionality, which would be the only way +to get this right for Java language elements. As for matching +within Java string constants, this is next to impossible to get +100% right, trying to guess if they are used in reflection or +not.</p> + +<p>Please understand that the source shading feature is not meant +as a source code generator anyway, merely as a tool creating +reasonably plausible source code when navigating to a relocated +library class from an IDE, hopefully displaying source code which +makes 95% sense - no more, no less.</p><br /><b>Default value is</b>: <tt>false</tt>.<br /><b>User property is</b>: <tt>shadeSourcesContent</tt>.<br /></td> + </tr> + +<tr class="a"> + +<td><tt><a href="#shadeTestJar"><shadeTestJar></a></tt></td> + +<td><tt>boolean</tt></td> + +<td><tt>-</tt></td> + +<td>When true, creates a shaded test-jar artifact as well.<br /><b>Default value is</b>: <tt>false</tt>.<br /></td> + </tr> + +<tr class="b"> + +<td><tt><a href="#shadedArtifactAttached"><shadedArtifactAttached></a></tt></td> + +<td><tt>boolean</tt></td> + +<td><tt>-</tt></td> + +<td>Defines whether the shaded artifact should be attached as +classifier to the original artifact. If false, the shaded jar will +be the main artifact of the project<br /></td> + </tr> + +<tr class="a"> + +<td><tt><a href="#shadedArtifactId"><shadedArtifactId></a></tt></td> + +<td><tt>String</tt></td> + +<td><tt>-</tt></td> + +<td>The name of the shaded artifactId. So you may want to use a +different artifactId and keep the standard version. If the original +artifactId was "foo" then the final artifact would be something +like foo-1.0.jar. So if you change the artifactId you might have +something like foo-special-1.0.jar.<br /><b>Default value is</b>: <tt>${project.artifactId}</tt>.<br /></td> + </tr> + +<tr class="b"> + +<td><tt><a href="#shadedClassifierName"><shadedClassifierName></a></tt></td> + +<td><tt>String</tt></td> + +<td><tt>-</tt></td> + +<td>The name of the classifier used in case the shaded artifact is +attached.<br /><b>Default value is</b>: <tt>shaded</tt>.<br /></td> + </tr> + +<tr class="a"> + +<td><tt><a href="#shadedGroupFilter"><shadedGroupFilter></a></tt></td> + +<td><tt>String</tt></td> + +<td><tt>-</tt></td> + +<td>If specified, this will include only artifacts which have groupIds +which start with this.<br /></td> + </tr> + +<tr class="b"> + +<td><tt><a href="#shaderHint"><shaderHint></a></tt></td> + +<td><tt>String</tt></td> + +<td><tt>1.6</tt></td> + +<td>You can pass here the roleHint about your own Shader implementation +plexus component.<br /></td> + </tr> + +<tr class="a"> + +<td><tt><a href="#skip"><skip></a></tt></td> + +<td><tt>boolean</tt></td> + +<td><tt>3.3.0</tt></td> + +<td>When true, skips the execution of this MOJO.<br /><b>Default value is</b>: <tt>false</tt>.<br /></td> + </tr> + +<tr class="b"> + +<td><tt><a href="#transformers"><transformers></a></tt></td> + +<td><tt>ResourceTransformer[]</tt></td> + +<td><tt>-</tt></td> + +<td>Resource transformers to be used. Please see the "Examples" section +for more information on available transformers and their +configuration.<br /></td> + </tr> + +<tr class="a"> + +<td><tt><a href="#useBaseVersion"><useBaseVersion></a></tt></td> + +<td><tt>boolean</tt></td> + +<td><tt>3.0</tt></td> + +<td>When true, the version of each dependency of the reduced pom will +be based on the baseVersion of the original dependency instead of +its resolved version. For example, if the original pom +(transitively) depends on a:a:2.7-SNAPSHOT, if useBaseVersion is +set to false, the reduced pom will depend on +a:a:2.7-20130312.222222-12 whereas if useBaseVersion is set to +true, the reduced pom will depend on a:a:2.7-SNAPSHOT<br /><b>Default value is</b>: <tt>false</tt>.<br /></td> + </tr> + +<tr class="b"> + +<td><tt><a href="#useDependencyReducedPomInJar"><useDependencyReducedPomInJar></a></tt></td> + +<td><tt>boolean</tt></td> + +<td><tt>3.3.0</tt></td> + +<td>Add dependency reduced POM to the JAR instead of the original one +provided by the project. If <tt>createDependencyReducedPom</tt> +is <tt>false</tt> this parameter will be ignored.<br /><b>Default value is</b>: <tt>false</tt>.<br /></td> + </tr> + </table> + </div> + +<div class="section"> +<h3><a name="Parameter_Details"></a>Parameter Details</h3> + +<div class="section"> +<h4><a name="a.3CartifactSet.3E"></a><b><a name="artifactSet"><artifactSet></a></b></h4> + +<div>Artifacts to include/exclude from the final artifact. Artifacts are +denoted by composite identifiers of the general form +<tt>groupId:artifactId:type:classifier</tt>. Since version 1.3, +the wildcard characters '*' and '?' can be used within the sub +parts of those composite identifiers to do pattern matching. For +convenience, the syntax <tt>groupId</tt> is equivalent to +<tt>groupId:*:*:*</tt>, <tt>groupId:artifactId</tt> is +equivalent to <tt>groupId:artifactId:*:*</tt> and +<tt>groupId:artifactId:classifier</tt> is equivalent to +<tt>groupId:artifactId:*:classifier</tt>. For example: + +<div> +<pre> +<artifactSet> + <includes> + <include>org.apache.maven:*</include> + </includes> + <excludes> + <exclude>*:maven-core</exclude> + </excludes> +</artifactSet> +</pre></div></div> + +<ul> + +<li><b>Type</b>: <tt>org.apache.maven.plugins.shade.mojo.ArtifactSet</tt></li> + +<li><b>Required</b>: <tt>No</tt></li> + </ul><hr /></div> +<div class="section"> +<h4><a name="a.3CcreateDependencyReducedPom.3E"></a><b><a name="createDependencyReducedPom"><createDependencyReducedPom></a></b></h4> + +<div>Flag whether to generate a simplified POM for the shaded artifact. +If set to <tt>true</tt>, dependencies that have been included +into the uber JAR will be removed from the +<tt><dependencies></tt> section of the generated POM. The +reduced POM will be named <tt>dependency-reduced-pom.xml</tt> +and is stored into the same directory as the shaded artifact. +Unless you also specify dependencyReducedPomLocation, the plugin +will create a temporary file named +<tt>dependency-reduced-pom.xml</tt> in the project basedir.</div> + +<ul> + +<li><b>Type</b>: <tt>boolean</tt></li> + +<li><b>Required</b>: <tt>No</tt></li> + +<li><b>Default</b>: <tt>true</tt></li> + </ul><hr /></div> +<div class="section"> +<h4><a name="a.3CcreateSourcesJar.3E"></a><b><a name="createSourcesJar"><createSourcesJar></a></b></h4> + +<div>When true, it will attempt to create a sources jar as well</div> + +<ul> + +<li><b>Type</b>: <tt>boolean</tt></li> + +<li><b>Required</b>: <tt>No</tt></li> + </ul><hr /></div> +<div class="section"> +<h4><a name="a.3CcreateTestSourcesJar.3E"></a><b><a name="createTestSourcesJar"><createTestSourcesJar></a></b></h4> + +<div>When true, it will attempt to create a test sources jar.</div> + +<ul> + +<li><b>Type</b>: <tt>boolean</tt></li> + +<li><b>Required</b>: <tt>No</tt></li> + </ul><hr /></div> +<div class="section"> +<h4><a name="a.3CdependencyReducedPomLocation.3E"></a><b><a name="dependencyReducedPomLocation"><dependencyReducedPomLocation></a></b></h4> + +<div>Where to put the dependency reduced pom. Note: setting a value for +this parameter with a directory other than ${basedir} will change +the value of ${basedir} for all executions that come after the +shade execution. This is often not what you want. This is +considered an open issue with this plugin.</div> + +<ul> + +<li><b>Type</b>: <tt>java.io.File</tt></li> + +<li><b>Since</b>: <tt>1.7</tt></li> + +<li><b>Required</b>: <tt>No</tt></li> + +<li><b>Default</b>: <tt>${basedir}/dependency-reduced-pom.xml</tt></li> + </ul><hr /></div> +<div class="section"> +<h4><a name="a.3Cfilters.3E"></a><b><a name="filters"><filters></a></b></h4> + +<div>Archive Filters to be used. Allows you to specify an artifact in +the form of a composite identifier as used by +<tt>artifactSet</tt> and a set of include/exclude file patterns +for filtering which contents of the archive are added to the shaded +jar. From a logical perspective, includes are processed before +excludes, thus it's possible to use an include to collect a set of +files from the archive then use excludes to further reduce the set. +By default, all files are included and no files are excluded. If +multiple filters apply to an artifact, the intersection of the +matched files will be included in the final JAR. For example: + +<div> +<pre> +<filters> + <filter> + <artifact>junit:junit</artifact> + <includes> + <include>org/junit/**</include> + </includes> + <excludes> + <exclude>org/junit/experimental/**</exclude> + </excludes> + </filter> +</filters> +</pre></div></div> + +<ul> + +<li><b>Type</b>: <tt>org.apache.maven.plugins.shade.mojo.ArchiveFilter[]</tt></li> + +<li><b>Required</b>: <tt>No</tt></li> + </ul><hr /></div> +<div class="section"> +<h4><a name="a.3CfinalName.3E"></a><b><a name="finalName"><finalName></a></b></h4> + +<div>The name of the shaded artifactId. If you like to change the name +of the native artifact, you may use the +<build><finalName> setting. If this is set to something +different than <build><finalName>, no file replacement +will be performed, even if shadedArtifactAttached is being used.</div> + +<ul> + +<li><b>Type</b>: <tt>java.lang.String</tt></li> + +<li><b>Required</b>: <tt>No</tt></li> + </ul><hr /></div> +<div class="section"> +<h4><a name="a.3CgenerateUniqueDependencyReducedPom.3E"></a><b><a name="generateUniqueDependencyReducedPom"><generateUniqueDependencyReducedPom></a></b></h4> + +<div>Create a dependency-reduced POM in ${basedir}/drp-UNIQUE.pom. This +avoids build collisions of parallel builds without moving the +dependency-reduced POM to a different directory. The property +maven.shade.dependency-reduced-pom is set to the generated +filename.</div> + +<ul> + +<li><b>Type</b>: <tt>boolean</tt></li> + +<li><b>Since</b>: <tt>1.7.2</tt></li> + +<li><b>Required</b>: <tt>No</tt></li> + +<li><b>Default</b>: <tt>false</tt></li> + </ul><hr /></div> +<div class="section"> +<h4><a name="a.3CkeepDependenciesWithProvidedScope.3E"></a><b><a name="keepDependenciesWithProvidedScope"><keepDependenciesWithProvidedScope></a></b></h4> + +<div>When true, dependencies are kept in the pom but with scope +'provided'; when false, the dependency is removed.</div> + +<ul> + +<li><b>Type</b>: <tt>boolean</tt></li> + +<li><b>Required</b>: <tt>No</tt></li> + </ul><hr /></div> +<div class="section"> +<h4><a name="a.3CminimizeJar.3E"></a><b><a name="minimizeJar"><minimizeJar></a></b></h4> + +<div>When true, dependencies will be stripped down on the class level to +only the transitive hull required for the artifact. <i>Note:</i> +Usage of this feature requires Java 1.5 or higher.</div> + +<ul> + +<li><b>Type</b>: <tt>boolean</tt></li> + +<li><b>Since</b>: <tt>1.4</tt></li> + +<li><b>Required</b>: <tt>No</tt></li> + </ul><hr /></div> +<div class="section"> +<h4><a name="a.3CoutputDirectory.3E"></a><b><a name="outputDirectory"><outputDirectory></a></b></h4> + +<div>The destination directory for the shaded artifact.</div> + +<ul> + +<li><b>Type</b>: <tt>java.io.File</tt></li> + +<li><b>Required</b>: <tt>No</tt></li> + +<li><b>Default</b>: <tt>${project.build.directory}</tt></li> + </ul><hr /></div> +<div class="section"> +<h4><a name="a.3CoutputFile.3E"></a><b><a name="outputFile"><outputFile></a></b></h4> + +<div>The path to the output file for the shaded artifact. When this +parameter is set, the created archive will neither replace the +project's main artifact nor will it be attached. Hence, this +parameter causes the parameters <tt>finalName</tt>, +<tt>shadedArtifactAttached</tt>, +<tt>shadedClassifierName</tt> and +<tt>createDependencyReducedPom</tt> to be ignored when used.</div> + +<ul> + +<li><b>Type</b>: <tt>java.io.File</tt></li> + +<li><b>Since</b>: <tt>1.3</tt></li> + +<li><b>Required</b>: <tt>No</tt></li> + </ul><hr /></div> +<div class="section"> +<h4><a name="a.3CpromoteTransitiveDependencies.3E"></a><b><a name="promoteTransitiveDependencies"><promoteTransitiveDependencies></a></b></h4> + +<div>When true, transitive deps of removed dependencies are promoted to +direct dependencies. This should allow the drop in replacement of +the removed deps with the new shaded jar and everything should +still work.</div> + +<ul> + +<li><b>Type</b>: <tt>boolean</tt></li> + +<li><b>Required</b>: <tt>No</tt></li> + </ul><hr /></div> +<div class="section"> +<h4><a name="a.3Crelocations.3E"></a><b><a name="relocations"><relocations></a></b></h4> + +<div>Packages to be relocated. For example: + +<div> +<pre> +<relocations> + <relocation> + <pattern>org.apache</pattern> + <shadedPattern>hidden.org.apache</shadedPattern> + <includes> + <include>org.apache.maven.*</include> + </includes> + <excludes> + <exclude>org.apache.maven.Public*</exclude> + </excludes> + </relocation> +</relocations> +</pre></div> + +<i>Note:</i> Support for includes exists only since version 1.4.</div> + +<ul> + +<li><b>Type</b>: <tt>org.apache.maven.plugins.shade.mojo.PackageRelocation[]</tt></li> + +<li><b>Required</b>: <tt>No</tt></li> + </ul><hr /></div> +<div class="section"> +<h4><a name="a.3CshadeSourcesContent.3E"></a><b><a name="shadeSourcesContent"><shadeSourcesContent></a></b></h4> + +<div>When true, it will attempt to shade the contents of Java source +files when creating the sources JAR. When false, it will just +relocate the Java source files to the shaded paths, but will not +modify the actual source file contents. + +<p><b>Please note:</b> This feature uses a heuristic search & +replace approach which covers many, but definitely not all possible +cases of source code shading and its excludes. There is no full +Java parser behind this functionality, which would be the only way +to get this right for Java language elements. As for matching +within Java string constants, this is next to impossible to get +100% right, trying to guess if they are used in reflection or +not.</p> + +<p>Please understand that the source shading feature is not meant +as a source code generator anyway, merely as a tool creating +reasonably plausible source code when navigating to a relocated +library class from an IDE, hopefully displaying source code which +makes 95% sense - no more, no less.</p></div> + +<ul> + +<li><b>Type</b>: <tt>boolean</tt></li> + +<li><b>Required</b>: <tt>No</tt></li> + +<li><b>User Property</b>: <tt>shadeSourcesContent</tt></li> + +<li><b>Default</b>: <tt>false</tt></li> + </ul><hr /></div> +<div class="section"> +<h4><a name="a.3CshadeTestJar.3E"></a><b><a name="shadeTestJar"><shadeTestJar></a></b></h4> + +<div>When true, creates a shaded test-jar artifact as well.</div> + +<ul> + +<li><b>Type</b>: <tt>boolean</tt></li> + +<li><b>Required</b>: <tt>No</tt></li> + +<li><b>Default</b>: <tt>false</tt></li> + </ul><hr /></div> +<div class="section"> +<h4><a name="a.3CshadedArtifactAttached.3E"></a><b><a name="shadedArtifactAttached"><shadedArtifactAttached></a></b></h4> + +<div>Defines whether the shaded artifact should be attached as +classifier to the original artifact. If false, the shaded jar will +be the main artifact of the project</div> + +<ul> + +<li><b>Type</b>: <tt>boolean</tt></li> + +<li><b>Required</b>: <tt>No</tt></li> + </ul><hr /></div> +<div class="section"> +<h4><a name="a.3CshadedArtifactId.3E"></a><b><a name="shadedArtifactId"><shadedArtifactId></a></b></h4> + +<div>The name of the shaded artifactId. So you may want to use a +different artifactId and keep the standard version. If the original +artifactId was "foo" then the final artifact would be something +like foo-1.0.jar. So if you change the artifactId you might have +something like foo-special-1.0.jar.</div> + +<ul> + +<li><b>Type</b>: <tt>java.lang.String</tt></li> + +<li><b>Required</b>: <tt>No</tt></li> + +<li><b>Default</b>: <tt>${project.artifactId}</tt></li> + </ul><hr /></div> +<div class="section"> +<h4><a name="a.3CshadedClassifierName.3E"></a><b><a name="shadedClassifierName"><shadedClassifierName></a></b></h4> + +<div>The name of the classifier used in case the shaded artifact is +attached.</div> + +<ul> + +<li><b>Type</b>: <tt>java.lang.String</tt></li> + +<li><b>Required</b>: <tt>No</tt></li> + +<li><b>Default</b>: <tt>shaded</tt></li> + </ul><hr /></div> +<div class="section"> +<h4><a name="a.3CshadedGroupFilter.3E"></a><b><a name="shadedGroupFilter"><shadedGroupFilter></a></b></h4> + +<div>If specified, this will include only artifacts which have groupIds +which start with this.</div> + +<ul> + +<li><b>Type</b>: <tt>java.lang.String</tt></li> + +<li><b>Required</b>: <tt>No</tt></li> + </ul><hr /></div> +<div class="section"> +<h4><a name="a.3CshaderHint.3E"></a><b><a name="shaderHint"><shaderHint></a></b></h4> + +<div>You can pass here the roleHint about your own Shader implementation +plexus component.</div> + +<ul> + +<li><b>Type</b>: <tt>java.lang.String</tt></li> + +<li><b>Since</b>: <tt>1.6</tt></li> + +<li><b>Required</b>: <tt>No</tt></li> + </ul><hr /></div> +<div class="section"> +<h4><a name="a.3Cskip.3E"></a><b><a name="skip"><skip></a></b></h4> + +<div>When true, skips the execution of this MOJO.</div> + +<ul> + +<li><b>Type</b>: <tt>boolean</tt></li> + +<li><b>Since</b>: <tt>3.3.0</tt></li> + +<li><b>Required</b>: <tt>No</tt></li> + +<li><b>Default</b>: <tt>false</tt></li> + </ul><hr /></div> +<div class="section"> +<h4><a name="a.3Ctransformers.3E"></a><b><a name="transformers"><transformers></a></b></h4> + +<div>Resource transformers to be used. Please see the "Examples" section +for more information on available transformers and their +configuration.</div> + +<ul> + +<li><b>Type</b>: <tt>org.apache.maven.plugins.shade.resource.ResourceTransformer[]</tt></li> + +<li><b>Required</b>: <tt>No</tt></li> + </ul><hr /></div> +<div class="section"> +<h4><a name="a.3CuseBaseVersion.3E"></a><b><a name="useBaseVersion"><useBaseVersion></a></b></h4> + +<div>When true, the version of each dependency of the reduced pom will +be based on the baseVersion of the original dependency instead of +its resolved version. For example, if the original pom +(transitively) depends on a:a:2.7-SNAPSHOT, if useBaseVersion is +set to false, the reduced pom will depend on +a:a:2.7-20130312.222222-12 whereas if useBaseVersion is set to +true, the reduced pom will depend on a:a:2.7-SNAPSHOT</div> + +<ul> + +<li><b>Type</b>: <tt>boolean</tt></li> + +<li><b>Since</b>: <tt>3.0</tt></li> + +<li><b>Required</b>: <tt>No</tt></li> + +<li><b>Default</b>: <tt>false</tt></li> + </ul><hr /></div> +<div class="section"> +<h4><a name="a.3CuseDependencyReducedPomInJar.3E"></a><b><a name="useDependencyReducedPomInJar"><useDependencyReducedPomInJar></a></b></h4> + +<div>Add dependency reduced POM to the JAR instead of the original one +provided by the project. If <tt>createDependencyReducedPom</tt> +is <tt>false</tt> this parameter will be ignored.</div> + +<ul> + +<li><b>Type</b>: <tt>boolean</tt></li> + +<li><b>Since</b>: <tt>3.3.0</tt></li> + +<li><b>Required</b>: <tt>No</tt></li> + +<li><b>Default</b>: <tt>false</tt></li> + </ul> + </div></div> + </div> + + + </div> + </div> + </div> + <hr/> + <footer> + <div class="container-fluid"> + <div class="row-fluid"> + <p>Copyright ©2002–2022 +<a href="https://www.apache.org/">The Apache Software Foundation</a>. +All rights reserved.</p> + </div> + </div> + </footer> + </body> </html> \ No newline at end of file
