add maven shade plugin

This commit is contained in:
HorizonCode 2022-06-30 16:20:49 +02:00
parent bf34e278a4
commit 9b92bdc625

56
pom.xml
View File

@ -7,6 +7,7 @@
<groupId>net.horizoncode</groupId> <groupId>net.horizoncode</groupId>
<artifactId>SysBackup</artifactId> <artifactId>SysBackup</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>SysBackup</name> <name>SysBackup</name>
@ -70,44 +71,25 @@
<build> <build>
<pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) --> <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
<plugins> <plugins>
<!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
<plugin> <plugin>
<artifactId>maven-clean-plugin</artifactId> <groupId>org.apache.maven.plugins</groupId>
<version>3.1.0</version> <artifactId>maven-shade-plugin</artifactId>
</plugin> <version>3.3.0</version>
<!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging --> <executions>
<plugin> <execution>
<artifactId>maven-resources-plugin</artifactId> <goals>
<version>3.0.2</version> <goal>shade</goal>
</plugin> </goals>
<plugin> <configuration>
<artifactId>maven-compiler-plugin</artifactId> <shadedArtifactAttached>true</shadedArtifactAttached>
<version>3.8.0</version> <transformers>
</plugin> <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<plugin> <mainClass>Bootstrapper</mainClass>
<artifactId>maven-surefire-plugin</artifactId> </transformer>
<version>2.22.1</version> </transformers>
</plugin> </configuration>
<plugin> </execution>
<artifactId>maven-jar-plugin</artifactId> </executions>
<version>3.0.2</version>
</plugin>
<plugin>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.2</version>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
</plugin>
<!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>3.7.1</version>
</plugin>
<plugin>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>3.0.0</version>
</plugin> </plugin>
</plugins> </plugins>
</pluginManagement> </pluginManagement>