Modified: maven/website/components/plugins-archives/maven-shade-plugin-LATEST/examples/attached-artifact.html ============================================================================== --- maven/website/components/plugins-archives/maven-shade-plugin-LATEST/examples/attached-artifact.html (original) +++ maven/website/components/plugins-archives/maven-shade-plugin-LATEST/examples/attached-artifact.html Thu Mar 24 18:14:26 2022 @@ -1,160 +1,159 @@ -<!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="author" content="Mauro Talevi" /> - <meta name="Date-Creation-yyyymmdd" content="20080721" /> - <meta name="Date-Revision-yyyymmdd" content="20210714" /> - <meta http-equiv="Content-Language" content="en" /> - <title>Apache Maven Shade Plugin – Attaching the Shaded Artifact</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 ">Attaching the Shaded Artifact</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 class="active"><a href="#"><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="Attaching_the_Shaded_Artifact"></a>Attaching the Shaded Artifact</h2> -<p>By default, the plugin will replace the project's main artifact with the shaded artifact. If both the original and the shaded artifact should be installed/deployed to the repository, one can configure the plugin to attach the shaded artifact as a secondary artifact:</p> -<div class="source"><pre class="prettyprint linenums"><project> - ... - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-shade-plugin</artifactId> - <version>3.3.1-SNAPSHOT</version> - <executions> - <execution> - <phase>package</phase> - <goals> - <goal>shade</goal> - </goals> - <configuration> - <shadedArtifactAttached>true</shadedArtifactAttached> - <shadedClassifierName>jackofall</shadedClassifierName> <!-- Any name that makes sense --> - </configuration> - </execution> - </executions> - </plugin> - </plugins> - </build> - ... -</project> -</pre></div> -<p>The shaded artifact is distinguished from the main artifact by means of the additional classifier.</p></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="author" content="Mauro Talevi" /> + <meta name="Date-Creation-yyyymmdd" content="20080721" /> + <meta name="Date-Revision-yyyymmdd" content="20220324" /> + <meta http-equiv="Content-Language" content="en" /> + <title>Apache Maven Shade Plugin – Attaching the Shaded Artifact</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 ">Attaching the Shaded Artifact</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 class="active"><a href="#"><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="Attaching_the_Shaded_Artifact"></a>Attaching the Shaded Artifact</h2> +<p>By default, the plugin will replace the project's main artifact with the shaded artifact. If both the original and the shaded artifact should be installed/deployed to the repository, one can configure the plugin to attach the shaded artifact as a secondary artifact:</p> +<div class="source"><pre class="prettyprint linenums"><project> + ... + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-shade-plugin</artifactId> + <version>3.3.0</version> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>shade</goal> + </goals> + <configuration> + <shadedArtifactAttached>true</shadedArtifactAttached> + <shadedClassifierName>jackofall</shadedClassifierName> <!-- Any name that makes sense --> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + ... +</project></pre></div> +<p>The shaded artifact is distinguished from the main artifact by means of the additional classifier.</p></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
Modified: maven/website/components/plugins-archives/maven-shade-plugin-LATEST/examples/class-relocation.html ============================================================================== --- maven/website/components/plugins-archives/maven-shade-plugin-LATEST/examples/class-relocation.html (original) +++ maven/website/components/plugins-archives/maven-shade-plugin-LATEST/examples/class-relocation.html Thu Mar 24 18:14:26 2022 @@ -1,181 +1,179 @@ -<!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="author" content="Mauro Talevi" /> - <meta name="Date-Creation-yyyymmdd" content="20080721" /> - <meta name="Date-Revision-yyyymmdd" content="20210714" /> - <meta http-equiv="Content-Language" content="en" /> - <title>Apache Maven Shade Plugin – Relocating Classes</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 ">Relocating Classes</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 class="active"><a href="#"><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="Relocating_Classes"></a>Relocating Classes</h2> -<p>If the uber JAR is reused as a dependency of some other project, directly including classes from the artifact's dependencies in the uber JAR can cause class loading conflicts due to duplicate classes on the class path. To address this issue, one can relocate the classes which get included in the shaded artifact in order to create a private copy of their bytecode:</p> -<div class="source"><pre class="prettyprint linenums"><project> - ... - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-shade-plugin</artifactId> - <version>3.3.1-SNAPSHOT</version> - <executions> - <execution> - <phase>package</phase> - <goals> - <goal>shade</goal> - </goals> - <configuration> - <relocations> - <relocation> - <pattern>org.codehaus.plexus.util</pattern> - <shadedPattern>org.shaded.plexus.util</shadedPattern> - <excludes> - <exclude>org.codehaus.plexus.util.xml.Xpp3Dom</exclude> - <exclude>org.codehaus.plexus.util.xml.pull.*</exclude> - </excludes> - </relocation> - </relocations> - </configuration> - </execution> - </executions> - </plugin> - </plugins> - </build> - ... -</project> -</pre></div> -<p>This instructs the plugin to move classes from the package <tt>org.codehaus.plexus.util</tt> and its subpackages into the package <tt>org.shaded.plexus.util</tt> by moving the corresponding JAR file entries and rewritting the affected bytecode. The class <tt>Xpp3Dom</tt> and some others will remain in their original package.</p> -<p>It's also possible to narrow the pattern with the <tt>include</tt> tag:</p> -<div class="source"><pre class="prettyprint linenums"><project> - ... - <relocation> - <pattern>org.codehaus.plexus.util</pattern> - <shadedPattern>org.shaded.plexus.util</shadedPattern> - <includes> - <include>org.codehaud.plexus.util.io.*</include> - </includes> - </relocation> - ... -</project> -</pre></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="author" content="Mauro Talevi" /> + <meta name="Date-Creation-yyyymmdd" content="20080721" /> + <meta name="Date-Revision-yyyymmdd" content="20220324" /> + <meta http-equiv="Content-Language" content="en" /> + <title>Apache Maven Shade Plugin – Relocating Classes</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 ">Relocating Classes</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 class="active"><a href="#"><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="Relocating_Classes"></a>Relocating Classes</h2> +<p>If the uber JAR is reused as a dependency of some other project, directly including classes from the artifact's dependencies in the uber JAR can cause class loading conflicts due to duplicate classes on the class path. To address this issue, one can relocate the classes which get included in the shaded artifact in order to create a private copy of their bytecode:</p> +<div class="source"><pre class="prettyprint linenums"><project> + ... + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-shade-plugin</artifactId> + <version>3.3.0</version> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>shade</goal> + </goals> + <configuration> + <relocations> + <relocation> + <pattern>org.codehaus.plexus.util</pattern> + <shadedPattern>org.shaded.plexus.util</shadedPattern> + <excludes> + <exclude>org.codehaus.plexus.util.xml.Xpp3Dom</exclude> + <exclude>org.codehaus.plexus.util.xml.pull.*</exclude> + </excludes> + </relocation> + </relocations> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + ... +</project></pre></div> +<p>This instructs the plugin to move classes from the package <tt>org.codehaus.plexus.util</tt> and its subpackages into the package <tt>org.shaded.plexus.util</tt> by moving the corresponding JAR file entries and rewritting the affected bytecode. The class <tt>Xpp3Dom</tt> and some others will remain in their original package.</p> +<p>It's also possible to narrow the pattern with the <tt>include</tt> tag:</p> +<div class="source"><pre class="prettyprint linenums"><project> + ... + <relocation> + <pattern>org.codehaus.plexus.util</pattern> + <shadedPattern>org.shaded.plexus.util</shadedPattern> + <includes> + <include>org.codehaud.plexus.util.io.*</include> + </includes> + </relocation> + ... +</project></pre></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 Modified: maven/website/components/plugins-archives/maven-shade-plugin-LATEST/examples/executable-jar.html ============================================================================== --- maven/website/components/plugins-archives/maven-shade-plugin-LATEST/examples/executable-jar.html (original) +++ maven/website/components/plugins-archives/maven-shade-plugin-LATEST/examples/executable-jar.html Thu Mar 24 18:14:26 2022 @@ -1,195 +1,193 @@ -<!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="author" content="Mauro Talevi" /> - <meta name="Date-Creation-yyyymmdd" content="20080721" /> - <meta name="Date-Revision-yyyymmdd" content="20210714" /> - <meta http-equiv="Content-Language" content="en" /> - <title>Apache Maven Shade Plugin – Executable JAR</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 ">Executable JAR</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 class="active"><a href="#"><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="Executable_JAR"></a>Executable JAR</h2> -<p>To create an executable uber JAR, one simply needs to set the main class that serves as the application entry point:</p> -<div class="source"><pre class="prettyprint linenums"><project> - ... - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-shade-plugin</artifactId> - <version>3.3.1-SNAPSHOT</version> - <executions> - <execution> - <phase>package</phase> - <goals> - <goal>shade</goal> - </goals> - <configuration> - <transformers> - <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> - <mainClass>org.sonatype.haven.HavenCli</mainClass> - </transformer> - </transformers> - </configuration> - </execution> - </executions> - </plugin> - </plugins> - </build> - ... -</project> -</pre></div> -<p>This snippet configures a special resource transformer which sets the <tt>Main-Class</tt> entry in the <tt>MANIFEST.MF</tt> of the shaded JAR. Other entries can be added to the <tt>MANIFEST.MF</tt> as well via key-value pairs in the <tt><manifestEntries></tt> section:</p> -<div class="source"><pre class="prettyprint linenums"><project> - ... - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-shade-plugin</artifactId> - <version>3.3.1-SNAPSHOT</version> - <executions> - <execution> - <phase>package</phase> - <goals> - <goal>shade</goal> - </goals> - <configuration> - <transformers> - <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> - <manifestEntries> - <Main-Class>org.sonatype.haven.ExodusCli</Main-Class> - <Build-Number>123</Build-Number> - </manifestEntries> - </transformer> - </transformers> - </configuration> - </execution> - </executions> - </plugin> - </plugins> - </build> - ... -</project> -</pre></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="author" content="Mauro Talevi" /> + <meta name="Date-Creation-yyyymmdd" content="20080721" /> + <meta name="Date-Revision-yyyymmdd" content="20220324" /> + <meta http-equiv="Content-Language" content="en" /> + <title>Apache Maven Shade Plugin – Executable JAR</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 ">Executable JAR</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 class="active"><a href="#"><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="Executable_JAR"></a>Executable JAR</h2> +<p>To create an executable uber JAR, one simply needs to set the main class that serves as the application entry point:</p> +<div class="source"><pre class="prettyprint linenums"><project> + ... + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-shade-plugin</artifactId> + <version>3.3.0</version> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>shade</goal> + </goals> + <configuration> + <transformers> + <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> + <mainClass>org.sonatype.haven.HavenCli</mainClass> + </transformer> + </transformers> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + ... +</project></pre></div> +<p>This snippet configures a special resource transformer which sets the <tt>Main-Class</tt> entry in the <tt>MANIFEST.MF</tt> of the shaded JAR. Other entries can be added to the <tt>MANIFEST.MF</tt> as well via key-value pairs in the <tt><manifestEntries></tt> section:</p> +<div class="source"><pre class="prettyprint linenums"><project> + ... + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-shade-plugin</artifactId> + <version>3.3.0</version> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>shade</goal> + </goals> + <configuration> + <transformers> + <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> + <manifestEntries> + <Main-Class>org.sonatype.haven.ExodusCli</Main-Class> + <Build-Number>123</Build-Number> + </manifestEntries> + </transformer> + </transformers> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + ... +</project></pre></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
