jar-with-dependencies to shaded; to prevent conflicts

This commit is contained in:
Brian Long 2025-03-18 14:34:55 -04:00
parent 1d2250abd4
commit 7020a6569c
2 changed files with 30 additions and 29 deletions

1
.gitignore vendored
View File

@ -1,6 +1,7 @@
# Maven
target
pom.xml.versionsBackup
*-pom.xml
# Eclipse
.project

58
pom.xml
View File

@ -140,6 +140,7 @@
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.10.5</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
@ -185,39 +186,10 @@
</plugins>
</pluginManagement>
<plugins>
<!--
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>package-stencil</id>
<phase>package</phase>
<goals><goal>jar</goal></goals>
<configuration>
<classesDirectory>${basedir}/src/main/activiti</classesDirectory>
<classifier>stencil</classifier>
<includes>
<include>**/*</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>
-->
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.7.1</version>
<executions>
<execution>
<id>assemble-jar</id>
<phase>package</phase>
<goals><goal>single</goal></goals>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
</execution>
<execution>
<id>package-stencil</id>
<phase>package</phase>
@ -242,6 +214,34 @@
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<version>3.6.0</version>
<executions>
<execution>
<id>shade-deps</id>
<phase>package</phase>
<goals><goal>shade</goal></goals>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<relocations>
<relocation>
<shadedPattern>shaded.mq.</shadedPattern>
<excludes>
<!-- anything in the root directory of a JAR -->
<exclude>*</exclude>
<!-- anything in the META-INF directory of a JAR -->
<exclude>META-INF/**</exclude>
<!-- anything developed in this extension -->
<exclude>com.activiti.extension.**</exclude>
<exclude>com.inteligr8.activiti.mq.**</exclude>
</excludes>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>