diff options
author | gjoranv <gv@verizonmedia.com> | 2022-02-03 02:05:19 +0100 |
---|---|---|
committer | gjoranv <gv@verizonmedia.com> | 2022-02-03 02:36:36 +0100 |
commit | afd0087d92f66e46a4c1ca5e2c0bec166388be25 (patch) | |
tree | 8054e809705b88519296a457e500c2864a4cb09d /parent | |
parent | 2dced25d329cff2ea5345bf8e5e266f5e1d17ed7 (diff) |
Improve maven-shade-plugin filter, and move to parent pom.
- Removes 223 build warnings (out of 562 for building non-test code)
Diffstat (limited to 'parent')
-rw-r--r-- | parent/pom.xml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/parent/pom.xml b/parent/pom.xml index 2ec0a975c8e..cac01fc6d5e 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -172,6 +172,30 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>${maven-shade-plugin.version}</version> + <configuration> + <filters> + <filter> + <!-- Filter out files that are known to cause issues and warnings. --> + <!-- WARNING: Adding a custom filter in a module's pom will disable this filter! --> + <artifact>*:*</artifact> + <excludes> + <!-- Silence warning about "breaking its strong encapsulation" --> + <exclude>module-info.class</exclude> + <!-- Multi-release jars --> + <exclude>META-INF/versions/*/module-info.class</exclude> + <!-- License and notices files --> + <exclude>META-INF/LICENSE*</exclude> + <exclude>META-INF/NOTICE*</exclude> + <!-- E.g. bundle manifests --> + <exclude>META-INF/MANIFEST.MF</exclude> + <!-- Signature files, from e.g. bouncycastle --> + <exclude>META-INF/*.SF</exclude> + <exclude>META-INF/*.DSA</exclude> + <exclude>META-INF/*.RSA</exclude> + </excludes> + </filter> + </filters> + </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> |