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

chrisdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x-extras.git


The following commit(s) were added to refs/heads/develop by this push:
     new ffa6424  fix: Exclude the bouncycastle signatures from the shaded jar 
to avoid errors when loading the jar.
ffa6424 is described below

commit ffa6424e0d2058f8f79d37dd9969bce4c5b59b46
Author: Christofer Dutz <[email protected]>
AuthorDate: Wed Jun 24 16:01:23 2026 +0200

    fix: Exclude the bouncycastle signatures from the shaded jar to avoid 
errors when loading the jar.
---
 plc4j/tools/plc4x-server/pom.xml | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/plc4j/tools/plc4x-server/pom.xml b/plc4j/tools/plc4x-server/pom.xml
index 4520b68..f21ba0e 100644
--- a/plc4j/tools/plc4x-server/pom.xml
+++ b/plc4j/tools/plc4x-server/pom.xml
@@ -51,6 +51,18 @@
             </goals>
             <configuration>
               <createDependencyReducedPom>false</createDependencyReducedPom>
+              <!-- BouncyCastle jars are signed; their signature files become 
invalid once
+                   shaded together and make the JVM reject the uber-jar. Drop 
them. -->
+              <filters>
+                <filter>
+                  <artifact>*:*</artifact>
+                  <excludes>
+                    <exclude>META-INF/*.SF</exclude>
+                    <exclude>META-INF/*.DSA</exclude>
+                    <exclude>META-INF/*.RSA</exclude>
+                  </excludes>
+                </filter>
+              </filters>
               <transformers combine.children="append">
                 <transformer 
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
                   
<mainClass>org.apache.plc4x.java.tools.plc4xserver.Plc4xServer</mainClass>

Reply via email to