You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by kh...@apache.org on 2018/08/19 09:54:06 UTC

[maven-shade-plugin] 01/01: mention include tag

This is an automated email from the ASF dual-hosted git repository.

khmarbaise pushed a commit to branch pr-4
in repository https://gitbox.apache.org/repos/asf/maven-shade-plugin.git

commit 3b68fe4796ad03301d3d21a4640fbc52b3b36123
Author: Jean-Philippe Martin <jp...@google.com>
AuthorDate: Fri Aug 17 14:01:39 2018 -0700

    mention include tag
---
 src/site/apt/examples/class-relocation.apt.vm | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/src/site/apt/examples/class-relocation.apt.vm b/src/site/apt/examples/class-relocation.apt.vm
index e55634f..d895fee 100644
--- a/src/site/apt/examples/class-relocation.apt.vm
+++ b/src/site/apt/examples/class-relocation.apt.vm
@@ -70,3 +70,20 @@ Relocating Classes
   into the package <<<org.shaded.plexus.util>>> by moving the corresponding JAR file entries and rewritting the
   affected bytecode. The class <<<Xpp3Dom>>> and some others will remain in their original package.
 
+
+  It's also possible to narrow the pattern with the <<<include>>> tag:
+
+
++-----
+<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>
++-----