From 8c5a16e708c85cfbe0fd1d8b73defca761f54731 Mon Sep 17 00:00:00 2001
From: Teddy Wing
Date: Mon, 24 Apr 2023 01:24:21 +0200
Subject: pom.xml: Add 'maven-shade-plugin' to build an uber-jar
Package everything including our dependencies into a single JAR file.
Thanks to these Stack Overflow answers for explaining that I needed to
exclude the signature files from the final package:
- https://stackoverflow.com/questions/999489/invalid-signature-file-when-attempting-to-run-a-jar/6743609#6743609
- https://stackoverflow.com/questions/34855649/invalid-signature-file-digest-for-manifest-main-attributes-exception-while-tryin/34856095#34856095
---
pom.xml | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/pom.xml b/pom.xml
index 32bf23f..164523a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -79,6 +79,40 @@
+
+
+
+ maven-shade-plugin
+ 3.4.1
+
+
+
+
+ com.teddywing.pdf_form_replace_font2.App
+
+
+
+
+
+ *:*
+
+ META-INF/*.DSA
+ META-INF/*.SF
+
+
+
+
+
+
+
+ package
+
+ shade
+
+
+
+
+
--
cgit v1.2.3