Springboot father-son project packaging comparison: maven-shade-plugin and spring-boot-maven-plugin

Table of Contents spring-boot-maven-plugin packaging Install plug-in: spring-boot-maven-plugin Run the packaging command jar maven-shade-plugin packaging Install the plugin maven-shade-plugin Run the packaging command jar Compare shade and spring-maven-plugin Tool chain: ideal, springboot, maven, parent-child module, shade, spring-boot-maven-plugin spring-boot-maven-plugin packaging Install plug-in: spring-boot-maven-plugin Configure the plug-in in the maven project pom file, the configuration is as […]

Use maven-shade-plugin to rename and re-package the jar package

Create an empty Maven project pom file configuration Rename and repackage based on poi version conflict ? <dependencies> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>4.1.2</version> </dependency> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml</artifactId> <version>4.1.2</version> </dependency> <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-bridge</artifactId> <version>1.12</version> </dependency> <dependency> <groupId>org.apache.poi</groupId> <artifactId>ooxml-schemas</artifactId> <version>1.4</version> </dependency> </dependencies> <build> <finalName>maven-shade</finalName> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>3.2.4</version> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> <configuration> <artifactSet> <excludes> […]

The best solution to the coexistence of multiple versions of the same dependency in Maven, repeated dependencies (same jar package, multiple versions) -maven-shade-plugin

Directory Description of the problem: The rectification of historical functions is cumbersome, and new functions require high version dependencies Solution: Use maven-shade-plugin to modify the dependency name of a certain version and re-introduce it Step1. Create an empty maven project Introduce dependencies that need to be modified in the Step2.Pom file Add maven-shade-plugin to Step3.pom […]

[Solved] Use maven-shade-plugin to solve the problem of jar package conflicts, incompatible versions, and update the paths of dependencies imported by import

Problem description: 1. When using a third-party jar package, one of the third-party jar packages introduces the bcprov-jdk15on.166 version, and the other introduces the bcprov-jdk15on.148 version. The class methods in these two versions are incompatible, and the class name and package path are the same , but both third-party jar packages must be used by […]