xcloud-component-common-shade
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>com.wl4g</groupId>
<artifactId>xcloud-component-common-shade</artifactId>
<version>2.0.0</version>
</dependency><project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>xcloud-component-common-shade</artifactId>
<packaging>jar</packaging>
<name>XCloud Component Common(shade)</name>
<url>http://xcloud.wl4g.com</url>
<description>A XCloud Component Common(shade).</description>
<organization>
<name>wl4g</name>
<url>https://xcloud.wl4g.com</url>
</organization>
<licenses>
<license>
<name>Apache License Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<connection>scm:git:git@github.com:wl4g/xcloud-component.git</connection>
<developerConnection>scm:git:git@github.com:wl4g/xcloud-component.git</developerConnection>
<url>https://github.com/wl4g/xcloud-component</url>
<tag>HEAD</tag>
</scm>
<issueManagement>
<system>github</system>
<url>https://github.com/wl4g/xcloud-component/issues</url>
</issueManagement>
<developers>
<developer>
<id>Wangl01</id>
<name>Wanglsir</name>
<email>wanglsir@gmail.com,983708408@qq.com</email>
<roles>
<role>owner</role>
<role>maintainer</role>
<role>developer</role>
</roles>
<timezone>+8</timezone>
</developer>
<developer>
<id>xburnerair00</id>
<name>xburnerair00</name>
<email>xburnerair00@163.com</email>
<roles>
<role>maintainer</role>
<role>developer</role>
</roles>
<timezone>+8</timezone>
</developer>
</developers>
<parent>
<groupId>com.wl4g</groupId>
<artifactId>xcloud-component</artifactId>
<version>2.0.0</version>
<relativePath>../pom.xml</relativePath>
</parent>
<properties>
<java.version>1.8</java.version>
<maven-source-plugin.version>2.4</maven-source-plugin.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.wl4g</groupId>
<artifactId>xcloud-component-bom</artifactId>
<version>${project.parent.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>com.wl4g</groupId>
<artifactId>xcloud-component-common</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<phase>verify</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<!-- @see https://www.jianshu.com/p/7a0e20b30401 -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<minimizeJar>false</minimizeJar>
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>shade</shadedClassifierName>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<!-- Exclusion for classes in shade-jar -->
<exclude>javax/**</exclude>
<exclude>org/slf4j/**</exclude>
<exclude>org/xerial/snappy/**</exclude>
<exclude>io/netty/**</exclude>
<!-- Exclusion lombok in shade-jar -->
<exclude>lombok/**</exclude>
<exclude>djb/**</exclude>
<exclude>secondaryLoading/**</exclude>
<exclude>Class50/lombok/**</exclude>
<exclude>assets/**</exclude>
<!-- Exclusion unimportant resources in shade-jar -->
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
<exclude>CHANGELOG.*</exclude>
<exclude>changelog.*</exclude>
<exclude>README.*</exclude>
<exclude>readme.*</exclude>
<exclude>HISTORY.*</exclude>
<exclude>history.*</exclude>
<!-- Copy the relocated dependent resource exclusion to the META-INF/
directory. -->
<exclude>META-INF/maven/ch.ethz.ganymed/ganymed-ssh2/*</exclude>
<exclude>META-INF/maven/com.fasterxml.jackson.core/**</exclude>
<exclude>META-INF/maven/com.google.guava/guava/*</exclude>
<exclude>META-INF/maven/com.hierynomus/sshj/*</exclude>
<exclude>META-INF/maven/com.jcraft/**</exclude>
<exclude>META-INF/maven/commons-beanutils/commons-beanutils/*</exclude>
<exclude>META-INF/maven/commons-cli/commons-cli/*</exclude>
<exclude>META-INF/maven/commons-codec/commons-codec/*</exclude>
<exclude>META-INF/maven/commons-collections/commons-collections/*</exclude>
<exclude>META-INF/maven/commons-fileupload/commons-fileupload/*</exclude>
<exclude>META-INF/maven/commons-io/commons-io/*</exclude>
<exclude>META-INF/maven/commons-logging/commons-logging/*</exclude>
<exclude>META-INF/maven/io.protostuff/**</exclude>
<exclude>META-INF/maven/joda-time/joda-time/*</exclude>
<exclude>META-INF/maven/net.i2p.crypto/eddsa/*</exclude>
<exclude>META-INF/maven/nl.bitwalker/UserAgentUtils/*</exclude>
<exclude>META-INF/maven/org.apache.commons/**</exclude>
<exclude>META-INF/maven/org.apache.sshd/**</exclude>
<exclude>META-INF/maven/org.quartz-scheduler/quartz/*</exclude>
<!-- Exclusion netty native copy to META-INF/ directory. -->
<exclude>META-INF/native/libnetty_**</exclude>
<exclude>META-INF/native-image/**</exclude>
<exclude>META-INF/io.netty.versions.properties</exclude>
</excludes>
</filter>
</filters>
<relocations>
<relocation>
<pattern>org</pattern>
<shadedPattern>com.wl4g.shade.org</shadedPattern>
<excludes>
<exclude>org.slf4j.**</exclude>
<exclude>org.xerial.snappy.**</exclude>
</excludes>
</relocation>
<relocation>
<pattern>ch</pattern>
<shadedPattern>com.wl4g.shade.ch</shadedPattern>
</relocation>
<relocation>
<pattern>io</pattern>
<shadedPattern>com.wl4g.shade.io</shadedPattern>
<excludes>
<exclude>io.netty.**</exclude>
</excludes>
</relocation>
<relocation>
<pattern>net</pattern>
<shadedPattern>com.wl4g.shade.net</shadedPattern>
</relocation>
<relocation>
<pattern>nl</pattern>
<shadedPattern>com.wl4g.shade.nl</shadedPattern>
</relocation>
<relocation>
<pattern>com.fasterxml</pattern>
<shadedPattern>com.wl4g.shade.com.fasterxml</shadedPattern>
</relocation>
<relocation>
<pattern>com.google</pattern>
<shadedPattern>com.wl4g.shade.com.google</shadedPattern>
</relocation>
<relocation>
<pattern>com.jcraft</pattern>
<shadedPattern>com.wl4g.shade.com.jcraft</shadedPattern>
</relocation>
<relocation>
<pattern>com.sun</pattern>
<shadedPattern>com.wl4g.shade.com.sun</shadedPattern>
</relocation>
<relocation>
<pattern>com.typesafe</pattern>
<shadedPattern>com.wl4g.shade.com.typesafe</shadedPattern>
</relocation>
<relocation>
<pattern>com.hierynomus</pattern>
<shadedPattern>com.wl4g.shade.com.hierynomus</shadedPattern>
</relocation>
<relocation>
<pattern>com.zwitserloot</pattern>
<shadedPattern>com.wl4g.shade.com.zwitserloot</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<!-- Source -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- GPG -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<serverId>sonatype-nexus-staging</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
<stagingProgressTimeoutMinutes>15</stagingProgressTimeoutMinutes>
</configuration>
</plugin>
</plugins>
</build>
<distributionManagement>
<snapshotRepository>
<id>sonatype-nexus-snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</snapshotRepository>
<repository>
<id>sonatype-nexus-staging</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
</profile>
</profiles>
</project>